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/Entry.h')
-rw-r--r--src/core/Entry.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/Entry.h b/src/core/Entry.h
index 25b9bc386..cdb826eca 100644
--- a/src/core/Entry.h
+++ b/src/core/Entry.h
@@ -47,6 +47,8 @@ struct EntryData
int autoTypeObfuscation;
QString defaultAutoTypeSequence;
TimeInfo timeInfo;
+ mutable quint8 totpDigits;
+ mutable quint8 totpStep;
};
class Entry : public QObject
@@ -78,6 +80,12 @@ public:
QString username() const;
QString password() const;
QString notes() const;
+ QString totp() const;
+ QString totpSeed() const;
+ quint8 totpDigits() const;
+ quint8 totpStep() const;
+
+ bool hasTotp() const;
bool isExpired() const;
bool hasReferences() const;
EntryAttributes* attributes();
@@ -105,6 +113,7 @@ public:
void setNotes(const QString& notes);
void setExpires(const bool& value);
void setExpiryTime(const QDateTime& dateTime);
+ void setTotp(const QString& seed, quint8& step, quint8& digits);
QList<Entry*> historyItems();
const QList<Entry*>& historyItems() const;