diff options
Diffstat (limited to 'src/core/CustomData.cpp')
-rw-r--r-- | src/core/CustomData.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/CustomData.cpp b/src/core/CustomData.cpp index f009176a0..b421ec3a0 100644 --- a/src/core/CustomData.cpp +++ b/src/core/CustomData.cpp @@ -20,7 +20,10 @@ #include "core/Global.h" -const QString CustomData::LastModified = "_LAST_MODIFIED"; +const QString CustomData::LastModified = QStringLiteral("_LAST_MODIFIED"); +const QString CustomData::Created = QStringLiteral("_CREATED"); +const QString CustomData::BrowserKeyPrefix = QStringLiteral("KPXC_BROWSER_"); +const QString CustomData::BrowserLegacyKeyPrefix = QStringLiteral("Public Key: "); CustomData::CustomData(QObject* parent) : QObject(parent) @@ -127,6 +130,11 @@ QDateTime CustomData::getLastModified() const return {}; } +bool CustomData::isProtectedCustomData(const QString& key) const +{ + return key.startsWith(CustomData::BrowserKeyPrefix) || key.startsWith(CustomData::Created); +} + bool CustomData::operator==(const CustomData& other) const { return (m_data == other.m_data); |