kmail Library API Documentation

kmacctmgr.h

00001 /* KMail Account Manager
00002  *
00003  * Author: Stefan Taferner <taferner@alpin.or.at>
00004  */
00005 #ifndef kmacctmgr_h
00006 #define kmacctmgr_h
00007 
00008 #include <qobject.h>
00009 #include "kmaccount.h"
00010 
00011 class QString;
00012 class QStringList;
00013 
00014 
00015 class KMAcctMgr: public QObject
00016 {
00017   Q_OBJECT
00018   friend class KMAccount;
00019 
00020 public:
00023   KMAcctMgr();
00024   virtual ~KMAcctMgr();
00025 
00027   virtual void readConfig(void);
00028 
00030   virtual void writeConfig(bool withSync=TRUE);
00031 
00034   virtual KMAccount* create(const QString& type, const QString& name);
00035 
00037   virtual void add(KMAccount *account);
00038 
00041   virtual KMAccount* find(const QString& name);
00042 
00045   virtual bool remove(KMAccount*);
00046 
00048   virtual KMAccount* first(void);
00049 
00051   virtual KMAccount* next(void);
00052 
00054   virtual void checkMail(bool _interactive = true);
00055 
00057   void invalidateIMAPFolders();
00058 
00059   QStringList getAccounts(bool noImap = false);
00060 
00061 public slots:
00062   virtual void singleCheckMail(KMAccount *, bool _interactive = true);
00063   virtual void singleInvalidateIMAPFolders(KMAccount *);
00064 
00065   virtual void intCheckMail(int, bool _interactive = true);
00066   virtual void processNextCheck(bool _newMail);
00067 
00070   virtual void addToTotalNewMailCount(int numNewMails);
00071 
00072 signals:
00074   void checkedMail(bool, bool);
00076   void accountRemoved( KMAccount* account );
00077 
00078 private:
00079   KMAcctList   mAcctList;
00080   KMAcctList   mAcctChecking;
00081   KMAcctList   mAcctTodo;
00082   bool newMailArrived;
00083   bool interactive;
00084   int  mTotalNewMailsArrived;
00085 };
00086 
00087 #endif /*kmacctmgr_h*/
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:19 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003