kmail

globalsettings.h

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 TQt, and distribute the resulting executable,
00021     without including the source code for TQt 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 TQTimer;
00030 
00031 class GlobalSettings : public TQObject, public GlobalSettingsBase
00032 {
00033   Q_OBJECT
00034   TQ_OBJECT
00035 public:
00036   virtual ~GlobalSettings();
00037 
00038   static GlobalSettings *self();
00039 
00045   void requestSync();
00046 
00047 private slots:
00048   void slotSyncNow();
00049 
00050 private:
00051   GlobalSettings();
00052   static GlobalSettings *mSelf;
00053 
00054   TQTimer *mConfigSyncTimer;
00055 
00056 };
00057 
00058 const int defaultmailcheckintervalmin=5; // check for mail every X minutes 
00059 
00060 #endif /* KMAIL_GLOBALSETTINGS_H */