summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/serializer.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/serializer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/serializer.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/serializer.h b/pwmanager/pwmanager/serializer.h
index 245fcee..ee61b94 100644
--- a/pwmanager/pwmanager/serializer.h
+++ b/pwmanager/pwmanager/serializer.h
@@ -51,9 +51,10 @@ public:
/** returns the current XML data */
QCString getXml();
/** serialize "dta" and store it as XML data */
- bool serialize(const vector<PwMCategoryItem> &dta);
+ //US ENH: we need to serialize and deserialize not only categories, but also synctargets
+ bool serialize(PwMItem &dta);
/** deserialize the (parsed) XML data and store it in "dta" */
- bool deSerialize(vector<PwMCategoryItem> *dta);
+ bool deSerialize(PwMItem *dta);
/** sets the initial default lockStat we should assign */
void setDefaultLockStat(bool stat)
{ defaultLockStat = stat; }
@@ -97,6 +98,18 @@ protected:
QString escapeEntryData(QString dta);
/** un-escape illegal characters out of the given entry data string */
QString unescapeEntryData(QString dta);
+
+
+
+ //US ENH: the following methods are getting used to write/read sync entries
+ /** read the syncentries in the node "n" */
+ bool readSyncData(const QDomNode &n,
+ vector<PwMSyncItem> *dta);
+
+ /** add new syncentries to the XML data stream in e */
+ bool addSyncData(QDomElement *e,
+ const vector<PwMSyncItem> &dta);
+
};
#endif // __SERIALIZER_H