Diffstat (limited to 'pwmanager/pwmanager/pwmdoc.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmdoc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmdoc.h b/pwmanager/pwmanager/pwmdoc.h index 09923ab..ef81dfc 100644 --- a/pwmanager/pwmanager/pwmdoc.h +++ b/pwmanager/pwmanager/pwmdoc.h @@ -250,16 +250,25 @@ struct PwMCategoryItem { /** all PwMDataItems (all passwords) within this category */ vector<PwMDataItem> d; /** category name/description */ string name; + //US ENH: enhancements of the filestructure + /* each category stores the text for description,name and password */ + string desc_text; + string name_text; + string pw_text; + void clear() { d.clear(); name = ""; + desc_text = "Description"; + name_text = "Username"; + pw_text = "Password"; } }; struct PwMSyncItem { string syncName; @@ -782,12 +791,17 @@ protected: //the following methods are the overwritten callbackmethods from the syncinterface virtual bool sync(KSyncManager* manager, QString filename, int mode); virtual void removeSyncInfo( QString syncProfile); #endif + //US ENH: helpermethods to return a whole category entry + /** returns a pointer to the categoryitem */ + PwMCategoryItem* getCategoryEntry(unsigned int index) + { return &(dti.dta[index]); } + private: //US ENH: helpermethods to access the sync data for a certain syncname. // It returns the syncdatas index bool findSyncData(const QString &syncname, unsigned int *index); /** add new syncdataentry */ |