korganizer Library API Documentation

korganizer_part.h

00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2000,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 KORGANIZER_PART_H 00025 #define KORGANIZER_PART_H 00026 00027 #include <kurl.h> 00028 #include <kparts/browserextension.h> 00029 //#include <kparts/statusbarextension.h> 00030 //#include <kparts/factory.h> 00031 #include <korganizer/mainwindow.h> 00032 //#include <korganizer/calendarviewbase.h> 00033 00034 00035 class KInstance; 00036 class KAboutData; 00037 class KOrganizerBrowserExtension; 00038 class KProcess; 00039 00040 class CalendarView; 00041 class ActionManager; 00042 00043 namespace KCal { 00044 class CalendarResources; 00045 class Calendar; 00046 class Incidence; 00047 } 00048 using namespace KCal; 00049 namespace KParts { 00050 class StatusBarExtension; 00051 } 00052 namespace KOrg { 00053 class CalendarViewBase; 00054 } 00055 00056 class KOrganizerPart: public KParts::ReadOnlyPart, 00057 public KOrg::MainWindow 00058 { 00059 Q_OBJECT 00060 public: 00061 KOrganizerPart( QWidget *parentWidget, const char *widgetName, 00062 QObject *parent, const char *name, const QStringList & ); 00063 virtual ~KOrganizerPart(); 00064 00065 static KAboutData *createAboutData(); 00066 00067 virtual KOrg::CalendarViewBase *view() const; 00068 00070 virtual bool openURL( const KURL &url, bool merge = false ); 00072 virtual bool saveURL(); 00074 virtual bool saveAsURL( const KURL &kurl ); 00075 00077 virtual KURL getCurrentURL() const; 00078 00079 virtual KXMLGUIFactory *mainGuiFactory() { return factory(); } 00080 virtual KXMLGUIClient *mainGuiClient() { return this; } 00081 virtual QWidget *topLevelWidget(); 00082 virtual ActionManager *actionManager(); 00083 virtual void showStatusMessage( const QString &message ); 00084 00085 void setTitle() {}; 00086 00087 public slots: 00088 void slotChangeInfo( Incidence * ); 00089 00090 protected: 00091 virtual bool openFile(); 00092 00093 protected slots: 00094 void startCompleted( KProcess * ); 00095 00096 void configureKeyBindings(); 00097 00098 private: 00099 CalendarView *mView; 00100 ActionManager *mActionManager; 00101 KOrganizerBrowserExtension *mBrowserExtension; 00102 KParts::StatusBarExtension *mStatusBarExtension; 00103 00104 signals: 00105 void textChanged( const QString & ); 00106 }; 00107 00108 class KOrganizerBrowserExtension : public KParts::BrowserExtension 00109 { 00110 Q_OBJECT 00111 friend class KOrganizerPart; 00112 public: 00113 KOrganizerBrowserExtension( KOrganizerPart *parent ); 00114 virtual ~KOrganizerBrowserExtension(); 00115 }; 00116 00117 #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:32 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003