kincidencechooser.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _KINCIDENCECHOOSER_H
00024 #define _KINCIDENCECHOOSER_H
00025
00026
00027 #include <kdialogbase.h>
00028 #include <qptrlist.h>
00029 #include <qmutex.h>
00030
00031 #include <libkcal/incidence.h>
00032 #include "htmldiffalgodisplay.h"
00033 #include "calendardiffalgo.h"
00034
00035
00036 class QRadioButton;
00037 class QButtonGroup;
00038 class QVBox;
00039 class QStringList;
00040 class QTextBrowser;
00041 class KDialogBase;
00042
00046 class KIncidenceChooser : public KDialog
00047 {
00048 Q_OBJECT
00049 public:
00050 enum mode { local, remote, newest, ask, both };
00052 KIncidenceChooser(QWidget *parent=0,char *name=0);
00053 ~KIncidenceChooser();
00054
00055 void setIncidence( KCal::Incidence*,KCal::Incidence*);
00056 KCal::Incidence* getIncidence();
00057 static int chooseMode;
00058
00059 public slots:
00060 void useGlobalMode();
00061
00062 protected slots:
00063 void showIncidence1();
00064 void showIncidence2();
00065 void showDiff();
00066 void takeIncidence1();
00067 void takeIncidence2();
00068 void takeBoth();
00069 void setLabels();
00070 void setSyncMode();
00071 void detailsDialogClosed();
00072
00073 protected:
00074 private:
00075 KPIM::HTMLDiffAlgoDisplay* mDisplayDiff;
00076 KPIM::CalendarDiffAlgo* diff;
00077 KDialogBase* mTbL, *mTbN;
00078 KCal::Incidence* choosedIncidence;
00079 KCal::Incidence* mInc1, *mInc2;
00080 QButtonGroup *mBg;
00081 QPushButton *diffBut,*showDetails1,*showDetails2;
00082 QLabel* mInc1lab, *mInc2lab,* mInc1Sumlab, *mInc2Sumlab,*mMod1lab,*mMod2lab;
00083
00084 };
00085
00086 #endif
This file is part of the documentation for libkdepim Library Version 3.3.2.