Diffstat (limited to 'examples/todayplugin/exampleplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/todayplugin/exampleplugin.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/examples/todayplugin/exampleplugin.h b/examples/todayplugin/exampleplugin.h new file mode 100644 index 0000000..0d9f11d --- a/dev/null +++ b/examples/todayplugin/exampleplugin.h @@ -0,0 +1,51 @@ +/* + * exampleplugin.h + * + * copyright : (c) 2004 by Maximilian Reiß + * email : harlekin@handhelds.org + * + */ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef EXAMPLE_PLUGIN_H +#define EXAMPLE_PLUGIN_H + +#include <qwidget.h> +#include <qguardedptr.h> + +#include <opie/todayplugininterface.h> +#include <opie/todayconfigwidget.h> + +#include "examplepluginwidget.h" + +// implementation of the today plugin interface +class ExamplePlugin : public TodayPluginObject { + +public: + ExamplePlugin(); + ~ExamplePlugin(); + + QString pluginName() const; + double versionNumber() const; + QString pixmapNameWidget() const; + QWidget* widget(QWidget *); + QString pixmapNameConfig() const; + TodayConfigWidget* configWidget(QWidget *); + QString appName() const; + bool excludeFromRefresh() const; + void refresh(); + void reinitialize(); + + private: + QGuardedPtr<ExamplePluginWidget> m_widget; +}; + +#endif |