kpilot
idmapping.h
Go to the documentation of this file.00001 #ifndef _KPILOT_IDMAPPING_H 00002 #define _KPILOT_IDMAPPING_H 00003 /* 00004 ** Copyright (C) 2006 Bertjan Broeksema <bbroeksema@bluebottle.com> 00005 */ 00006 00007 /* 00008 ** This program is free software; you can redistribute it and/or modify 00009 ** it under the terms of the GNU Lesser General Public License as published by 00010 ** the Free Software Foundation; either version 2.1 of the License, or 00011 ** (at your option) any later version. 00012 ** 00013 ** This program is distributed in the hope that it will be useful, 00014 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 ** GNU Lesser General Public License for more details. 00017 ** 00018 ** You should have received a copy of the GNU Lesser General Public License 00019 ** along with this program in a file called COPYING; if not, write to 00020 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00021 ** MA 02110-1301, USA. 00022 */ 00023 00024 /* 00025 ** Bug reports and questions can be sent to kde-pim@kde.org 00026 */ 00027 00028 00029 #include "pi-macros.h" 00030 00031 #include <qstring.h> 00032 #include <qdatetime.h> 00033 00034 class IDMapping 00035 { 00036 public: 00037 IDMapping(); 00038 00039 IDMapping( const QString &conduit ); 00040 00041 IDMapping( const IDMapping &m ); 00042 00043 IDMapping operator=( const IDMapping &m ); 00044 00045 void setUid( const QString &uid ); 00046 00047 void setPid( recordid_t uid ); 00048 00049 void setLastSyncTime( const QDateTime &datetime ); 00050 00051 QString conduit() const; 00052 00053 QString uid() const; 00054 00055 recordid_t pid() const; 00056 00057 QDateTime lastSyncTime() const; 00058 00059 private: 00060 QString fConduit; 00061 QString fUid; 00062 recordid_t fPid; 00063 QDateTime fLastSync; 00064 }; 00065 00066 #endif