My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes  
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* Copyright (c) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

//
// CalendarSampleWindowController.h
//

//
// IMPORTANT:
//
// The XML-based API for Google Calendar has been replaced with a more efficient
// and easier-to-use JSON API. The JSON API is documented at
//
// http://code.google.com/apis/calendar/
//
// See the new Objective-C client library and sample code at
// http://code.google.com/p/google-api-objectivec-client/
//
// This sample application and library support for the XML-based Calendar
// API will eventually be removed.
//

#import <Cocoa/Cocoa.h>

#import "GData/GData.h"

@interface CalendarSampleWindowController : NSWindowController {
@private
IBOutlet NSTextField *mSignedInField;
IBOutlet NSButton *mSignedInButton;

IBOutlet NSTableView *mCalendarTable;
IBOutlet NSProgressIndicator *mCalendarProgressIndicator;
IBOutlet NSTextView *mCalendarResultTextField;
IBOutlet NSButton *mCalendarCancelButton;

IBOutlet NSSegmentedControl *mCalendarSegmentedControl;
IBOutlet NSButton *mAddCalendarButton;
IBOutlet NSButton *mRenameCalendarButton;
IBOutlet NSButton *mDeleteCalendarButton;
IBOutlet NSTextField *mCalendarNameField;

IBOutlet NSTableView *mEventTable;
IBOutlet NSProgressIndicator *mEventProgressIndicator;
IBOutlet NSTextView *mEventResultTextField;
IBOutlet NSButton *mEventCancelButton;

IBOutlet NSButton *mAddEventButton;
IBOutlet NSButton *mDeleteEventButton;
IBOutlet NSButton *mEditEventButton;
IBOutlet NSButton *mQueryTodayEventButton;
IBOutlet NSButton *mQueryFreeBusyButton;

IBOutlet NSSegmentedControl *mEntrySegmentedControl;

IBOutlet NSButton *mClientIDButton;
IBOutlet NSTextField *mClientIDRequiredTextField;
IBOutlet NSWindow *mClientIDSheet;
IBOutlet NSTextField *mClientIDField;
IBOutlet NSTextField *mClientSecretField;

GDataFeedCalendar *mCalendarFeed;
GDataServiceTicket *mCalendarFetchTicket;
NSError *mCalendarFetchError;

GDataFeedCalendarEvent *mEventFeed;
GDataServiceTicket *mEventFetchTicket;
NSError *mEventFetchError;

GDataFeedACL *mACLFeed;
GDataServiceTicket *mACLFetchTicket;
NSError *mACLFetchError;

GDataFeedCalendarSettings *mSettingsFeed;
GDataServiceTicket *mSettingsFetchTicket;
NSError *mSettingsFetchError;
}

+ (CalendarSampleWindowController *)sharedCalendarSampleWindowController;

- (IBAction)signInClicked:(id)sender;

- (IBAction)getCalendarClicked:(id)sender;

- (IBAction)cancelCalendarFetchClicked:(id)sender;
- (IBAction)cancelEventFetchClicked:(id)sender;

- (IBAction)calendarSegmentClicked:(id)sender;
- (IBAction)addCalendarClicked:(id)sender;
- (IBAction)renameCalendarClicked:(id)sender;
- (IBAction)deleteCalendarClicked:(id)sender;

- (IBAction)addEventClicked:(id)sender;
- (IBAction)editEventClicked:(id)sender;
- (IBAction)deleteEventClicked:(id)sender;
- (IBAction)queryTodayClicked:(id)sender;
- (IBAction)queryFreeBusyClicked:(id)sender;

- (IBAction)entrySegmentClicked:(id)sender;

- (IBAction)loggingCheckboxClicked:(id)sender;

// Client ID sheet
- (IBAction)clientIDClicked:(id)sender;
- (IBAction)clientIDDoneClicked:(id)sender;
- (IBAction)APIConsoleClicked:(id)sender;

@end

Change log

r717 by gregrobbins on Feb 22, 2012   Diff
Add some comments to deprecated sample
apps
Go to: 
Project members, sign in to write a code review

Older revisions

r650 by gregrobbins on Apr 26, 2011   Diff
Update example apps
r646 by gregrobbins on Apr 6, 2011   Diff
Fix sample apps: calendar maps button,
docs nil thumbnail image, xib warnings
on checkbox scaling
r627 by gregrobbins on Feb 22, 2011   Diff
Added calendar max-attendees query
parameter and free/busy feeds
All revisions of this file

File info

Size: 3699 bytes, 120 lines
Powered by Google Project Hosting