00001 /* 00002 * addresspluginwidget.h 00003 * 00004 * copyright : (c) 2003 by Stefan Eilers 00005 * email : eilers.stefan@epost.de 00006 * 00007 * This implementation was derived from the todolist plugin implementation 00008 * 00009 */ 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 #ifndef ADDRESSBOOK_PLUGIN_WIDGET_H 00020 #define ADDRESSBOOK_PLUGIN_WIDGET_H 00021 00022 #include <opie2/ocontactaccess.h> 00023 #include <opie2/oclickablelabel.h> 00024 00025 #include <qstring.h> 00026 #include <qwidget.h> 00027 #include <qlayout.h> 00028 00029 00030 class AddressBookPluginWidget : public QWidget { 00031 Q_OBJECT 00032 00033 public: 00034 AddressBookPluginWidget( QWidget *parent, const char *name ); 00035 ~AddressBookPluginWidget(); 00036 00037 public slots: 00038 void reinitialize(); 00039 void refresh( const Opie::OPimContactAccess* db ); 00040 00041 protected slots: 00042 void startAddressBook(); 00043 00044 private: 00045 Opie::Ui::OClickableLabel* addressLabel; 00046 QVBoxLayout* layoutTodo; 00047 Opie::OPimContactAccess * m_contactdb; 00048 00049 Opie::OPimContactAccess::List m_list; 00050 Opie::OPimContactAccess::List::Iterator m_it; 00051 00052 void readConfig(); 00053 void getAddress(); 00054 int m_maxLinesTask; 00055 int m_maxCharClip; 00056 int m_daysLookAhead; 00057 int m_urgentDays; 00058 QString m_entryColor; 00059 QString m_headlineColor; 00060 QString m_urgentColor; 00061 bool m_showBirthdays; 00062 bool m_showAnniversaries; 00063 }; 00064 00065 #endif
1.4.2