• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kresources

  • kresources
idmapper.h
Go to the documentation of this file.
1/*
2 This file is part of kdepim.
3
4 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
31#ifndef KRESOURCES_IDMAPPER_H
32#define KRESOURCES_IDMAPPER_H
33
34#include <QtCore/QMap>
35#include <QtCore/QString>
36
37#include "kresources_export.h"
38
39namespace KRES {
40
41class IdMapperPrivate;
42
51class KRESOURCES_DEPRECATED_EXPORT IdMapper
52{
53 public:
58 IdMapper();
59
73 explicit IdMapper( const QString &path,
74 const QString &identifier = QString() );
75
77 ~IdMapper();
78
84 void setPath( const QString &path );
85
89 QString path() const;
90
95 void setIdentifier( const QString &identifier );
96
100 QString identifier() const;
101
105 bool load();
106
110 bool save();
111
115 void clear();
116
126 void setRemoteId( const QString &localId, const QString &remoteId );
127
136 void removeRemoteId( const QString &remoteId );
137
144 QString remoteId( const QString &localId ) const;
145
150 QString localId( const QString &remoteId ) const;
151
162 void setFingerprint( const QString &localId, const QString &fingerprint );
163
171 QString fingerprint( const QString &localId ) const;
172
176 QMap<QString, QString> remoteIdMap() const;
177
182 QString asString() const;
183
184 protected:
189 QString filename();
190
191 private:
192 IdMapperPrivate *const d;
193};
194
195}
196
197#endif
KRES::IdMapper
Keeps a map of paths and identifiers.
Definition: idmapper.h:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kresources

Skip menu "kresources"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal