Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/EntryAttachments.h')
-rw-r--r--src/core/EntryAttachments.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/EntryAttachments.h b/src/core/EntryAttachments.h
index 04c22cb34..c2fa55b44 100644
--- a/src/core/EntryAttachments.h
+++ b/src/core/EntryAttachments.h
@@ -21,6 +21,8 @@
#include <QMap>
#include <QObject>
+class QStringList;
+
class EntryAttachments : public QObject
{
Q_OBJECT
@@ -29,14 +31,17 @@ public:
explicit EntryAttachments(QObject* parent = nullptr);
QList<QString> keys() const;
bool hasKey(const QString& key) const;
- QList<QByteArray> values() const;
+ QSet<QByteArray> values() const;
QByteArray value(const QString& key) const;
void set(const QString& key, const QByteArray& value);
void remove(const QString& key);
+ void remove(const QStringList& keys);
+ bool isEmpty() const;
void clear();
void copyDataFrom(const EntryAttachments* other);
bool operator==(const EntryAttachments& other) const;
bool operator!=(const EntryAttachments& other) const;
+ int attachmentsSize() const;
signals:
void modified();