libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::Icon Class Referencefinal

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.
 

Detailed Description

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).

Member Function Documentation

◆ set_last_modification_time()

void keepass::Icon::set_last_modification_time ( std::optional< std::time_t >  time)
inline

Sets the icon last modification time (KDBX 4.1); pass std::nullopt to unset.


The documentation for this class was generated from the following file: