KPIM::IdMapper Class Reference
An Id Mapper maps Ids. More...
#include <idmapper.h>
Public Member Functions
- IdMapper ()
- IdMapper (const QString &path, const QString &identifier=QString::null)
- void setPath (const QString &path)
- QString path () const
- void setIdentifier (const QString &identifier)
- QString identifier () const
- bool load ()
- bool save ()
- void clear ()
- void setRemoteId (const QString &localId, const QString &remoteId)
- void removeRemoteId (const QString &remoteId)
- QString remoteId (const QString &localId) const
- QString localId (const QString &remoteId) const
- void setFingerprint (const QString &localId, const QString &fingerprint)
- const QString & fingerprint (const QString &localId) const
- QMap< QString, QString > remoteIdMap () const
- QString asString () const
Protected Member Functions
Detailed Description
An Id Mapper maps Ids.What to or what for is not entirely clear, but maps have categories. This is probably an adjoint functor, since adjoint functors are everywhere.
Constructor & Destructor Documentation
|
Create Id mapper. You have to set path and identifier before you can call load() or save(). |
|
Create Id mapper. The path specifies the category of mapping, the identifier the concrete object. If you don't pass an identifier you have to set it before calling load() or save(). The current implementation stores the data at /share/apps/<path>/<identifier>. |
Member Function Documentation
|
Set id map path.
|
|
Return id map path.
|
|
Set id map identifier.
|
|
Return id map identifier.
|
|
Loads the map.
|
|
Saves the map.
|
|
Clears the map.
|
|
Stores the remote id for the given local id.
|
|
Removes the remote id.
|
|
Returns the remote id of the given local id.
|
|
Returns the local id for the given remote id.
|
|
Stores a fingerprint for an id which can be used to detect if the locally held version differs from what is on the server. This can be a sequence number of an md5 hash depending on what the server provides |
|
Returns a string representation of the id pairs, that's usefull for debugging.
|
The documentation for this class was generated from the following files:
- idmapper.h
- idmapper.cpp