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., 675 Mass Ave, Cambridge, MA 02139, 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 
00031 using namespace KCal;
00032 
00033 class KDateEdit;
00034 class QRadioButton;
00035 class QCheckBox;
00036 class QLineEdit;
00037 class QTextStream;
00038 class QFrame;
00039 class KConfig;
00040 class HtmlExport;
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 
00060   protected slots:
00061  
00062   signals:
00063 
00064   protected:
00065     void setupGeneralPage();
00066     void setupEventPage();
00067     void setupTodoPage();
00068     void setupAdvancedPage();
00069 
00070     void loadSettings();
00071     void saveSettings();
00072 
00073   private:
00074     Calendar *mCalendar;
00075 
00076     HtmlExport *mExport;
00077 
00078     KConfig *mConfig;
00079   
00080     QFrame *mGeneralPage;
00081     QFrame *mEventPage;
00082     QFrame *mTodoPage;
00083     QFrame *mAdvancedPage;
00084   
00085     // Widgets containing export parameters
00086     KDateEdit *mFromDate,*mToDate;
00087     QCheckBox *mCbMonth;
00088     QCheckBox *mCbEvent;
00089     QCheckBox *mCbTodo;
00090     QCheckBox *mCbDueDates;
00091     QCheckBox *mCbCategoriesTodo;
00092     QCheckBox *mCbCategoriesEvent;
00093     QCheckBox *mCbAttendeesTodo;
00094     QCheckBox *mCbAttendeesEvent;
00095     QCheckBox *mCbExcludePrivateTodo;
00096     QCheckBox *mCbExcludePrivateEvent;
00097     QCheckBox *mCbExcludeConfidentialTodo;
00098     QCheckBox *mCbExcludeConfidentialEvent;
00099     QCheckBox *mCbHtmlFragment;
00100     KURLRequester *mOutputFileEdit;
00101 
00102     bool mDataAvailable;
00103 };
00104 
00105 #endif // _EXPORTWEBDIALOG_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:08 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001