From 8a796b594669c54a34b2e416ff0d931aaa3cc76d Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 03 Feb 2004 22:25:41 +0000 Subject: today example plugin --- (limited to 'examples/todayplugin/exampleplugin.h') 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 +#include + +#include +#include + +#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 m_widget; +}; + +#endif -- cgit v0.9.0.2