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