|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
A file attachment of an entry. More...
#include <entry.hh>
Public Member Functions | |
| const std::string & | name () const |
| Returns the attachment name. | |
| void | set_name (const std::string &name) |
| Sets the attachment name. | |
| std::shared_ptr< Binary > | binary () const |
| Returns the attachment binary payload. | |
| void | set_binary (std::shared_ptr< Binary > binary) |
| Sets the attachment binary payload. | |
| std::string | ToJson (bool include_data=false) const |
| Serializes the attachment to a JSON fragment. | |
| bool | operator== (const Attachment &other) const |
| Equality comparison. | |
| bool | operator!= (const Attachment &other) const |
| Inequality comparison. | |
A file attachment of an entry.
Associates a name with a binary payload.
Serializes the attachment to a JSON fragment.
| include_data | Include the payload as base64 in a data_base64 member (default: metadata only). |