EmailScheduler/MailCore.framework/Versions/A/Headers/MCMailProvidersManager.h

43 lines
955 B
C
Raw Normal View History

2014-09-13 17:13:32 -05:00
//
// MCMailProvidersManager.h
// mailcore2
//
// Created by Robert Widmann on 4/28/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef MAILCORE_MCMAILPROVIDERSMANAGER_H
#define MAILCORE_MCMAILPROVIDERSMANAGER_H
#include <MailCore/MCBaseTypes.h>
#ifdef __cplusplus
namespace mailcore {
class MailProvider;
class MailProvidersManager : public Object {
public:
static MailProvidersManager * sharedManager();
virtual MailProvider * providerForEmail(String * email);
virtual MailProvider * providerForMX(String * hostname);
virtual MailProvider * providerForIdentifier(String * identifier);
virtual void registerProvidersWithFilename(String * filename);
private:
MailProvidersManager();
void registerProviders(HashMap * providers);
HashMap * mProviders;
void init();
};
}
#endif
#endif