kresources
idmapper.h
Go to the documentation of this file.
00001 /* 00002 This file is part of kdepim. 00003 00004 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org> 00005 Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00031 #ifndef KRESOURCES_IDMAPPER_H 00032 #define KRESOURCES_IDMAPPER_H 00033 00034 #include <QtCore/QMap> 00035 #include <QtCore/QString> 00036 00037 #include "kresources_export.h" 00038 00039 namespace KRES { 00040 00041 class IdMapperPrivate; 00042 00051 class KRESOURCES_EXPORT_DEPRECATED IdMapper 00052 { 00053 public: 00058 IdMapper(); 00059 00073 explicit IdMapper( const QString &path, 00074 const QString &identifier = QString() ); 00075 00077 ~IdMapper(); 00078 00084 void setPath( const QString &path ); 00085 00089 QString path() const; 00090 00095 void setIdentifier( const QString &identifier ); 00096 00100 QString identifier() const; 00101 00105 bool load(); 00106 00110 bool save(); 00111 00115 void clear(); 00116 00126 void setRemoteId( const QString &localId, const QString &remoteId ); 00127 00136 void removeRemoteId( const QString &remoteId ); 00137 00144 QString remoteId( const QString &localId ) const; 00145 00150 QString localId( const QString &remoteId ) const; 00151 00162 void setFingerprint( const QString &localId, const QString &fingerprint ); 00163 00171 QString fingerprint( const QString &localId ) const; 00172 00176 QMap<QString, QString> remoteIdMap() const; 00177 00182 QString asString() const; 00183 00184 protected: 00189 QString filename(); 00190 00191 private: 00192 IdMapperPrivate *const d; 00193 }; 00194 00195 } 00196 00197 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:08 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:08 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.