/core/externals/update-engine/externals/gdata-objectivec-client/Examples/BloggerSample/BloggerSampleWindowController.h

http://macfuse.googlecode.com/ · C++ Header · 89 lines · 39 code · 19 blank · 31 comment · 0 complexity · 384882ccf069afa049bbfac8e7d12e3c MD5 · raw file

  1. /* Copyright (c) 2009 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. // BloggerSampleWindowController.h
  17. //
  18. //
  19. // IMPORTANT:
  20. //
  21. // The XML-based API for Blogger has been replaced with a more efficient
  22. // and easier-to-use JSON API. The JSON API is documented at
  23. //
  24. // https://developers.google.com/blogger/
  25. //
  26. // See the new Objective-C client library and sample code at
  27. // http://code.google.com/p/google-api-objectivec-client/
  28. //
  29. // This sample application and library support for the XML-based Blogger
  30. // API will eventually be removed.
  31. //
  32. #import <Cocoa/Cocoa.h>
  33. #import "GData/GDataBlogger.h"
  34. @interface BloggerSampleWindowController : NSWindowController {
  35. IBOutlet NSTextField *mUsernameField;
  36. IBOutlet NSSecureTextField *mPasswordField;
  37. IBOutlet NSTableView *mBlogsTable;
  38. IBOutlet NSProgressIndicator *mBlogsProgressIndicator;
  39. IBOutlet NSTextView *mBlogsResultTextField;
  40. IBOutlet NSTableView *mPostsTable;
  41. IBOutlet NSProgressIndicator *mPostsProgressIndicator;
  42. IBOutlet NSTextView *mPostsResultTextField;
  43. IBOutlet NSTextField *mPostEditField;
  44. IBOutlet NSProgressIndicator *mEditProgressIndicator;
  45. IBOutlet NSButton *mPostDraftCheckBox;
  46. IBOutlet NSButton *mAddPostButton;
  47. IBOutlet NSButton *mUpdatePostButton;
  48. IBOutlet NSButton *mDeletePostButton;
  49. IBOutlet NSTableView *mCommentsTable;
  50. IBOutlet NSProgressIndicator *mCommentsProgressIndicator;
  51. IBOutlet NSTextView *mCommentsResultTextField;
  52. GDataFeedBase *mBlogFeed;
  53. GDataServiceTicket *mBlogFeedTicket;
  54. NSError *mBlogFetchError;
  55. GDataFeedBase *mPostFeed;
  56. GDataServiceTicket *mPostFeedTicket;
  57. NSError *mPostFetchError;
  58. GDataServiceTicket *mEditPostTicket; // for add, update, delete
  59. GDataFeedBase *mCommentFeed;
  60. GDataServiceTicket *mCommentFeedTicket;
  61. NSError *mCommentFetchError;
  62. }
  63. + (BloggerSampleWindowController *)sharedBloggerSampleWindowController;
  64. - (IBAction)getBlogsClicked:(id)sender;
  65. - (IBAction)addPostClicked:(id)sender;
  66. - (IBAction)updatePostClicked:(id)sender;
  67. - (IBAction)deletePostClicked:(id)sender;
  68. - (IBAction)draftCheckboxClicked:(id)sender;
  69. - (IBAction)loggingCheckboxClicked:(id)sender;
  70. @end