resolutionTable.h
00001 #ifndef RESOLUTIONTABLE_H
00002 #define RESOLUTIONTABLE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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; }
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::eConflictResolution fResolution;
00065 QString labels[3];
00066 enum eExistItems fExistItems;
00067 };
00068
00069 #endif
00070
This file is part of the documentation for kpilot Library Version 3.2.2.