PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Examples/DocsSample/DocsSampleWindowController.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 118 lines | 70 code | 30 blank | 18 comment | 0 complexity | 5a4efefe5115c4c8f8a2f99c516318fd 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//  DocsSampleWindowController.h
 18//
 19
 20#import <Cocoa/Cocoa.h>
 21
 22#import "GData/GDataDocs.h"
 23#import "GData/GDataSpreadsheet.h"
 24
 25@interface DocsSampleWindowController : NSWindowController {
 26 @private
 27  IBOutlet NSTextField *mSignedInField;
 28  IBOutlet NSButton *mSignedInButton;
 29  
 30  IBOutlet NSTableView *mDocListTable;
 31  IBOutlet NSProgressIndicator *mDocListProgressIndicator;
 32  IBOutlet NSTextView *mDocListResultTextField;
 33  IBOutlet NSButton *mDocListCancelButton;
 34  IBOutlet NSImageView *mDocListImageView;
 35
 36  IBOutlet NSTableView *mRevisionsTable;
 37  IBOutlet NSProgressIndicator *mRevisionsProgressIndicator;
 38  IBOutlet NSTextView *mRevisionsResultTextField;
 39  IBOutlet NSButton *mRevisionsCancelButton;
 40
 41  IBOutlet NSButton *mViewSelectedDocButton;
 42  IBOutlet NSButton *mDeleteSelectedDocButton;
 43  IBOutlet NSButton *mDownloadSelectedDocButton;
 44  IBOutlet NSButton *mDuplicateSelectedDocButton;
 45  IBOutlet NSButton *mCreateFolderButton;
 46  IBOutlet NSButton *mShowChangesButton;
 47
 48  IBOutlet NSButton *mDownloadSelectedRevisionButton;
 49
 50  IBOutlet NSPopUpButton *mFolderMembershipPopup;
 51
 52  IBOutlet NSButton *mUploadFileButton;
 53  IBOutlet NSButton *mStopUploadButton;
 54  IBOutlet NSButton *mPauseUploadButton;
 55  IBOutlet NSProgressIndicator *mUploadProgressIndicator;
 56  IBOutlet NSPopUpButton *mUploadPopup;
 57
 58  IBOutlet NSTextField *mUploadingTextField;
 59
 60  IBOutlet NSButton *mPublishCheckbox;
 61  IBOutlet NSButton *mAutoRepublishCheckbox;
 62  IBOutlet NSButton *mPublishOutsideDomainCheckbox;
 63  IBOutlet NSButton *mUpdatePublishingButton;
 64
 65  IBOutlet NSButton *mClientIDButton;
 66  IBOutlet NSTextField *mClientIDRequiredTextField;
 67  IBOutlet NSWindow *mClientIDSheet;
 68  IBOutlet NSTextField *mClientIDField;
 69  IBOutlet NSTextField *mClientSecretField;
 70
 71  GDataFeedDocList *mDocListFeed;
 72  GDataServiceTicket *mDocListFetchTicket;
 73  NSError *mDocListFetchError;
 74
 75  GDataFeedDocRevision *mRevisionFeed;
 76  GDataServiceTicket *mRevisionFetchTicket;
 77  NSError *mRevisionFetchError;
 78
 79  GDataEntryDocListMetadata *mMetadataEntry;
 80  
 81  GDataServiceTicket *mUploadTicket;
 82}
 83
 84+ (DocsSampleWindowController *)sharedDocsSampleWindowController;
 85
 86- (IBAction)signInClicked:(id)sender;
 87
 88- (IBAction)getDocListClicked:(id)sender;
 89- (IBAction)cancelDocListFetchClicked:(id)sender;
 90- (IBAction)cancelRevisionsFetchClicked:(id)sender;
 91
 92- (IBAction)viewSelectedDocClicked:(id)sender;
 93- (IBAction)downloadSelectedDocClicked:(id)sender;
 94- (IBAction)duplicateSelectedDocClicked:(id)sender;
 95
 96- (IBAction)downloadSelectedRevisionClicked:(id)sender;
 97
 98- (IBAction)createFolderClicked:(id)sender;
 99
100- (IBAction)showChangesClicked:(id)sender;
101
102- (IBAction)deleteSelectedDocClicked:(id)sender;
103
104- (IBAction)uploadFileClicked:(id)sender;
105- (IBAction)stopUploadClicked:(id)sender;
106- (IBAction)pauseUploadClicked:(id)sender;
107
108- (IBAction)publishCheckboxClicked:(id)sender;
109- (IBAction)updatePublishingClicked:(id)sender;
110
111- (IBAction)loggingCheckboxClicked:(id)sender;
112
113// Client ID sheet
114- (IBAction)clientIDClicked:(id)sender;
115- (IBAction)clientIDDoneClicked:(id)sender;
116- (IBAction)APIConsoleClicked:(id)sender;
117
118@end