/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. // YouTubeSampleWindowController.h
  17. //
  18. #import <Cocoa/Cocoa.h>
  19. #import "GData/GData.h"
  20. #import "GData/GDataFeedPhotoAlbum.h"
  21. #import "GData/GDataFeedPhoto.h"
  22. @interface YouTubeSampleWindowController : NSWindowController {
  23. IBOutlet NSTextField *mSignedInField;
  24. IBOutlet NSButton *mSignedInButton;
  25. IBOutlet NSPopUpButton *mUserFeedPopup;
  26. IBOutlet NSTextField *mEntryCountField;
  27. IBOutlet NSTableView *mEntriesTable;
  28. IBOutlet NSProgressIndicator *mEntriesProgressIndicator;
  29. IBOutlet NSTextView *mEntriesResultTextField;
  30. IBOutlet NSButton *mEntriesCancelButton;
  31. IBOutlet NSImageView *mEntryImageView;
  32. IBOutlet NSButton *mChooseFileButton;
  33. IBOutlet NSTextField *mFilePathField;
  34. IBOutlet NSTextField *mDeveloperKeyField;
  35. IBOutlet NSTextField *mTitleField;
  36. IBOutlet NSTextField *mDescriptionField;
  37. IBOutlet NSTextField *mKeywordsField;
  38. IBOutlet NSPopUpButton *mCategoryPopup;
  39. IBOutlet NSButton *mPrivateCheckbox;
  40. IBOutlet NSButton *mUploadButton;
  41. IBOutlet NSButton *mPauseUploadButton;
  42. IBOutlet NSButton *mStopUploadButton;
  43. IBOutlet NSButton *mRestartUploadButton;
  44. IBOutlet NSProgressIndicator *mUploadProgressIndicator;
  45. IBOutlet NSButton *mClientIDButton;
  46. IBOutlet NSTextField *mClientIDRequiredTextField;
  47. IBOutlet NSWindow *mClientIDSheet;
  48. IBOutlet NSTextField *mClientIDField;
  49. IBOutlet NSTextField *mClientSecretField;
  50. GDataFeedYouTubeVideo *mEntriesFeed; // user feed of album entries
  51. GDataServiceTicket *mEntriesFetchTicket;
  52. NSError *mEntriesFetchError;
  53. NSString *mEntryImageURLString;
  54. GDataServiceTicket *mUploadTicket;
  55. NSURL *mUploadLocationURL;
  56. }
  57. + (YouTubeSampleWindowController *)sharedYouTubeSampleWindowController;
  58. - (IBAction)signInClicked:(id)sender;
  59. - (IBAction)getEntriesClicked:(id)sender;
  60. - (IBAction)cancelEntriesFetchClicked:(id)sender;
  61. - (IBAction)chooseFileClicked:(id)sender;
  62. - (IBAction)uploadClicked:(id)sender;
  63. - (IBAction)pauseUploadClicked:(id)sender;
  64. - (IBAction)stopUploadClicked:(id)sender;
  65. - (IBAction)restartUploadClicked:(id)sender;
  66. - (IBAction)loggingCheckboxClicked:(id)sender;
  67. // Client ID sheet
  68. - (IBAction)clientIDClicked:(id)sender;
  69. - (IBAction)clientIDDoneClicked:(id)sender;
  70. - (IBAction)APIConsoleClicked:(id)sender;
  71. @end