korganizer Library API Documentation

koincidenceeditor.h

00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2001,2003 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 KOINCIDENCEEDITOR_H 00025 #define KOINCIDENCEEDITOR_H 00026 00027 #include <kdialogbase.h> 00028 00029 #include <libkcal/calendar.h> 00030 00031 //#include "savetemplatedialog.h" 00032 00033 class QDateTime; 00034 00035 namespace KPIM { class CategorySelectDialog; } 00036 00037 class KOEditorDetails; 00038 class KOEditorAttachments; 00039 00040 using namespace KCal; 00041 00045 class KOIncidenceEditor : public KDialogBase 00046 { 00047 Q_OBJECT 00048 public: 00052 KOIncidenceEditor( const QString &caption, Calendar *calendar, 00053 QWidget *parent ); 00054 virtual ~KOIncidenceEditor(); 00055 00057 virtual void init() = 0; 00058 00059 virtual void reload() = 0; 00060 00061 public slots: 00062 void updateCategoryConfig(); 00063 00064 signals: 00065 void editCategories(); 00066 void dialogClose( Incidence * ); 00067 void editCanceled( Incidence * ); 00068 00069 protected slots: 00070 void slotApply(); 00071 void slotOk(); 00072 void slotCancel(); 00073 00074 virtual void slotLoadTemplate(); 00075 virtual void slotSaveTemplate(); 00076 00077 virtual void saveTemplate( const QString & ) = 0; 00078 00079 protected: 00080 virtual QString type() { return QString::null; } 00081 00082 void setupAttendeesTab(); 00083 void setupAttachmentsTab(); 00084 00085 QString loadTemplate( Calendar *cal, const QString &type, 00086 const QStringList &templates ); 00087 void saveAsTemplate( Incidence *, const QString &name ); 00088 00092 virtual bool processInput() { return false; } 00093 00094 virtual void processCancel() {} 00095 00096 Calendar *mCalendar; 00097 00098 KPIM::CategorySelectDialog *mCategoryDialog; 00099 00100 KOEditorDetails *mDetails; 00101 KOEditorAttachments *mAttachments; 00102 }; 00103 00104 #endif 00105 00106
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003