/Source/externals/GData/Examples/GooglePhotosSample/GooglePhotosSampleWindowController.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 87 lines · 52 code · 18 blank · 17 comment · 0 complexity · bd1f8d8a43757c38701132b485f65cdc 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. // GooglePhotosSampleWindowController.h
  17. //
  18. #import <Cocoa/Cocoa.h>
  19. #import "GData/GData.h"
  20. #import "GData/GDataFeedPhotoAlbum.h"
  21. #import "GData/GDataFeedPhoto.h"
  22. @interface GooglePhotosSampleWindowController : NSWindowController {
  23. IBOutlet NSTextField *mUsernameField;
  24. IBOutlet NSSecureTextField *mPasswordField;
  25. IBOutlet NSTableView *mAlbumTable;
  26. IBOutlet NSProgressIndicator *mAlbumProgressIndicator;
  27. IBOutlet NSTextView *mAlbumResultTextField;
  28. IBOutlet NSButton *mAlbumCancelButton;
  29. IBOutlet NSImageView *mAlbumImageView;
  30. IBOutlet NSButton *mCreateAlbumButton;
  31. IBOutlet NSButton *mCreateAlbumUnlistedCheckbox;
  32. IBOutlet NSTextField *mCreateAlbumField;
  33. IBOutlet NSTableView *mPhotoTable;
  34. IBOutlet NSProgressIndicator *mPhotoProgressIndicator;
  35. IBOutlet NSTextView *mPhotoResultTextField;
  36. IBOutlet NSButton *mPhotoCancelButton;
  37. IBOutlet NSImageView *mPhotoImageView;
  38. IBOutlet NSButton *mAddTagButton;
  39. IBOutlet NSTextField *mTagField;
  40. IBOutlet NSButton *mAddCommentButton;
  41. IBOutlet NSTextField *mCommentField;
  42. IBOutlet NSButton *mAddToAlbumButton;
  43. IBOutlet NSButton *mAddToDropBoxButton;
  44. IBOutlet NSButton *mDeletePhotoButton;
  45. IBOutlet NSButton *mDownloadPhotoButton;
  46. IBOutlet NSPopUpButton *mChangeAlbumPopupButton;
  47. IBOutlet NSProgressIndicator *mUploadProgressIndicator;
  48. GDataFeedPhotoUser *mUserAlbumFeed; // user feed of album entries
  49. GDataServiceTicket *mAlbumFetchTicket;
  50. NSError *mAlbumFetchError;
  51. NSString *mAlbumImageURLString;
  52. GDataFeedPhotoAlbum *mAlbumPhotosFeed; // album feed of photo entries
  53. GDataServiceTicket *mPhotosFetchTicket;
  54. NSError *mPhotosFetchError;
  55. NSString *mPhotoImageURLString;
  56. }
  57. + (GooglePhotosSampleWindowController *)sharedGooglePhotosSampleWindowController;
  58. - (IBAction)getAlbumClicked:(id)sender;
  59. - (IBAction)cancelAlbumFetchClicked:(id)sender;
  60. - (IBAction)cancelPhotoFetchClicked:(id)sender;
  61. - (IBAction)createAlbumClicked:(id)sender;
  62. - (IBAction)addToAlbumClicked:(id)sender;
  63. - (IBAction)addToDropBoxClicked:(id)sender;
  64. - (IBAction)deleteClicked:(id)sender;
  65. - (IBAction)downloadClicked:(id)sender;
  66. - (IBAction)addTagClicked:(id)sender;
  67. - (IBAction)addCommentClicked:(id)sender;
  68. - (IBAction)loggingCheckboxClicked:(id)sender;
  69. @end