KSync::SyncHistoryMap Class Reference
A small helper class to map a string (timestamp,md5sum) from and to a uid and save this map on permanent storage like KConfig. More...
#include <synchistory.h>
Public Types
Public Member Functions
- SyncHistoryMap (const QString &fileName=QString::null)
- virtual ~SyncHistoryMap ()
- void setFileName (const QString &fileName)
- QString fileName () const
- void load ()
- void save ()
- QString text (const QString &id_key) const
- bool contains (const QString &id_key) const
- void insert (const QString &id_key, const QString &text_data)
- void set (const SyncHistoryMap::Map &)
- SyncHistoryMap::Map map () const
- void clear ()
Protected Member Functions
- KConfig * config ()
Detailed Description
A small helper class to map a string (timestamp,md5sum) from and to a uid and save this map on permanent storage like KConfig.
Constructor & Destructor Documentation
|
Construct an empty MetaMap. You need to call load to retrive the information from the permanent storage.
SyncHistoryMap *map = new SyncHistoryMap(metaData); map->load();
|
|
Destructor, cleans up and deletes the internal Config object.
|
Member Function Documentation
|
|
|
load the information This method possible creates a KConfig object if mFile is a valid path and tries to load the saved MetaData and fills the internal map. |
|
Saves the current Map to a permanent storage and wipes out any previous data. Calling without a prior call to load() works as well as the Config object is created on demand |
|
|
|
|
|
If the id_key already existed before the old incarnation is shadowed.
|
|
replace the internal map with the parameter
|
|
|
|
Clears the permanent storage and also the internal map.
|
|
creates the kconfig object on demand
|
The documentation for this class was generated from the following files:
- synchistory.h
- synchistory.cpp