/* 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 #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