libkcal

resourcecachedconfig.h
1 /*
2  This file is part of libkcal.
3 
4  Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef KCAL_RESOURCECACHEDCONFIG_H
22 #define KCAL_RESOURCECACHEDCONFIG_H
23 
24 #include <tqwidget.h>
25 #include <tdemacros.h>
26 
27 class TQButtonGroup;
28 class TQSpinBox;
29 
30 namespace KCal {
31 
32 class ResourceCached;
33 
39 class TDE_EXPORT ResourceCachedReloadConfig : public TQWidget
40 {
41  TQ_OBJECT
42 
43  public:
44  ResourceCachedReloadConfig( TQWidget *parent = 0, const char *name = 0 );
45 
46  public slots:
47  void loadSettings( ResourceCached *resource );
48  void saveSettings( ResourceCached *resource );
49 
50  protected slots:
51  void slotIntervalStateChanged( int );
52 
53  private:
54  TQButtonGroup *mGroup;
55  TQSpinBox *mIntervalSpin;
56 
57  class Private;
58  Private *d;
59 };
60 
66 class TDE_EXPORT ResourceCachedSaveConfig : public TQWidget
67 {
68  TQ_OBJECT
69 
70  public:
71  ResourceCachedSaveConfig( TQWidget *parent = 0, const char *name = 0 );
72 
73  public slots:
74  void loadSettings( ResourceCached *resource );
75  void saveSettings( ResourceCached *resource );
76 
77  protected slots:
78  void slotIntervalStateChanged( int );
79 
80  private:
81  TQButtonGroup *mGroup;
82  TQSpinBox *mIntervalSpin;
83 
84  class Private;
85  Private *d;
86 };
87 
88 }
89 
90 #endif
Configuration widget for reload policy.
Configuration widget for save policy.
This class provides a calendar resource using a local CalendarLocal object to cache the calendar data...
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38