korganizer Library API Documentation

koeventeditor.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 KOEVENTEDITOR_H
00025 #define KOEVENTEDITOR_H
00026 
00027 #include "koincidenceeditor.h"
00028 
00029 class KOEditorGeneralEvent;
00030 class KOEditorRecurrence;
00031 class KOEditorFreeBusy;
00032 
00033 class SaveTemplateDialog;
00034 
00035 class KOEditorFreeBusy;
00036 
00037 namespace KCal {
00038 class Calendar;
00039 class Event;
00040 }
00041 using namespace KCal;
00042 
00046 class KOEventEditor : public KOIncidenceEditor
00047 {
00048     Q_OBJECT
00049   public:
00053     KOEventEditor( Calendar *calendar, QWidget *parent );
00054     virtual ~KOEventEditor(void);
00055 
00056     void init();
00058     void modified (int change=0);
00059     void reload();
00060 
00064     void newEvent( QDateTime from, QDateTime to, bool allDay = false );
00068     void newEvent( const QString & );
00072     void newEvent( const QString &summary, const QString &description,
00073                    const QString &attachment );
00077     void newEvent( const QString &summary, const QString &description,
00078                    const QString &attachment, const QStringList &attendees );
00082     void editIncidence( Incidence * );
00083 
00087     void setDefaults( QDateTime from, QDateTime to, bool allDay );
00088 
00093     void readEvent( Event *, bool tmpl = false );
00097     void writeEvent( Event * );
00098 
00099     QObject *typeAheadReceiver() const;
00100 
00101   signals:
00102     void focusReceivedSignal();
00103 
00104   protected slots:
00105     void loadDefaults();
00106     void deleteEvent();
00107 
00108     void slotLoadTemplate();
00109 
00110     void saveTemplate( const QString & );
00111 
00112   protected:
00113     QString type() { return "Event"; }
00114     void setupGeneral();
00115     void setupRecurrence();
00116     void setupFreeBusy();
00117 
00119     bool validateInput();
00122     bool processInput();
00123     void processCancel();
00124     int msgItemDelete();
00125 
00126   private:
00127     Event *mEvent;
00128 
00129     KOEditorGeneralEvent *mGeneral;
00130     KOEditorRecurrence   *mRecurrence;
00131     KOEditorFreeBusy     *mFreeBusy;
00132 };
00133 
00134 #endif
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 Wed Mar 23 22:45:25 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003