PageRenderTime 21ms CodeModel.GetById 9ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Examples/CalendarSample/CalendarSampleWindowController.h

http://macfuse.googlecode.com/
C++ Header | 120 lines | 63 code | 25 blank | 32 comment | 0 complexity | d1035bdc668b93a2f6426e0cd9ef5305 MD5 | raw file
  1/* Copyright (c) 2007 Google Inc.
  2*
  3* Licensed under the Apache License, Version 2.0 (the "License");
  4* you may not use this file except in compliance with the License.
  5* You may obtain a copy of the License at
  6*
  7*     http://www.apache.org/licenses/LICENSE-2.0
  8*
  9* Unless required by applicable law or agreed to in writing, software
 10* distributed under the License is distributed on an "AS IS" BASIS,
 11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12* See the License for the specific language governing permissions and
 13* limitations under the License.
 14*/
 15
 16//
 17//  CalendarSampleWindowController.h
 18//
 19
 20//
 21// IMPORTANT:
 22//
 23// The XML-based API for Google Calendar has been replaced with a more efficient
 24// and easier-to-use JSON API.  The JSON API is documented at
 25//
 26//   https://developers.google.com/google-apps/calendar/
 27//
 28// See the new Objective-C client library and sample code at
 29//   http://code.google.com/p/google-api-objectivec-client/
 30//
 31// This sample application and library support for the XML-based Calendar
 32// API will eventually be removed.
 33//
 34
 35#import <Cocoa/Cocoa.h>
 36
 37#import "GData/GData.h"
 38
 39@interface CalendarSampleWindowController : NSWindowController {
 40 @private
 41  IBOutlet NSTextField *mSignedInField;
 42  IBOutlet NSButton *mSignedInButton;
 43
 44  IBOutlet NSTableView *mCalendarTable;
 45  IBOutlet NSProgressIndicator *mCalendarProgressIndicator;
 46  IBOutlet NSTextView *mCalendarResultTextField;
 47  IBOutlet NSButton *mCalendarCancelButton;
 48
 49  IBOutlet NSSegmentedControl *mCalendarSegmentedControl;
 50  IBOutlet NSButton *mAddCalendarButton;
 51  IBOutlet NSButton *mRenameCalendarButton;
 52  IBOutlet NSButton *mDeleteCalendarButton;
 53  IBOutlet NSTextField *mCalendarNameField;
 54
 55  IBOutlet NSTableView *mEventTable;
 56  IBOutlet NSProgressIndicator *mEventProgressIndicator;
 57  IBOutlet NSTextView *mEventResultTextField;
 58  IBOutlet NSButton *mEventCancelButton;
 59
 60  IBOutlet NSButton *mAddEventButton;
 61  IBOutlet NSButton *mDeleteEventButton;
 62  IBOutlet NSButton *mEditEventButton;
 63  IBOutlet NSButton *mQueryTodayEventButton;
 64  IBOutlet NSButton *mQueryFreeBusyButton;
 65
 66  IBOutlet NSSegmentedControl *mEntrySegmentedControl;
 67
 68  IBOutlet NSButton *mClientIDButton;
 69  IBOutlet NSTextField *mClientIDRequiredTextField;
 70  IBOutlet NSWindow *mClientIDSheet;
 71  IBOutlet NSTextField *mClientIDField;
 72  IBOutlet NSTextField *mClientSecretField;
 73
 74  GDataFeedCalendar *mCalendarFeed;
 75  GDataServiceTicket *mCalendarFetchTicket;
 76  NSError *mCalendarFetchError;
 77
 78  GDataFeedCalendarEvent *mEventFeed;
 79  GDataServiceTicket *mEventFetchTicket;
 80  NSError *mEventFetchError;
 81
 82  GDataFeedACL *mACLFeed;
 83  GDataServiceTicket *mACLFetchTicket;
 84  NSError *mACLFetchError;
 85
 86  GDataFeedCalendarSettings *mSettingsFeed;
 87  GDataServiceTicket *mSettingsFetchTicket;
 88  NSError *mSettingsFetchError;
 89}
 90
 91+ (CalendarSampleWindowController *)sharedCalendarSampleWindowController;
 92
 93- (IBAction)signInClicked:(id)sender;
 94
 95- (IBAction)getCalendarClicked:(id)sender;
 96
 97- (IBAction)cancelCalendarFetchClicked:(id)sender;
 98- (IBAction)cancelEventFetchClicked:(id)sender;
 99
100- (IBAction)calendarSegmentClicked:(id)sender;
101- (IBAction)addCalendarClicked:(id)sender;
102- (IBAction)renameCalendarClicked:(id)sender;
103- (IBAction)deleteCalendarClicked:(id)sender;
104
105- (IBAction)addEventClicked:(id)sender;
106- (IBAction)editEventClicked:(id)sender;
107- (IBAction)deleteEventClicked:(id)sender;
108- (IBAction)queryTodayClicked:(id)sender;
109- (IBAction)queryFreeBusyClicked:(id)sender;
110
111- (IBAction)entrySegmentClicked:(id)sender;
112
113- (IBAction)loggingCheckboxClicked:(id)sender;
114
115// Client ID sheet
116- (IBAction)clientIDClicked:(id)sender;
117- (IBAction)clientIDDoneClicked:(id)sender;
118- (IBAction)APIConsoleClicked:(id)sender;
119
120@end