00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (C) Maximilian Reiss <harlekin@handhelds.org> 00005 =. 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 */ 00030 00031 #ifndef TODAY_H 00032 #define TODAY_H 00033 00034 00035 #include "todayconfig.h" 00036 #include "todaybase.h" 00037 00038 #include <opie2/todayplugininterface.h> 00039 #include <opie2/oclickablelabel.h> 00040 #include <opie2/opluginloader.h> 00041 00042 #include <qpe/qlibrary.h> 00043 00044 #include <qscrollview.h> 00045 #include <qvbox.h> 00046 00047 00048 class QVBoxLayout; 00049 00050 namespace Opie { 00051 namespace Core { 00052 class OPluginManager; 00053 class OPluginLoader; 00054 } 00055 } 00056 00057 class Today : public TodayBase { 00058 Q_OBJECT 00059 00060 public: 00061 Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 00062 ~Today(); 00063 static QString appName() { 00064 return QString::fromLatin1("today"); 00065 } 00066 00067 private slots: 00068 void startConfig(); 00069 void startApplication(); 00070 void editCard(); 00071 void refresh(); 00072 00073 private: 00074 void setOwnerField(); 00075 void setOwnerField(QString &string); 00076 00077 void setRefreshTimer( int ); 00078 00079 void clearPluginWidgets(); 00080 void loadPluginWidgets(); 00081 void loadShellContent(); 00082 00083 00084 private slots: 00085 void channelReceived(const QCString &msg, const QByteArray & data); 00086 void loadPlugins(); 00087 00088 private: 00089 TodayConfig *conf; 00090 QStringList m_excludeApplets; 00091 QStringList m_allApplets; 00092 00093 QScrollView *m_sv; 00094 QWidget* m_big_box; 00095 QVBoxLayout *m_bblayout; 00096 QLabel *m_informationLabel; 00097 00098 Opie::Core::OPluginLoader *m_pluginLoader; 00099 Opie::Core::OPluginManager *m_manager; 00100 00101 QTimer *m_refreshTimer; 00102 00103 bool m_refreshTimerEnabled; 00104 int m_newStart; 00105 int m_iconSize; 00106 int m_maxCharClip; 00107 int m_hideBanner; 00108 }; 00109 #endif
1.4.2