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