author | zecke <zecke> | 2004-09-12 20:27:35 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 20:27:35 (UTC) |
commit | 00952f16786dcd069820e45df83a00b6c477893b (patch) (side-by-side diff) | |
tree | ceb7ec8add37ea596c4953eab704ec24890cbb31 /libopie2/opiepim/ui/todayplugininterface.h | |
parent | b78e2e2486cdb69a173cb6ff1910c69f5381d850 (diff) | |
download | opie-00952f16786dcd069820e45df83a00b6c477893b.zip opie-00952f16786dcd069820e45df83a00b6c477893b.tar.gz opie-00952f16786dcd069820e45df83a00b6c477893b.tar.bz2 |
-Define ownership of widget and configwidget
-Implement C'tor and D'tor of TodayConfigWidget
Diffstat (limited to 'libopie2/opiepim/ui/todayplugininterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ui/todayplugininterface.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libopie2/opiepim/ui/todayplugininterface.h b/libopie2/opiepim/ui/todayplugininterface.h index 5dfeaa8..2b7f1e5 100644 --- a/libopie2/opiepim/ui/todayplugininterface.h +++ b/libopie2/opiepim/ui/todayplugininterface.h @@ -59,62 +59,71 @@ public: virtual ~TodayPluginObject() {}; /** * The name if the plugin * @return The plugin should return its name here */ virtual QString pluginName() const = 0; /** * Version numbering * @return The plugin should return the version number */ virtual double versionNumber() const = 0; /** * @return the pixmap name widget?! -- FIXME */ virtual QString pixmapNameWidget() const = 0; /** * widget for the today view * It _needs_ a parent here. * Plugin authors need to take parent as parent! + * + * Note that you always need to create a new QWidget + * on this call and the ownership is transfered to the + * caller. + * + * @param The parent of your to be created widget */ virtual QWidget* widget( QWidget *parent ) = 0; /** * Pixmap used in the config widget */ virtual QString pixmapNameConfig() const = 0; /** * Config plugin widget - optional * If the plugin has a config widget, it _needs_ a parent here. * may return 0 if no config widget is needed + * + * Note: Always create a new Widget on this call and ownership + * is transfered */ - virtual TodayConfigWidget* configWidget( QWidget * ) = 0; + virtual TodayConfigWidget* configWidget( QWidget *parent ) = 0; /** * The application that should be assigned to the button (pixmap) * Today will show the plugin icon. On click it tries to execute the * plugin related application. */ virtual QString appName() const = 0; /** * If the plugin should take part in the periodic refresh */ virtual bool excludeFromRefresh() const = 0; /** * Refresh that plugins view. For updating the plugins */ virtual void refresh() {}; /** * reread the plugins config and act apropiate * This is for example used when returning from the config dialog */ virtual void reinitialize() {}; |