libkdepim Library API Documentation

kincidencechooser.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
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     //void setChooseText( QString );
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
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:18:32 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003