PageRenderTime 52ms CodeModel.GetById 38ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Examples/YouTubeSample/YouTubeSampleWindowController.h

http://macfuse.googlecode.com/
C++ Header | 89 lines | 53 code | 18 blank | 18 comment | 0 complexity | 91e5ab975febae10478bbaf03fe28eee MD5 | raw file
 1/* Copyright (c) 2008 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//  YouTubeSampleWindowController.h
18//
19
20#import <Cocoa/Cocoa.h>
21
22#import "GData/GData.h"
23#import "GData/GDataFeedPhotoAlbum.h"
24#import "GData/GDataFeedPhoto.h"
25
26@interface YouTubeSampleWindowController : NSWindowController {
27  IBOutlet NSTextField *mSignedInField;
28  IBOutlet NSButton *mSignedInButton;
29
30  IBOutlet NSPopUpButton *mUserFeedPopup;
31  IBOutlet NSTextField *mEntryCountField;
32  
33  IBOutlet NSTableView *mEntriesTable;
34  IBOutlet NSProgressIndicator *mEntriesProgressIndicator;
35  IBOutlet NSTextView *mEntriesResultTextField;
36  IBOutlet NSButton *mEntriesCancelButton;
37  IBOutlet NSImageView *mEntryImageView;
38
39  IBOutlet NSButton *mChooseFileButton;
40  IBOutlet NSTextField *mFilePathField;
41 
42  IBOutlet NSTextField *mDeveloperKeyField;
43  IBOutlet NSTextField *mTitleField;
44  IBOutlet NSTextField *mDescriptionField;
45  IBOutlet NSTextField *mKeywordsField;
46  IBOutlet NSPopUpButton *mCategoryPopup;
47  IBOutlet NSButton *mPrivateCheckbox;
48  
49  IBOutlet NSButton *mUploadButton;
50  IBOutlet NSButton *mPauseUploadButton;
51  IBOutlet NSButton *mStopUploadButton;
52  IBOutlet NSButton *mRestartUploadButton;
53  IBOutlet NSProgressIndicator *mUploadProgressIndicator;
54
55  IBOutlet NSButton *mClientIDButton;
56  IBOutlet NSTextField *mClientIDRequiredTextField;
57  IBOutlet NSWindow *mClientIDSheet;
58  IBOutlet NSTextField *mClientIDField;
59  IBOutlet NSTextField *mClientSecretField;
60
61  GDataFeedYouTubeVideo *mEntriesFeed; // user feed of album entries
62  GDataServiceTicket *mEntriesFetchTicket;
63  NSError *mEntriesFetchError;
64  NSString *mEntryImageURLString;
65
66  GDataServiceTicket *mUploadTicket;
67  NSURL *mUploadLocationURL;
68}
69
70+ (YouTubeSampleWindowController *)sharedYouTubeSampleWindowController;
71
72- (IBAction)signInClicked:(id)sender;
73
74- (IBAction)getEntriesClicked:(id)sender;
75- (IBAction)cancelEntriesFetchClicked:(id)sender;
76
77- (IBAction)chooseFileClicked:(id)sender;
78- (IBAction)uploadClicked:(id)sender;
79- (IBAction)pauseUploadClicked:(id)sender;
80- (IBAction)stopUploadClicked:(id)sender;
81- (IBAction)restartUploadClicked:(id)sender;
82
83- (IBAction)loggingCheckboxClicked:(id)sender;
84
85// Client ID sheet
86- (IBAction)clientIDClicked:(id)sender;
87- (IBAction)clientIDDoneClicked:(id)sender;
88- (IBAction)APIConsoleClicked:(id)sender;
89@end