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:
authorSami Vänttinen <sami.vanttinen@protonmail.com>2019-05-02 01:35:08 +0300
committerJonathan White <support@dmapps.us>2019-05-02 01:35:08 +0300
commite4eee897f9fb931d8081f9b70da0b0f1e6a8b9b8 (patch)
treec2aef8b8b3170903beccfa2617466d150ba36436 /src/core/CustomData.h
parent01a3d5b0ba0047b3179f44dd5caba74055228219 (diff)
Support Database Custom Data Merging (#3002)
* Introduce _LAST_MODIFIED custom data entry that stores the last modified datetime of the database's custom data entries * Merge custom data from source database to target * Modify tests to be aware of _LAST_MODIFIED entry
Diffstat (limited to 'src/core/CustomData.h')
-rw-r--r--src/core/CustomData.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/CustomData.h b/src/core/CustomData.h
index d085c9409..126d4d84e 100644
--- a/src/core/CustomData.h
+++ b/src/core/CustomData.h
@@ -42,9 +42,12 @@ public:
int size() const;
int dataSize() const;
void copyDataFrom(const CustomData* other);
+ QDateTime getLastModified() const;
bool operator==(const CustomData& other) const;
bool operator!=(const CustomData& other) const;
+ static const QString LastModified;
+
signals:
void customDataModified();
void aboutToBeAdded(const QString& key);
@@ -55,6 +58,10 @@ signals:
void renamed(const QString& oldKey, const QString& newKey);
void aboutToBeReset();
void reset();
+ void lastModified();
+
+private slots:
+ void updateLastModified();
private:
QHash<QString, QString> m_data;