aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/provider/MCOMailProvidersManager.h
diff options
context:
space:
mode:
authorGravatar Matt Ronge <mronge@mronge.com>2013-06-08 00:22:33 -0500
committerGravatar Matt Ronge <mronge@mronge.com>2013-06-08 00:22:33 -0500
commited8653070f9daa65d6ffbb8fd30435eed65b3844 (patch)
tree54be35aeae5863189363e7e6570ea767789ec109 /src/objc/provider/MCOMailProvidersManager.h
parentf7b339189104d8813395853c8ab9bb1d158cee11 (diff)
Documented the Obj-C API for providers
Diffstat (limited to 'src/objc/provider/MCOMailProvidersManager.h')
-rw-r--r--src/objc/provider/MCOMailProvidersManager.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/objc/provider/MCOMailProvidersManager.h b/src/objc/provider/MCOMailProvidersManager.h
index 78d10ff2..1c4ef60f 100644
--- a/src/objc/provider/MCOMailProvidersManager.h
+++ b/src/objc/provider/MCOMailProvidersManager.h
@@ -8,14 +8,38 @@
#import <Foundation/Foundation.h>
+/**
+ This class is used to detect an email provider and it's associated
+ metadata either by MX record or by the email addresss.
+
+ An app might want to use this during setup to limit the number of settings
+ a user has to input.
+*/
+
@class MCOMailProvider;
@interface MCOMailProvidersManager : NSObject
+/** The shared manager that is used for all lookups */
+ (MCOMailProvidersManager *) sharedManager;
+/**
+ Given an email address will try to determine the provider
+ @return The email provider info or nil if it can't be determined.
+*/
- (MCOMailProvider *) providerForEmail:(NSString *)email;
+
+/**
+ Given the DNS MX record will try to determine the provider
+ @return The email provider info or nil if it can't be determined.
+*/
- (MCOMailProvider *) providerForMX:(NSString *)hostname;
+
+/**
+ Will return information about a provider. Useful if you already know the
+ provider (like if it has been determined previously)
+ @return The email provider info or nil if none matches
+*/
- (MCOMailProvider *) providerForIdentifier:(NSString *)identifier;
@end