mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 01:21:37 -08:00
Add KeePass2Writer.
Support attributes MasterKeyChanged, MasterKeyChangeRec, MasterKeyChangeForce and Tags. Close streams in the dtor.
This commit is contained in:
1 parent
a9ac4bbf41
commit
e3da80fcc6
22 files changed
+397
-39
No files matched your search
@@ -145,6 +145,21 @@ const Group* Metadata::lastTopVisibleGroup() const
|
||||
return m_lastTopVisibleGroup;
|
||||
}
|
||||
|
||||
QDateTime Metadata::masterKeyChanged() const
|
||||
{
|
||||
return m_masterKeyChanged;
|
||||
}
|
||||
|
||||
int Metadata::masterKeyChangeRec() const
|
||||
{
|
||||
return m_masterKeyChangeRec;
|
||||
}
|
||||
|
||||
int Metadata::masterKeyChangeForce() const
|
||||
{
|
||||
return m_masterKeyChangeForce;
|
||||
}
|
||||
|
||||
QHash<QString, QString> Metadata::customFields() const
|
||||
{
|
||||
return m_customFields;
|
||||
@@ -271,6 +286,21 @@ void Metadata::setLastTopVisibleGroup(Group* group)
|
||||
m_lastTopVisibleGroup = group;
|
||||
}
|
||||
|
||||
void Metadata::setMasterKeyChanged(const QDateTime& value)
|
||||
{
|
||||
m_masterKeyChanged = value;
|
||||
}
|
||||
|
||||
void Metadata::setMasterKeyChangeRec(int value)
|
||||
{
|
||||
m_masterKeyChangeRec = value;
|
||||
}
|
||||
|
||||
void Metadata::setMasterKeyChangeForce(int value)
|
||||
{
|
||||
m_masterKeyChangeForce = value;
|
||||
}
|
||||
|
||||
void Metadata::addCustomField(const QString& key, const QString& value)
|
||||
{
|
||||
Q_ASSERT(!m_customFields.contains(key));
|
||||
|
||||
Reference in new issue
Block a user