PageRenderTime 37ms CodeModel.GetById 27ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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