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

datebooksettings.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) Opie Team <opie-devel@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 DATEBOOKSETTINGS_H
00032 #define DATEBOOKSETTINGS_H
00033 #include "datebooksettingsbase.h"
00034 #include <qpe/categoryselect.h>
00035 #include <qvaluelist.h>
00036 
00037 namespace Opie {
00038 namespace Core {
00039     class OPluginManager;
00040     class OGenericPluginLoader;
00041     class OPluginLoader;
00042 }
00043 namespace Ui {
00044     class OPluginConfigWidget;
00045 }
00046 namespace Datebook {
00047     class HolidayPluginConfigWidget;
00048 }
00049 }
00050 
00051 class DateBookSettings : public DateBookSettingsBase
00052 {
00053     Q_OBJECT
00054 public:
00055     DateBookSettings( bool whichClock, QWidget *parent = 0,
00056                       const char *name = 0, bool modal = TRUE, WFlags = 0 );
00057     ~DateBookSettings();
00058     void setStartTime( int newStartViewTime );
00059     int startTime() const;
00060     void setAlarmPreset( bool bAlarm, int presetTime );
00061     bool alarmPreset() const;
00062     int presetTime() const;
00063     void setAlarmType( int alarmType );
00064     int alarmType() const;
00065 
00066     void setJumpToCurTime( bool bJump );
00067     bool jumpToCurTime() const;
00068     void setRowStyle( int style );
00069     int rowStyle() const;
00070 
00071     void setPluginList(Opie::Core::OPluginManager*,Opie::Core::OPluginLoader*);
00072     void savePlugins();
00073 private slots:
00074     void slot12Hour( int );
00075     void slotChangeClock( bool );
00076 protected slots:
00077     virtual void pluginItemClicked(QListViewItem *);
00078 
00079 protected:
00080     void init();
00081     bool ampm;
00082     int oldtime;
00083     Opie::Core::OPluginManager*m_manager;
00084     Opie::Core::OPluginLoader*m_loader;
00085     QValueList<Opie::Datebook::HolidayPluginConfigWidget*> m_cfgWidgets;
00086 };
00087 #endif

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