-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTSCalendarStore.h
More file actions
33 lines (25 loc) · 795 Bytes
/
Copy pathTSCalendarStore.h
File metadata and controls
33 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// TSCalendarStore.h
// TimeStamp-Homepage
//
// Created by Awais Hussain on 7/31/13.
// Copyright (c) 2013 Awais Hussain. All rights reserved.
//
#import <Foundation/Foundation.h>
@class EKEventStore;
@class GCCalendarEvent;
@interface TSCalendarStore : NSObject
// Event store
@property (nonatomic, strong) EKEventStore *store;
@property (nonatomic, strong) NSSet *activeCalendars;
@property (nonatomic) BOOL eventsShouldReload;
// Singleton methods
+ (TSCalendarStore *)instance;
- (void)requestCalAccess;
// data methods
- (NSArray *)allCalendarEventsForDate:(NSDate *)date;
// CRUD methods
- (GCCalendarEvent *)createNewEvent:(GCCalendarEvent *)gcEvent;
- (void)updateGCCalendarEvent:(GCCalendarEvent *)gcEvent;
- (void)removeGCCalendarEvent:(GCCalendarEvent *)gcEvent;
@end