2
#include "%{APPNAMELC}.h"
4
%{APPNAME}::%{APPNAME}() {
8
%{APPNAME}::~%{APPNAME}() {
9
delete (%{APPNAME}Widget*)m_widget;
12
QString %{APPNAME}::pluginName() const {
13
return QObject::tr( "%{APPNAME}" );
16
double %{APPNAME}::versionNumber() const {
20
// this sets the image that will be shown on the left side of the plugin
21
QString %{APPNAME}::pixmapNameWidget() const {
22
return QString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
25
QWidget* %{APPNAME}::widget( QWidget * wid ) {
27
m_widget = new %{APPNAME}Widget( wid, "%{APPNAME}" );
33
// that would be the icon of the config widget in todays config view
34
QString %{APPNAME}::pixmapNameConfig() const {
38
// No config widget yet, look at the datebook plugin for an example of that
39
TodayConfigWidget* %{APPNAME}::configWidget( QWidget* /*parent*/ ) {
43
// add the binary name of the app to launch here
44
QString %{APPNAME}::appName() const {
48
// if the plugin should be excluded form the refresh cycles that can be set in the today app
49
bool %{APPNAME}::excludeFromRefresh() const {
53
void %{APPNAME}::refresh() {
59
void %{APPNAME}::reinitialize() {