mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-27 18:10:31 -05:00
Add KeePass2Writer.
Support attributes MasterKeyChanged, MasterKeyChangeRec, MasterKeyChangeForce and Tags. Close streams in the dtor.
This commit is contained in:
parent
a9ac4bbf41
commit
e3da80fcc6
22 changed files with 397 additions and 39 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue