kpilot
doc-conflictdialog.h
Go to the documentation of this file.00001 #ifndef CONFLICTDIALOG_H 00002 #define CONFLICTDIALOG_H 00003 /* doc-conflictdialog.h KPilot 00004 ** 00005 ** Copyright (C) 2002-2003 by Reinhold Kainhofer 00006 ** 00007 */ 00008 00009 /* 00010 ** This program is free software; you can redistribute it and/or modify 00011 ** it under the terms of the GNU General Public License as published by 00012 ** the Free Software Foundation; either version 2 of the License, or 00013 ** (at your option) any later version. 00014 ** 00015 ** This program is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program in a file called COPYING; if not, write to 00022 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00023 ** MA 02110-1301, USA. 00024 */ 00025 00026 /* 00027 ** Bug reports and questions can be sent to kde-pim@kde.org 00028 */ 00029 00030 00031 #include <kdialogbase.h> 00032 #include "doc-conduit.h" 00033 00034 00035 class QComboBox; 00036 class QGridLayout; 00037 class QGroupBox; 00038 00039 class QLabel; 00040 class QPushButton; 00041 class QTimer; 00042 class KPilotLink; 00043 00044 00045 typedef struct conflictEntry { 00046 QLabel*dbname; 00047 QComboBox* resolution; 00048 QPushButton*info; 00049 int index; 00050 bool conflict; 00051 }; 00052 00053 00054 class ResolutionDialog : public KDialogBase 00055 { 00056 Q_OBJECT 00057 00058 public: 00059 ResolutionDialog( QWidget* parent=0, const QString& caption=i18n("Resolution Dialog"), syncInfoList*sinfo=0L, KPilotLink*lnk=0L); 00060 ~ResolutionDialog(); 00061 00062 bool hasConflicts; 00063 public slots: 00064 void _tickle(); 00065 protected: 00066 QTimer* tickleTimer; 00067 KPilotLink* fHandle; 00068 00069 protected: 00070 QGroupBox* resolutionGroupBox; 00071 QGridLayout*resolutionGroupBoxLayout; 00072 00073 syncInfoList*syncInfo; 00074 QValueList<conflictEntry> conflictEntries; 00075 QLabel *textLabel1,*textLabel2; 00076 00077 protected slots: 00078 virtual void slotOk(); 00079 void slotInfo(int index); 00080 00081 }; 00082 00083 #endif // CONFLICTDIALOG_H