|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
A custom icon stored in the database. More...
#include <icon.hh>
Public Member Functions | |
| Icon (const std::array< uint8_t, 16 > &uuid, std::vector< uint8_t > data) | |
| Creates an icon with the given UUID and raw data. | |
| const std::array< uint8_t, 16 > & | uuid () const |
| Returns the icon UUID. | |
| const std::vector< uint8_t > & | data () const |
| Returns the raw icon data. | |
| void | set_data (const std::vector< uint8_t > &data) |
| Sets the raw icon data. | |
| const std::string & | name () const |
| Returns the icon name (KDBX 4.1). | |
| void | set_name (const std::string &name) |
| Sets the icon name (KDBX 4.1). | |
| const std::optional< std::time_t > & | last_modification_time () const |
| Returns the icon last modification time (KDBX 4.1); empty if unset. | |
| void | set_last_modification_time (std::optional< std::time_t > time) |
| bool | operator== (const Icon &other) const |
| Equality comparison (based on data). | |
| bool | operator!= (const Icon &other) const |
| Inequality comparison. | |
A custom icon stored in the database.
An Icon is identified by a UUID and holds the raw icon file data (e.g. a PNG or image format supported by KeePass).
|
inline |
Sets the icon last modification time (KDBX 4.1); pass std::nullopt to unset.