mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-24 14:15:47 -04:00
Added history limits enforcement
This commit is contained in:
parent
860a2131b3
commit
8c87a87da6
6 changed files with 63 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <QtCore/QSet>
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QChar>
|
||||
|
||||
class EntryAttributes : public QObject
|
||||
{
|
||||
|
@ -31,6 +32,7 @@ public:
|
|||
explicit EntryAttributes(QObject* parent = 0);
|
||||
QList<QString> keys() const;
|
||||
QString value(const QString& key) const;
|
||||
int valueSize(const QString& key);
|
||||
bool isProtected(const QString& key) const;
|
||||
void set(const QString& key, const QString& value, bool protect = false);
|
||||
void remove(const QString& key);
|
||||
|
@ -38,10 +40,10 @@ public:
|
|||
void copyCustomKeysFrom(const EntryAttributes* other);
|
||||
bool areCustomKeysDifferent(const EntryAttributes* other);
|
||||
void clear();
|
||||
int attributesSize();
|
||||
EntryAttributes& operator=(const EntryAttributes& other);
|
||||
bool operator==(const EntryAttributes& other) const;
|
||||
bool operator!=(const EntryAttributes& other) const;
|
||||
|
||||
static const QStringList DEFAULT_ATTRIBUTES;
|
||||
static bool isDefaultAttribute(const QString& key);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue