kmail

globalsettings.h
1/*
2 This file is part of KMail.
3
4 Copyright (c) 2005 David Faure <faure@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2,
8 as published by the Free Software Foundation.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of TQt, and distribute the resulting executable,
21 without including the source code for TQt in the source distribution.
22*/
23
24#ifndef KMAIL_GLOBALSETTINGS_H
25#define KMAIL_GLOBALSETTINGS_H
26
27#include "globalsettings_base.h"
28
29class TQTimer;
30
31class GlobalSettings : public TQObject, public GlobalSettingsBase
32{
33 TQ_OBJECT
34
35public:
36 virtual ~GlobalSettings();
37
38 static GlobalSettings *self();
39
45 void requestSync();
46
47private slots:
48 void slotSyncNow();
49
50private:
51 GlobalSettings();
52 static GlobalSettings *mSelf;
53
54 TQTimer *mConfigSyncTimer;
55
56};
57
58const int defaultmailcheckintervalmin=5; // check for mail every X minutes
59
60#endif /* KMAIL_GLOBALSETTINGS_H */