PageRenderTime 30ms CodeModel.GetById 17ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Examples/GooglePhotosSample/GooglePhotosSampleWindowController.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 87 lines | 52 code | 18 blank | 17 comment | 0 complexity | bd1f8d8a43757c38701132b485f65cdc MD5 | raw file
 1/* Copyright (c) 2007 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//  GooglePhotosSampleWindowController.h
18//
19
20#import <Cocoa/Cocoa.h>
21
22#import "GData/GData.h"
23#import "GData/GDataFeedPhotoAlbum.h"
24#import "GData/GDataFeedPhoto.h"
25
26@interface GooglePhotosSampleWindowController : NSWindowController {
27  IBOutlet NSTextField *mUsernameField;
28  IBOutlet NSSecureTextField *mPasswordField;
29  
30  IBOutlet NSTableView *mAlbumTable;
31  IBOutlet NSProgressIndicator *mAlbumProgressIndicator;
32  IBOutlet NSTextView *mAlbumResultTextField;
33  IBOutlet NSButton *mAlbumCancelButton;
34  IBOutlet NSImageView *mAlbumImageView;
35
36  IBOutlet NSButton *mCreateAlbumButton;
37  IBOutlet NSButton *mCreateAlbumUnlistedCheckbox;
38  IBOutlet NSTextField *mCreateAlbumField;
39
40  IBOutlet NSTableView *mPhotoTable;
41  IBOutlet NSProgressIndicator *mPhotoProgressIndicator;
42  IBOutlet NSTextView *mPhotoResultTextField;
43  IBOutlet NSButton *mPhotoCancelButton;
44  IBOutlet NSImageView *mPhotoImageView;
45  
46  IBOutlet NSButton *mAddTagButton;
47  IBOutlet NSTextField *mTagField;
48  IBOutlet NSButton *mAddCommentButton;
49  IBOutlet NSTextField *mCommentField;
50  
51  IBOutlet NSButton *mAddToAlbumButton;
52  IBOutlet NSButton *mAddToDropBoxButton;
53  IBOutlet NSButton *mDeletePhotoButton;
54  IBOutlet NSButton *mDownloadPhotoButton;
55  IBOutlet NSPopUpButton *mChangeAlbumPopupButton;
56  IBOutlet NSProgressIndicator *mUploadProgressIndicator;
57  
58  GDataFeedPhotoUser *mUserAlbumFeed; // user feed of album entries
59  GDataServiceTicket *mAlbumFetchTicket;
60  NSError *mAlbumFetchError;
61  NSString *mAlbumImageURLString;
62    
63  GDataFeedPhotoAlbum *mAlbumPhotosFeed; // album feed of photo entries
64  GDataServiceTicket *mPhotosFetchTicket;
65  NSError *mPhotosFetchError;
66  NSString *mPhotoImageURLString;
67}
68
69+ (GooglePhotosSampleWindowController *)sharedGooglePhotosSampleWindowController;
70
71- (IBAction)getAlbumClicked:(id)sender;
72
73- (IBAction)cancelAlbumFetchClicked:(id)sender;
74- (IBAction)cancelPhotoFetchClicked:(id)sender;
75
76- (IBAction)createAlbumClicked:(id)sender;
77
78- (IBAction)addToAlbumClicked:(id)sender;
79- (IBAction)addToDropBoxClicked:(id)sender;
80- (IBAction)deleteClicked:(id)sender;
81- (IBAction)downloadClicked:(id)sender;
82
83- (IBAction)addTagClicked:(id)sender;
84- (IBAction)addCommentClicked:(id)sender;
85
86- (IBAction)loggingCheckboxClicked:(id)sender;
87@end