kmail
globalsettings.h
Go to the documentation of this file.00001 /* 00002 This file is part of KMail. 00003 00004 Copyright (c) 2005 David Faure <faure@kde.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2, 00008 as published by the Free Software Foundation. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 00022 */ 00023 00024 #ifndef KMAIL_GLOBALSETTINGS_H 00025 #define KMAIL_GLOBALSETTINGS_H 00026 00027 #include "globalsettings_base.h" 00028 00029 class QTimer; 00030 00031 class GlobalSettings : public QObject, public GlobalSettingsBase 00032 { 00033 Q_OBJECT 00034 public: 00035 virtual ~GlobalSettings(); 00036 00037 static GlobalSettings *self(); 00038 00044 void requestSync(); 00045 00046 private slots: 00047 void slotSyncNow(); 00048 00049 private: 00050 GlobalSettings(); 00051 static GlobalSettings *mSelf; 00052 00053 QTimer *mConfigSyncTimer; 00054 00055 }; 00056 00057 const int defaultmailcheckintervalmin=5; // check for mail every X minutes 00058 00059 #endif /* KMAIL_GLOBALSETTINGS_H */