00001 /* 00002 This file is part of the OPIE Project 00003 =. 00004 .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> 00005 .>+-= 00006 _;:, .> :=|. This file is free software; you can 00007 .> <`_, > . <= redistribute it and/or modify it under 00008 :`=1 )Y*s>-.-- : the terms of the GNU General Public 00009 .="- .-=="i, .._ License as published by the Free Software 00010 - . .-<_> .<> Foundation; either version 2 of the License, 00011 ._= =} : or (at your option) any later version. 00012 .%`+i> _;_. 00013 .i_,=:_. -<s. This file is distributed in the hope that 00014 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00015 : .. .:, . . . without even the implied warranty of 00016 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00017 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General 00018 ..}^=.= = ; Public License for more details. 00019 ++= -. .` .: 00020 : = ...= . :.=- You should have received a copy of the GNU 00021 -. .:....=;==+<; General Public License along with this file; 00022 -_. . . )=. = see the file COPYING. If not, write to the 00023 -- :-=` Free Software Foundation, Inc., 00024 59 Temple Place - Suite 330, 00025 Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 #include "weatherplugin.h" 00030 #include "weatherpluginwidget.h" 00031 #include "weatherconfig.h" 00032 00033 WeatherPlugin::WeatherPlugin() { 00034 } 00035 00036 WeatherPlugin::~WeatherPlugin() { 00037 } 00038 00039 QString WeatherPlugin::pluginName() const 00040 { 00041 return QObject::tr( "Weather plugin" ); 00042 } 00043 00044 double WeatherPlugin::versionNumber() const 00045 { 00046 return 0.1; 00047 } 00048 00049 QString WeatherPlugin::pixmapNameWidget() const 00050 { 00051 return "todayweatherplugin/weather"; 00052 } 00053 00054 QWidget* WeatherPlugin::widget( QWidget * wid ) 00055 { 00056 return new WeatherPluginWidget( wid, "Weather" ); 00057 } 00058 00059 QString WeatherPlugin::pixmapNameConfig() const 00060 { 00061 return "todayweatherplugin/weather"; 00062 } 00063 00064 TodayConfigWidget* WeatherPlugin::configWidget( QWidget* wid ) 00065 { 00066 return new WeatherPluginConfig( wid, "Weather Config" ); 00067 } 00068 00069 QString WeatherPlugin::appName() const 00070 { 00071 return "Weather"; 00072 } 00073 00074 bool WeatherPlugin::excludeFromRefresh() const { 00075 00076 return true; 00077 } 00078
1.4.2