korganizer Library API Documentation

exportwebdialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@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 _EXPORTWEBDIALOG_H
00024 #define _EXPORTWEBDIALOG_H
00025 
00026 #include <kdialogbase.h>
00027 #include <kio/job.h>
00028 
00029 #include <libkcal/calendar.h>
00030 #include <libkcal/htmlexport.h>
00031 
00032 using namespace KCal;
00033 
00034 class KDateEdit;
00035 class QRadioButton;
00036 class QCheckBox;
00037 class QLineEdit;
00038 class QTextStream;
00039 class QFrame;
00040 class KConfig;
00041 class KURLRequester;
00042 
00047 class ExportWebDialog : public KDialogBase
00048 {
00049     Q_OBJECT
00050   public:
00051     ExportWebDialog(Calendar *cal, QWidget *parent=0, const char *name=0);
00052     virtual ~ExportWebDialog();
00053 
00054   public slots:
00055     void exportWebPage(bool synchronous=false);
00056 
00057     void slotResult(KIO::Job *);
00058     void slotDataReq(KIO::Job *,QByteArray &data);
00059     void slotTextChanged( const QString & _text);
00060   protected slots:
00061 
00062   protected:
00063     void setupGeneralPage();
00064     void setupEventPage();
00065     void setupTodoPage();
00066     void setupAdvancedPage();
00067 
00068     void loadSettings();
00069     void saveSettings();
00070 
00071   private:
00072     Calendar *mCalendar;
00073 
00074     HtmlExport *mExport;
00075 
00076     KConfig *mConfig;
00077 
00078     QFrame *mGeneralPage;
00079     QFrame *mEventPage;
00080     QFrame *mTodoPage;
00081     QFrame *mAdvancedPage;
00082 
00083     // Widgets containing export parameters
00084     KDateEdit *mFromDate,*mToDate;
00085     QCheckBox *mCbMonth;
00086     QCheckBox *mCbEvent;
00087     QCheckBox *mCbTodo;
00088     QCheckBox *mCbDueDates;
00089     QCheckBox *mCbCategoriesTodo;
00090     QCheckBox *mCbCategoriesEvent;
00091     QCheckBox *mCbAttendeesTodo;
00092     QCheckBox *mCbAttendeesEvent;
00093     QCheckBox *mCbExcludePrivateTodo;
00094     QCheckBox *mCbExcludePrivateEvent;
00095     QCheckBox *mCbExcludeConfidentialTodo;
00096     QCheckBox *mCbExcludeConfidentialEvent;
00097     QCheckBox *mCbHtmlFragment;
00098     KURLRequester *mOutputFileEdit;
00099 
00100     bool mDataAvailable;
00101 };
00102 
00103 #endif // _EXPORTWEBDIALOG_H
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:25:42 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003