PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/core/externals/update-engine/Samples/Actions/AppController.h

http://macfuse.googlecode.com/
C++ Header | 45 lines | 14 code | 7 blank | 24 comment | 0 complexity | 929afcd75f94647b3787a149fdfcfe8a MD5 | raw file
 1// Copyright 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#import <Cocoa/Cocoa.h>
16
17@class KSActionProcessor;
18
19// AppController is the controller / kitchen-sink object for the Actions
20// sample, which manages the window the user can play with.  When the user
21// clicks a Start button, it kicks off an action processor to download
22// a catalog file of images from the internets, filter the catalog based
23// on a predicate, and then download and display the images in the catalog.
24//
25@interface AppController : NSObject {
26 @private
27  // Window UI controls.
28  IBOutlet NSTextField *catalogURLField_;
29  IBOutlet NSTextField *predicateField_;
30  IBOutlet NSTextView *statusTextView_;
31  IBOutlet NSTableView *imageTableView_;
32
33  // Images downloaded by actions, displayed in the table view.
34  NSMutableArray *images_;
35  // Parallel array.  Names of the images.
36  NSMutableArray *names_;
37
38  // Runs the actions that do the real work.
39  KSActionProcessor *actionProcessor_;
40}
41
42// Start off the processing.
43- (IBAction)start:(id)sender;
44
45@end // AppController