/core/externals/update-engine/externals/gdata-objectivec-client/Examples/FinanceSample/FinanceSampleWindowController.h

http://macfuse.googlecode.com/ · C++ Header · 76 lines · 41 code · 18 blank · 17 comment · 0 complexity · e1965db63aea0b171bdb459b24aedef5 MD5 · raw file

  1. /* Copyright (c) 2008 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. // FinanceSampleWindowController.h
  17. //
  18. #import <Cocoa/Cocoa.h>
  19. #import "GData/GDataFinance.h"
  20. @interface FinanceSampleWindowController : NSWindowController {
  21. IBOutlet NSTextField *mUsernameField;
  22. IBOutlet NSSecureTextField *mPasswordField;
  23. IBOutlet NSTableView *mPortfoliosTable;
  24. IBOutlet NSProgressIndicator *mPortfoliosProgressIndicator;
  25. IBOutlet NSTextView *mPortfoliosResultTextField;
  26. IBOutlet NSButton *mCreatePortfolioButton;
  27. IBOutlet NSTextField *mPortfolioNameField;
  28. IBOutlet NSButton *mDeletePortfolioButton;
  29. IBOutlet NSTableView *mPositionsTable;
  30. IBOutlet NSProgressIndicator *mPositionsProgressIndicator;
  31. IBOutlet NSTextView *mPositionsResultTextField;
  32. IBOutlet NSTableView *mTransactionsTable;
  33. IBOutlet NSProgressIndicator *mTransactionsProgressIndicator;
  34. IBOutlet NSTextView *mTransactionsResultTextField;
  35. IBOutlet NSButton *mCreateTransactionButton;
  36. IBOutlet NSDatePicker *mTransactionDatePicker;
  37. IBOutlet NSTextField *mTransactionSharesField;
  38. IBOutlet NSPopUpButton *mTransactionTypePopup;
  39. IBOutlet NSTextField *mTransactionPriceField;
  40. IBOutlet NSButton *mDeleteTransactionButton;
  41. GDataFeedFinancePortfolio *mPortfolioFeed;
  42. int mPortfolioFetchesPendingCount;
  43. NSError *mPortfolioFetchError;
  44. GDataFeedFinancePosition *mPositionFeed;
  45. int mPositionFetchesPendingCount;
  46. NSError *mPositionFetchError;
  47. GDataFeedFinanceTransaction *mTransactionFeed;
  48. int mTransactionFetchesPendingCount;
  49. NSError *mTransactionFetchError;
  50. }
  51. + (FinanceSampleWindowController *)sharedFinanceSampleWindowController;
  52. - (IBAction)getPortfoliosClicked:(id)sender;
  53. - (IBAction)createPortfolioClicked:(id)sender;
  54. - (IBAction)deletePortfolioClicked:(id)sender;
  55. - (IBAction)createTransactionClicked:(id)sender;
  56. - (IBAction)deleteTransactionClicked:(id)sender;
  57. - (IBAction)loggingCheckboxClicked:(id)sender;
  58. @end