00001 /* 00002 * datebookpluginwidget.h 00003 * 00004 * copyright : (c) 2002,2003 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 #ifndef DATEBOOK_PLUGIN_WIDGET_H 00018 #define DATEBOOK_PLUGIN_WIDGET_H 00019 00020 #include "datebookevent.h" 00021 00022 #include <opie2/oclickablelabel.h> 00023 00024 #include <qpe/datebookdb.h> 00025 00026 #include <qlayout.h> 00027 #include <qguardedptr.h> 00028 #include <qlist.h> 00029 00030 00031 class DatebookPluginWidget : public QWidget { 00032 00033 Q_OBJECT 00034 00035 public: 00036 DatebookPluginWidget( QWidget *parent, const char *name ); 00037 ~DatebookPluginWidget(); 00038 void refresh(); 00039 void reinitialize(); 00040 00041 private: 00042 DateBookDB* db; 00043 QGuardedPtr<QVBoxLayout> m_layoutDates; 00044 QList<QWidget> m_eventsList; 00045 void readConfig(); 00046 void getDates(); 00047 00048 00049 // how many lines should be showed in the datebook section 00050 int m_max_lines_meet; 00051 // If location is to be showed too, 1 to activate it. 00052 bool m_show_location; 00053 // if notes should be shown 00054 bool m_show_notes; 00055 // should only later appointments be shown or all for the current day. 00056 bool m_onlyLater; 00057 int m_moreDays; 00058 // true if time of an appointment should be an extra line 00059 bool m_timeExtraLine; 00060 //max characters displayed in notes 00061 int m_maxCharClip; 00062 }; 00063 00064 #endif
1.4.2