|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Metadata describing a KeePass database. More...
#include <metadata.hh>
Classes | |
| class | DeletedObject |
| A tombstone for a deleted group, entry or icon. More... | |
| class | Field |
| An arbitrary metadata key/value field. More... | |
| class | MemoryProtection |
| Flags which fields get cleared from memory when read or written. More... | |
Public Member Functions | |
| const std::string & | generator () const |
| Returns the name of the application that generated the database. | |
| void | set_generator (const std::string &generator) |
| Sets the name of the application that generated the database. | |
| const temporal< std::string > & | database_name () const |
| Returns the database name (with change timestamp). | |
| void | set_database_name (const temporal< std::string > &name) |
| Sets the database name. | |
| const temporal< std::string > & | database_desc () const |
| Returns the database description (with change timestamp). | |
| void | set_database_desc (const temporal< std::string > &desc) |
| Sets the database description. | |
| const temporal< std::string > & | default_username () const |
| Returns the default username used for new entries. | |
| void | set_default_username (const temporal< std::string > &username) |
| Sets the default username used for new entries. | |
| uint32_t | maintenance_hist_days () const |
| Returns the number of days to keep maintenance history. | |
| void | set_maintenance_hist_days (uint32_t days) |
| Sets the number of days to keep maintenance history. | |
| const std::string & | database_color () const |
| Returns the database color. | |
| void | set_database_color (const std::string &color) |
| Sets the database color. | |
| std::time_t | master_key_changed () const |
| Returns the time the master key was last changed. | |
| void | set_master_key_changed (std::time_t time) |
| Sets the time the master key was last changed. | |
| int64_t | master_key_change_rec () const |
| Returns days before a master key change is recommended. | |
| void | set_master_key_change_rec (int64_t rec) |
| Sets days before a master key change is recommended. | |
| int64_t | master_key_change_force () const |
| Returns days before a master key change is forced. | |
| void | set_master_key_change_force (int64_t force) |
| Sets days before a master key change is forced. | |
| MemoryProtection & | memory_protection () |
| Returns the memory protection settings. | |
| std::shared_ptr< Group > | recycle_bin () const |
| Returns the recycle bin group. | |
| void | set_recycle_bin (std::shared_ptr< Group > bin) |
| Sets the recycle bin group. | |
| std::time_t | recycle_bin_changed () const |
| Returns when the recycle bin was last changed. | |
| void | set_recycle_bin_changed (std::time_t time) |
| Sets when the recycle bin was last changed. | |
| std::shared_ptr< Group > | entry_templates () const |
| Returns the entry templates group. | |
| void | set_entry_templates (std::shared_ptr< Group > entry_templates) |
| Sets the entry templates group. | |
| std::time_t | entry_templates_changed () const |
| Returns when the entry templates were last changed. | |
| void | set_entry_templates_changed (std::time_t time) |
| Sets when the entry templates were last changed. | |
| int32_t | history_max_items () const |
| Returns the maximum number of history items kept per entry. | |
| void | set_history_max_items (int32_t max) |
| Sets the maximum number of history items kept per entry. | |
| int64_t | history_max_size () const |
| Returns the maximum total size of an entry's history. | |
| void | set_history_max_size (int64_t max) |
| Sets the maximum total size of an entry's history. | |
| std::weak_ptr< Group > | last_selected_group () const |
| Returns the last selected group. | |
| void | set_last_selected_group (std::weak_ptr< Group > group) |
| Sets the last selected group. | |
| std::weak_ptr< Group > | last_visible_group () const |
| Returns the last visible group. | |
| void | set_last_visible_group (std::weak_ptr< Group > group) |
| Sets the last visible group. | |
| const std::vector< std::shared_ptr< Binary > > & | binaries () const |
| Returns the list of custom binaries. | |
| const std::vector< std::shared_ptr< Icon > > & | icons () const |
| Returns the list of custom icons. | |
| const std::vector< Field > & | fields () const |
| Returns the list of arbitrary metadata fields. | |
| const std::vector< DeletedObject > & | deleted_objects () const |
| Returns the list of deletion tombstones (deleted groups/entries/icons). | |
| void | AddBinary (const std::shared_ptr< Binary > &binary) |
| Adds a custom binary to the metadata. | |
| void | AddIcon (const std::shared_ptr< Icon > &icon) |
| Adds a custom icon to the metadata. | |
| void | AddField (const std::string &key, const std::string &value) |
| Adds an arbitrary metadata field. | |
| void | AddField (const Field &field) |
| Adds a metadata field with an explicit last modification time (KDBX 4.1). | |
| void | AddDeletedObject (const DeletedObject &object) |
| Adds a deletion tombstone to the metadata. | |
Metadata describing a KeePass database.
Metadata stores database-level information that is independent of the actual entry and group hierarchy: the generator application, database name and description, memory protection settings, recycle bin, custom binaries and icons, and arbitrary custom fields.