author | ulf69 <ulf69> | 2004-10-29 04:49:32 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-29 04:49:32 (UTC) |
commit | 08a4582f8e5184b8abb7d97781c4fc37ee7edf90 (patch) (unidiff) | |
tree | 5131fbfb3992196cf9f4108f7d81b37365104a7d /pwmanager/pwmanager/pwmdoc.h | |
parent | f8dd437160acec2959c462dd43d87f2a0920c0b9 (diff) | |
download | kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.zip kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.tar.gz kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.tar.bz2 |
added category edit feature
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 | |||
250 | { | 250 | { |
251 | /** all PwMDataItems (all passwords) within this category */ | 251 | /** all PwMDataItems (all passwords) within this category */ |
252 | vector<PwMDataItem>d; | 252 | vector<PwMDataItem>d; |
253 | /** category name/description */ | 253 | /** category name/description */ |
254 | string name; | 254 | string name; |
255 | 255 | ||
256 | //US ENH: enhancements of the filestructure | ||
257 | /* each category stores the text for description,name and password */ | ||
258 | string desc_text; | ||
259 | string name_text; | ||
260 | string pw_text; | ||
261 | |||
256 | void clear() | 262 | void clear() |
257 | { | 263 | { |
258 | d.clear(); | 264 | d.clear(); |
259 | name = ""; | 265 | name = ""; |
266 | desc_text = "Description"; | ||
267 | name_text = "Username"; | ||
268 | pw_text = "Password"; | ||
260 | } | 269 | } |
261 | }; | 270 | }; |
262 | 271 | ||
263 | struct PwMSyncItem | 272 | struct PwMSyncItem |
264 | { | 273 | { |
265 | string syncName; | 274 | string syncName; |
@@ -782,12 +791,17 @@ protected: | |||
782 | 791 | ||
783 | //the following methods are the overwritten callbackmethods from the syncinterface | 792 | //the following methods are the overwritten callbackmethods from the syncinterface |
784 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 793 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
785 | virtual void removeSyncInfo( QString syncProfile); | 794 | virtual void removeSyncInfo( QString syncProfile); |
786 | 795 | ||
787 | #endif | 796 | #endif |
797 | //US ENH: helpermethods to return a whole category entry | ||
798 | /** returns a pointer to the categoryitem */ | ||
799 | PwMCategoryItem* getCategoryEntry(unsigned int index) | ||
800 | { return &(dti.dta[index]); } | ||
801 | |||
788 | private: | 802 | private: |
789 | //US ENH: helpermethods to access the sync data for a certain syncname. | 803 | //US ENH: helpermethods to access the sync data for a certain syncname. |
790 | // It returns the syncdatas index | 804 | // It returns the syncdatas index |
791 | bool findSyncData(const QString &syncname, unsigned int *index); | 805 | bool findSyncData(const QString &syncname, unsigned int *index); |
792 | 806 | ||
793 | /** add new syncdataentry */ | 807 | /** add new syncdataentry */ |