korganizer Library API Documentation

kodialogmanager.h

00001 /*
00002   This file is part of KOrganizer.
00003   Copyright (c) 2001
00004   Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010 
00011   This program is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014   GNU General Public License for more details.
00015 
00016   You should have received a copy of the GNU General Public License
00017   along with this program; if not, write to the Free Software
00018   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 
00020   As a special exception, permission is given to link this program
00021   with any edition of Qt, and distribute the resulting executable,
00022   without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef KODIALOGMANAGER_H
00025 #define KODIALOGMANAGER_H
00026 
00027 #include <qobject.h>
00028 #include <qptrlist.h>
00029 
00030 #include <libkcal/calfilter.h>
00031 
00032 class CalendarView;
00033 class OutgoingDialog;
00034 class IncomingDialog;
00035 class KOPrefsDialog;
00036 namespace KPIM { class CategoryEditDialog; }
00037 class KOEventEditor;
00038 class KOTodoEditor;
00039 class SearchDialog;
00040 class ArchiveDialog;
00041 class PluginDialog;
00042 class FilterEditDialog;
00043 
00044 using namespace KCal;
00045 
00050 class KODialogManager : public QObject
00051 {
00052     Q_OBJECT
00053   public:
00054     KODialogManager( CalendarView * );
00055     virtual ~KODialogManager();
00056 
00058     KOEventEditor *getEventEditor();
00059     
00061     KOTodoEditor *getTodoEditor();
00062 
00063     OutgoingDialog *outgoingDialog();
00064     
00065     IncomingDialog *incomingDialog();
00066 
00067     void updateSearchDialog();
00068     void setDocumentId( const QString &id );
00069     
00070   public slots:
00071     void showOptionsDialog();
00072     void showIncomingDialog();
00073     void showOutgoingDialog();
00074     void showCategoryEditDialog();
00075     void showSearchDialog();
00076     void showArchiveDialog();
00077     void showFilterEditDialog(QPtrList<CalFilter> *filters);
00078     void showPluginDialog();
00079 
00080   private:
00081     void createOutgoingDialog();
00082     void createIncomingDialog();
00083 
00084     CalendarView *mMainView;
00085     
00086     OutgoingDialog *mOutgoingDialog;
00087     IncomingDialog *mIncomingDialog;
00088     KOPrefsDialog *mOptionsDialog;
00089     KPIM::CategoryEditDialog *mCategoryEditDialog;
00090     SearchDialog *mSearchDialog;
00091     ArchiveDialog *mArchiveDialog;
00092     FilterEditDialog *mFilterEditDialog;
00093     PluginDialog *mPluginDialog;
00094 };
00095 
00096 #endif
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:09 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001