korganizer Library API Documentation

koeditorgeneraljournal.h

00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 00005 Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 00021 As a special exception, permission is given to link this program 00022 with any edition of Qt, and distribute the resulting executable, 00023 without including the source code for Qt in the source distribution. 00024 */ 00025 #ifndef KOEDITORGENERALJOURNAL_H 00026 #define KOEDITORGENERALJOURNAL_H 00027 00028 #include <qobject.h> 00029 #include <qdatetime.h> 00030 00031 class KDateEdit; 00032 class KTextEdit; 00033 class QLabel; 00034 class QBoxLayout; 00035 class QWidget; 00036 00037 namespace KCal { 00038 class Incidence; 00039 class Journal; 00040 } 00041 using namespace KCal; 00042 00043 class KOEditorGeneralJournal : public QObject 00044 { 00045 Q_OBJECT 00046 public: 00047 KOEditorGeneralJournal ( QObject* parent=0, const char* name=0 ); 00048 virtual ~KOEditorGeneralJournal(); 00049 00050 void initDate( QWidget *, QBoxLayout * ); 00051 void initDescription( QWidget *, QBoxLayout * ); 00052 00054 void setDefaults( QDate date ); 00055 void setDate( QDate date ); 00057 void readJournal( Journal *, bool tmpl = false ); 00059 void writeJournal( Journal * ); 00060 00062 bool validateInput(); 00063 00064 void setDescription( const QString & ); 00065 void finishSetup(); 00066 00067 protected: 00068 KTextEdit *mDescriptionEdit; 00069 QLabel *mDateLabel; 00070 KDateEdit *mDateEdit; 00071 }; 00072 00073 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:31 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003