00001 #ifndef OPIE_DATEBOOK_EDITOR_H 00002 #define OPIE_DATEBOOK_EDITOR_H 00003 00004 #include <qdialog.h> 00005 00006 #include <opie/oevent.h> 00007 00008 #include "descriptionmanager.h" 00009 #include "locationmanager.h" 00010 00011 namespace Datebook { 00012 class MainWindow; 00016 class Editor { 00017 public: 00018 Editor( MainWindow*, QWidget* parent ); 00019 virtual ~Editor(); 00020 00021 virtual bool newEvent( const QDate& ) = 0; 00022 virtual bool newEvent( const QDateTime& start, const QDateTime& end ) = 0; 00023 virtual bool edit( const OEvent&, bool showRec = TRUE ) = 0; 00024 00025 virtual OEvent event()const = 0; 00026 00027 protected: 00028 DescriptionManager descriptions()const; 00029 LocationManager locations()const; 00030 void setDescriptions( const DescriptionManager& ); 00031 void setLocations( const LocationManager& ); 00032 00033 private: 00034 MainWindow* m_win; 00035 00036 }; 00037 } 00038 00039 #endif
1.4.2