part.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KORG_PART_H
00021 #define KORG_PART_H
00022
00023
00024 #include <qstring.h>
00025
00026 #include <klibloader.h>
00027 #include <kparts/part.h>
00028
00029 #include <korganizer/mainwindow.h>
00030
00031 namespace KOrg {
00032
00033 class Part : public KParts::Part {
00034 public:
00035 typedef QPtrList<Part> List;
00036
00037 Part(MainWindow *parent, const char *name) :
00038 KParts::Part(parent,name), mMainWindow(parent) {};
00039
00040 virtual ~Part() {};
00041
00042 virtual QString info() = 0;
00043
00044 MainWindow *mainWindow() { return mMainWindow; }
00045
00046 private:
00047 MainWindow *mMainWindow;
00048 };
00049
00050 class PartFactory : public KLibFactory {
00051 public:
00052 virtual Part *create(MainWindow *parent, const char *name=0) = 0;
00053
00054 protected:
00055 virtual QObject* createObject(QObject*, const char*,const char*,
00056 const QStringList &)
00057 {
00058 return 0;
00059 }
00060 };
00061
00062 }
00063
00064 #endif
This file is part of the documentation for kdelibs Version 3.1.4.