PageRenderTime 28ms CodeModel.GetById 2ms app.highlight 20ms RepoModel.GetById 2ms app.codeStats 0ms

/Source/externals/GData/Examples/ContactsSample/ContactsSampleWindowController.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 99 lines | 58 code | 24 blank | 17 comment | 0 complexity | 7f04b4de063548d78e0d9ed520a4c960 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//  ContactsSampleWindowController.h
18//
19
20#import <Cocoa/Cocoa.h>
21
22#import "GData/GData.h"
23
24#import "GData/GDataFeedContact.h"
25
26@interface ContactsSampleWindowController : NSWindowController {
27  IBOutlet NSTextField *mUsernameField;
28  IBOutlet NSSecureTextField *mPasswordField;
29  
30  IBOutlet NSButton *mShowDeletedCheckbox;
31  IBOutlet NSButton *mMyContactsCheckbox;
32  IBOutlet NSComboBox *mPropertyNameField;
33  IBOutlet NSButton *mGetContactsButton;
34  
35  IBOutlet NSSegmentedControl *mFeedSegmentedControl;
36  IBOutlet NSTableView *mFeedTable;
37  IBOutlet NSProgressIndicator *mFeedProgressIndicator;
38  IBOutlet NSTextView *mFeedResultTextField;
39  IBOutlet NSButton *mFeedCancelButton;
40  IBOutlet NSButton *mSortFeedCheckbox;
41  
42  IBOutlet NSImageView *mContactImageView;
43  IBOutlet NSButton *mSetContactImageButton;
44  IBOutlet NSButton *mDeleteContactImageButton;
45  IBOutlet NSProgressIndicator *mSetContactImageProgressIndicator;
46  
47  IBOutlet NSButton *mAddContactButton;
48  IBOutlet NSTextField *mAddTitleField;
49  IBOutlet NSTextField *mAddEmailField;
50  IBOutlet NSButton *mDeleteContactButton;
51  IBOutlet NSButton *mDeleteAllButton;
52  
53  IBOutlet NSSegmentedControl *mEntrySegmentedControl;
54
55  IBOutlet NSTableView *mEntryTable;
56  IBOutlet NSTextView *mEntryResultTextField;
57  
58  IBOutlet NSButton *mAddEntryButton;
59  IBOutlet NSButton *mDeleteEntryButton;
60  IBOutlet NSButton *mEditEntryButton;
61  IBOutlet NSButton *mMakePrimaryEntryButton;
62  
63  IBOutlet NSTextField *mServiceURLField; 
64  
65  GDataFeedContact *mContactFeed;
66  GDataServiceTicket *mContactFetchTicket;
67  NSError *mContactFetchError;
68
69  NSString *mContactImageETag;
70
71  GDataFeedContactGroup *mGroupFeed;
72  GDataServiceTicket *mGroupFetchTicket;
73  NSError *mGroupFetchError;
74}
75
76+ (ContactsSampleWindowController *)sharedContactsSampleWindowController;
77
78- (IBAction)getFeedClicked:(id)sender;
79
80- (IBAction)cancelFeedFetchClicked:(id)sender;
81
82- (IBAction)setContactImageClicked:(id)sender;
83- (IBAction)deleteContactImageClicked:(id)sender;
84
85- (IBAction)addContactClicked:(id)sender;
86- (IBAction)deleteContactClicked:(id)sender;
87- (IBAction)deleteAllClicked:(id)sender;
88
89- (IBAction)addEntryClicked:(id)sender;
90- (IBAction)editEntryClicked:(id)sender;
91- (IBAction)deleteEntryClicked:(id)sender;
92- (IBAction)makeEntryPrimaryClicked:(id)sender;
93
94- (IBAction)feedSegmentClicked:(id)sender;
95- (IBAction)entrySegmentClicked:(id)sender;
96- (IBAction)sortContactsClicked:(id)sender;
97
98- (IBAction)loggingCheckboxClicked:(id)sender;
99@end