Initalize more member variables.

This commit is contained in:
Felix Geyer 2011-07-07 12:52:30 +02:00
parent afb285a476
commit a1bfb1f319
5 changed files with 16 additions and 9 deletions

View File

@ -30,8 +30,8 @@ Database::Database()
m_rootGroup = 0;
m_cipher = KeePass2::CIPHER_AES;
m_compressionAlgo = CompressionNone; // TODO change to CompressionGZip?
m_transformRounds = 1000; // TODO random number
m_compressionAlgo = CompressionGZip;
m_transformRounds = 50000;
}
Group* Database::rootGroup()

View File

@ -29,7 +29,9 @@ Entry::Entry()
m_group = 0;
m_db = 0;
m_iconNumber = 0; // TODO change?
m_iconNumber = 0;
m_autoTypeEnabled = true;
m_autoTypeObfuscation = 0;
Q_FOREACH (const QString& key, m_defaultAttibutes) {
addAttribute(key, "");

View File

@ -30,7 +30,10 @@ Group::Group()
m_db = 0;
m_lastTopVisibleEntry = 0;
m_iconNumber = 0; // TODO change?
m_iconNumber = 48;
m_isExpanded = true;
m_autoTypeEnabled = Inherit;
m_searchingEnabled = Inherit;
}
Group::~Group()

View File

@ -22,13 +22,17 @@
Metadata::Metadata(Database* parent)
: QObject(parent)
{
m_generator = "KeePassX";
m_maintenanceHistoryDays = 365;
m_recycleBin = 0;
m_entryTemplatesGroup = 0;
m_lastSelectedGroup = 0;
m_lastTopVisibleGroup = 0;
m_generator = "KeePassX";
m_maintenanceHistoryDays = 365;
m_recycleBinEnabled = true;
m_masterKeyChangeRec = -1;
m_masterKeyChangeForce = -1;
QDateTime now = QDateTime::currentDateTime();
m_nameChanged = now;
m_descriptionChanged = now;
@ -42,8 +46,6 @@ Metadata::Metadata(Database* parent)
m_protectPassword = true;
m_protectUrl = false;
m_protectNotes = false;
// TODO initalize all members
}
QString Metadata::generator() const

View File

@ -20,7 +20,7 @@
TimeInfo::TimeInfo()
{
m_expires = false;
m_usageCount = 0; // TODO ???
m_usageCount = 0;
QDateTime now = QDateTime::currentDateTime();
m_lastModificationTime = now;