summaryrefslogtreecommitdiffstats
path: root/kmail/kmacctmaildir.h
blob: 1c655861a887f6d8358d4967aea62ea3654d39ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* KMail account for maildir mail folders
 *
 */
#ifndef kmacctmaildir_h
#define kmacctmaildir_h

#include "kmaccount.h"
#include "kmglobal.h"

class KMAcctMaildir: public KMAccount
{
protected:
  friend class ::AccountManager;

  KMAcctMaildir(AccountManager* owner, const TQString& accountName, uint id);

public:
  virtual ~KMAcctMaildir();
  virtual void init(void);
  virtual void pseudoAssign( const KMAccount * a );

  /** Access to location of maildir mail file (usually something like
   "/home/joe/Maildir"). */
  const TQString& location(void) const { return mLocation; }
  virtual void setLocation(const TQString&);

  virtual TQString type(void) const;
  virtual void processNewMail(bool);
  virtual void readConfig(KConfig&);
  virtual void writeConfig(KConfig&);

protected:
  TQString mLocation;
  bool hasNewMail;
};

#endif /*kmacctmaildir_h*/