Move Auto-Type associations handling from Entry into an own class.

This commit is contained in:
Felix Geyer
2012-07-16 09:54:04 +02:00
parent f4a4930f42
commit f98d834edb
9 changed files with 197 additions and 38 deletions

View File

@@ -712,14 +712,14 @@ void KeePass2XmlReader::parseAutoTypeAssoc(Entry* entry)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Association");
AutoTypeAssociation assoc;
AutoTypeAssociations::Association assoc;
while (!m_xml.error() && m_xml.readNextStartElement()) {
if (m_xml.name() == "Window") {
assoc.window = readString();
}
else if (m_xml.name() == "KeystrokeSequence") {
assoc.sequence = readString();
entry->addAutoTypeAssociation(assoc);
entry->autoTypeAssociations()->add(assoc);
}
else {
skipCurrentElement();