/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. // AnalyticsSampleWindowController.h
  17. //
  18. //
  19. // IMPORTANT:
  20. //
  21. // The XML-based API for Google Analytics 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/analytics
  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 Analytics
  30. // API will eventually be removed.
  31. //
  32. #import <Cocoa/Cocoa.h>
  33. #import "GData/GDataAnalytics.h"
  34. @interface AnalyticsSampleWindowController : NSWindowController {
  35. IBOutlet NSTextField *mUsernameField;
  36. IBOutlet NSSecureTextField *mPasswordField;
  37. IBOutlet NSTableView *mAccountsTable;
  38. IBOutlet NSProgressIndicator *mAccountsProgressIndicator;
  39. IBOutlet NSTextView *mAccountsResultTextField;
  40. IBOutlet NSTableView *mAnalyticsDataTable;
  41. IBOutlet NSProgressIndicator *mAnalyticsDataProgressIndicator;
  42. IBOutlet NSTextView *mAnalyticsDataResultTextField;
  43. IBOutlet NSDatePicker *mStartDatePicker;
  44. IBOutlet NSDatePicker *mEndDatePicker;
  45. IBOutlet NSPopUpButton *mDimensionsPopup;
  46. IBOutlet NSTextField *mDimensionsField;
  47. IBOutlet NSPopUpButton *mMetricsPopup;
  48. IBOutlet NSTextField *mMetricsField;
  49. IBOutlet NSButton *mReloadButton;
  50. GDataFeedAnalyticsAccount *mAccountFeed;
  51. BOOL mIsAccountFetchPending;
  52. NSError *mAccountFetchError;
  53. GDataFeedAnalyticsData *mAnalyticsDataFeed;
  54. BOOL mIsAnalyticsDataFetchPending;
  55. NSError *mAnalyticsDataFetchError;
  56. }
  57. + (AnalyticsSampleWindowController *)sharedAnalyticsSampleWindowController;
  58. - (IBAction)getAccountsClicked:(id)sender;
  59. - (IBAction)refreshAccountData:(id)sender;
  60. - (IBAction)loggingCheckboxClicked:(id)sender;
  61. - (IBAction)menuItemClicked:(id)sender;
  62. @end