14 NSMutableArray *localCalendarListeners;
20 self.
service = [[GTLRCalendarService alloc] init];
22 localCalendarListeners = [[NSMutableArray alloc] initWithCapacity:10];
28 - (void) addCalendarListener: (
id<Z5GoogleCalendarListener>)ear
31 [localCalendarListeners addObject:ear];
33 - (void) removeCalendarListener: (
id<Z5GoogleCalendarListener>)ear
35 [localCalendarListeners removeObject:ear];
37 - (void) connectToLogin
43 #pragma mark - Z5GoogleLoginListener 46 NSLog(
@"GoogleCalendarController.signedIn: %@", user.
profile.
name);
51 self.service.authorizer = nil;
void addLoginListener:(id< Z5GoogleLoginListener > ear)
instancetype sharedInstance()
id< GTMFetcherAuthorizationProtocol > fetcherAuthorizer()
GTLRCalendarService * service
Singleton interface to both core and remote data sources.
GIDAuthentication * authentication