BBGMultiAccountManager
|
00001 // 00002 // BBGMultiAccountManager.h 00003 // GMultiAccountManager 00004 // 00005 // Created by Giuseppe Basile on 05/05/12. 00006 // Copyright (c) 2012 Archy. All rights reserved. 00007 // 00008 00009 #import <Foundation/Foundation.h> 00010 00011 @protocol BBAccount; 00012 00013 @interface BBGMultiAccountManager : NSObject 00014 00015 00025 - (void)registerWithClientId:(NSString *)clientID 00026 clientSecret:(NSString *)clientSecret 00027 scope:(NSString *)scope 00028 ; 00029 00034 - (void)addAccount; 00035 00041 - (void)addAccountWithCompletionBlock: (void (^)(id<BBAccount> account, NSError *error))block; 00042 00043 00048 - (void)accountsWithCompletionBlock: (void (^)(NSArray *accounts, NSError *error))block; 00049 00050 00055 - (void)removeAccount:(id<BBAccount>)account; 00056 00062 - (void)removeAccount:(id<BBAccount>)account withCompletionBlock: (void (^)(BOOL success, NSError *error))block; 00063 00064 00070 - (void)setPrincipalAccount: (id<BBAccount>) account; 00071 00078 - (void)setDefaultAccount: (id<BBAccount>) account withCompletionBlock: (void (^)(BOOL success, NSError *error))block 00079 ; 00080 00081 @end