26 #include <klibloader.h>
27 #include <tdeparts/part.h>
29 #include <korganizer/mainwindow.h>
33 class Part : public KParts::Part
36 static int interfaceVersion() { return 2; }
37 static TQString serviceType() { return "KOrganizer/Part"; }
39 typedef TQPtrList<Part> List;
41 Part( MainWindow *parent, const char *name )
42 : KParts::Part( parent?(parent->topLevelWidget()):0, name ), mMainWindow( parent ) {}
46 virtual TQString info() = 0;
48 virtual TQString shortInfo() = 0;
50 MainWindow *mainWindow() { return mMainWindow; }
53 MainWindow *mMainWindow;
56 class PartFactory : public KLibFactory
59 virtual Part *create( MainWindow *parent, const char *name = 0 ) = 0;
62 virtual TQObject *createObject( TQObject *, const char *, const char *,
63 const TQStringList & )
|