aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/provider/MCMailProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/provider/MCMailProvider.h')
-rw-r--r--src/core/provider/MCMailProvider.h81
1 files changed, 41 insertions, 40 deletions
diff --git a/src/core/provider/MCMailProvider.h b/src/core/provider/MCMailProvider.h
index 81b816e9..c4eeec43 100644
--- a/src/core/provider/MCMailProvider.h
+++ b/src/core/provider/MCMailProvider.h
@@ -14,56 +14,57 @@
#ifdef __cplusplus
namespace mailcore {
+
class NetService;
-
+
class MailProvider : public Object {
-
public:
static MailProvider * providerWithInfo(HashMap * info);
- MailProvider();
- virtual ~MailProvider();
-
- virtual String * identifier();
-
- virtual Array * /* NetService */ imapServices();
- virtual Array * /* NetService */ smtpServices();
- virtual Array * /* NetService */ popServices();
-
- virtual bool matchEmail(String * email);
- virtual bool matchMX(String * hostname);
-
- virtual String * sentMailFolderPath();
- virtual String * starredFolderPath();
- virtual String * allMailFolderPath();
- virtual String * trashFolderPath();
- virtual String * draftsFolderPath();
- virtual String * spamFolderPath();
- virtual String * importantFolderPath();
-
+ MailProvider();
+ virtual ~MailProvider();
+
+ virtual String * identifier();
+
+ virtual Array * /* NetService */ imapServices();
+ virtual Array * /* NetService */ smtpServices();
+ virtual Array * /* NetService */ popServices();
+
+ virtual bool matchEmail(String * email);
+ virtual bool matchMX(String * hostname);
+
+ virtual String * sentMailFolderPath();
+ virtual String * starredFolderPath();
+ virtual String * allMailFolderPath();
+ virtual String * trashFolderPath();
+ virtual String * draftsFolderPath();
+ virtual String * spamFolderPath();
+ virtual String * importantFolderPath();
+
// Returns true if one of the folders above matches the given one.
- virtual bool isMainFolder(String * folderPath, String * prefix);
-
+ virtual bool isMainFolder(String * folderPath, String * prefix);
+
public: // subclass behavior
- MailProvider(MailProvider * other);
- virtual String * description();
- virtual Object * copy();
-
+ MailProvider(MailProvider * other);
+ virtual String * description();
+ virtual Object * copy();
+
public: // private
- virtual void setIdentifier(String * identifier);
- virtual void fillWithInfo(HashMap * info);
+ virtual void setIdentifier(String * identifier);
+ virtual void fillWithInfo(HashMap * info);
+
+ private:
+ String * mIdentifier;
+ Array * /* String */ mDomainMatch;
+ Array * /* NetService */ mImapServices;
+ Array * /* NetService */ mSmtpServices;
+ Array * /* NetService */ mPopServices;
+ HashMap * mMailboxPaths;
+ Set * mMxSet;
- private:
- String * mIdentifier;
- Array * /* String */ mDomainMatch;
- Array * /* NetService */ mImapServices;
- Array * /* NetService */ mSmtpServices;
- Array * /* NetService */ mPopServices;
- HashMap * mMailboxPaths;
- Set * mMxSet;
-
- void init();
+ void init();
};
+
};
#endif