PageRenderTime 23ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Examples/AnalyticsSample/AnalyticsSampleWindowController.h

http://macfuse.googlecode.com/
C++ Header | 80 lines | 31 code | 18 blank | 31 comment | 0 complexity | 6a04193131c3340f193c1840f185c93b 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//  AnalyticsSampleWindowController.h
18//
19
20//
21// IMPORTANT:
22//
23// The XML-based API for Google Analytics 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/analytics
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 Analytics
32// API will eventually be removed.
33//
34
35#import <Cocoa/Cocoa.h>
36
37#import "GData/GDataAnalytics.h"
38
39@interface AnalyticsSampleWindowController : NSWindowController {
40  IBOutlet NSTextField *mUsernameField;
41  IBOutlet NSSecureTextField *mPasswordField;
42
43  IBOutlet NSTableView *mAccountsTable;
44  IBOutlet NSProgressIndicator *mAccountsProgressIndicator;
45  IBOutlet NSTextView *mAccountsResultTextField;
46
47  IBOutlet NSTableView *mAnalyticsDataTable;
48  IBOutlet NSProgressIndicator *mAnalyticsDataProgressIndicator;
49  IBOutlet NSTextView *mAnalyticsDataResultTextField;
50
51  IBOutlet NSDatePicker *mStartDatePicker;
52  IBOutlet NSDatePicker *mEndDatePicker;
53
54  IBOutlet NSPopUpButton *mDimensionsPopup;
55  IBOutlet NSTextField *mDimensionsField;
56  IBOutlet NSPopUpButton *mMetricsPopup;
57  IBOutlet NSTextField *mMetricsField;
58
59  IBOutlet NSButton *mReloadButton;
60
61  GDataFeedAnalyticsAccount *mAccountFeed;
62  BOOL mIsAccountFetchPending;
63  NSError *mAccountFetchError;
64
65  GDataFeedAnalyticsData *mAnalyticsDataFeed;
66  BOOL mIsAnalyticsDataFetchPending;
67  NSError *mAnalyticsDataFetchError;
68}
69
70+ (AnalyticsSampleWindowController *)sharedAnalyticsSampleWindowController;
71
72- (IBAction)getAccountsClicked:(id)sender;
73
74- (IBAction)refreshAccountData:(id)sender;
75
76- (IBAction)loggingCheckboxClicked:(id)sender;
77
78- (IBAction)menuItemClicked:(id)sender;
79
80@end