kpilot
resolutionTable.h
Go to the documentation of this file.00001 #ifndef RESOLUTIONTABLE_H 00002 #define RESOLUTIONTABLE_H 00003 /* resolutionTable.h KPilot 00004 ** 00005 ** Copyright (C) 2003 by Reinhold Kainhofer 00006 ** 00007 ** See the .cc file for an explanation of what this file is for. 00008 */ 00009 00010 /* 00011 ** This program is free software; you can redistribute it and/or modify 00012 ** it under the terms of the GNU General Public License as published by 00013 ** the Free Software Foundation; either version 2 of the License, or 00014 ** (at your option) any later version. 00015 ** 00016 ** This program is distributed in the hope that it will be useful, 00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 ** GNU General Public License for more details. 00020 ** 00021 ** You should have received a copy of the GNU General Public License 00022 ** along with this program in a file called COPYING; if not, write to 00023 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00024 ** MA 02110-1301, USA. 00025 */ 00026 00027 /* 00028 ** Bug reports and questions can be sent to kde-pim@kde.org 00029 */ 00030 00031 00032 #include <qvaluelist.h> 00033 #include "syncAction.h" 00034 00035 typedef enum eExistItems { 00036 eExistsPC=0x1, eExistsPalm=0x2, eExistsBackup=0x4, 00037 eExistsAll=eExistsPC|eExistsPalm|eExistsBackup 00038 }; 00039 00040 class ResolutionItem 00041 { 00042 public: 00043 enum eExistItems fExistItems; 00044 QString fEntries[3]; 00045 QString fResolved; 00046 QString fName; 00047 public: 00048 ResolutionItem() {} 00049 ResolutionItem(QString name, int ex, QString pc, QString palm, QString backup):fExistItems((eExistItems)ex),fName(name) 00050 {fEntries[0]=pc;fEntries[1]=palm; fEntries[2]=backup; /*fExistItems=(eExistItems)ex;*/ } 00051 ~ResolutionItem() {} 00052 }; 00053 00057 class ResolutionTable : public QPtrList<ResolutionItem> 00058 { 00059 public: 00060 ResolutionTable():QPtrList<ResolutionItem>() {fResolution=SyncAction::eAskUser;}; 00061 00062 ~ResolutionTable() {}; 00063 00064 SyncAction::ConflictResolution fResolution; 00065 QString labels[3]; 00066 enum eExistItems fExistItems; 00067 }; 00068 00069 #endif 00070