Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

todoplugin.cpp

Go to the documentation of this file.
00001 /*
00002  * todoplugin.cpp
00003  *
00004  * copyright   : (c) 2002,2003, 2004  by Maximilian Reiß
00005  * email       : harlekin@handhelds.org
00006  *
00007  */
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #include "todoplugin.h"
00018 #include "todopluginconfig.h"
00019 
00020 TodolistPlugin::TodolistPlugin() 
00021     : m_widget(0l)
00022 {
00023 }
00024 
00025 TodolistPlugin::~TodolistPlugin() {
00026 }
00027 
00028 QString TodolistPlugin::pluginName() const {
00029     return QObject::tr( "Todolist plugin" );
00030 }
00031 
00032 double TodolistPlugin::versionNumber() const {
00033     return 0.9;
00034 }
00035 
00036 QString TodolistPlugin::pixmapNameWidget() const {
00037     return "todo/TodoList";
00038 }
00039 
00040 QWidget* TodolistPlugin::widget( QWidget *wid ) {
00041     m_widget = new TodolistPluginWidget( wid, "Todolist" );
00042     return m_widget;
00043 }
00044 
00045 QString TodolistPlugin::pixmapNameConfig() const {
00046     return "todo/TodoList";
00047 }
00048 
00049 TodayConfigWidget* TodolistPlugin::configWidget( QWidget* wid ) {
00050     return new TodolistPluginConfig( wid , "Todolist Config" );
00051 }
00052 
00053 QString TodolistPlugin::appName() const {
00054     return  "todolist";
00055 }
00056 
00057 
00058 bool TodolistPlugin::excludeFromRefresh() const {
00059     return false;
00060 }
00061 
00062 void TodolistPlugin::refresh()  {
00063     if ( m_widget )  {
00064         m_widget->refresh();
00065     }
00066 }
00067 
00068 void TodolistPlugin::reinitialize()  {
00069     if ( m_widget )  {
00070         m_widget->reinitialize();
00071     }
00072 }

Generated on Sat Nov 5 16:15:55 2005 for OPIE by  doxygen 1.4.2