-
Notifications
You must be signed in to change notification settings - Fork 11
/
TSServiceTestWindowController.h
91 lines (73 loc) · 2.98 KB
/
TSServiceTestWindowController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//
// TSServiceTestWindowController.h
// ThisService
//
// Created by Jesper on 2012-07-05.
// Copyright 2012 waffle software. All rights reserved.
// BSD licensed - see license.txt for more information.
//
//
#import <Cocoa/Cocoa.h>
@class TSServiceTestWindowController;
#import "TSServiceTester.h"
@class WFMachTime;
@protocol TSServiceTestWindowControllerDelegate <NSObject>
- (void)testingDone:(TSServiceTestWindowController *)testWindowController;
- (void)testing:(TSServiceTestWindowController *)testWindowController failedFatally:(NSError *)error;
- (void)testingCancelled:(TSServiceTestWindowController *)testWindowController;
@end
@interface TSServiceTestWindowController : NSWindowController <TSServiceTesterDelegate, NSTextViewDelegate> {
TSServiceTester *_tester;
id<TSServiceTestWindowControllerDelegate> _delegate;
NSTextField *_statusLabel;
NSProgressIndicator *_statusIndicator;
NSTextField *_outputDirtyLabel;
NSTextField *_testServiceHeadlineLabel;
NSTextView *_inputTextView;
NSTextView *_outputTextView;
NSScrollView *_inputTextScrollView;
NSScrollView *_outputTextScrollView;
NSButton *_createServiceButton;
NSButton *_doTestService;
NSTextView *_logTextView;
NSTextField *_durationLabel;
NSBox *_noInputBox;
NSBox *_noOutputBox;
NSTextField *_inputLabel;
NSTextField *_inputInstructionsLabel;
NSTextField *_outputLabel;
NSNumber *_previousRunTime;
WFMachTime *_ongoingTimer;
BOOL supportsInput;
BOOL supportsOutput;
BOOL _pairingCompleted;
BOOL doomed;
NSButton *_testServiceButton;
}
-(TSServiceTestWindowController *)initWithTester:(TSServiceTester *)tester;
@property (assign) id<TSServiceTestWindowControllerDelegate> delegate;
@property (assign) IBOutlet NSTextField *statusLabel;
@property (assign) IBOutlet NSProgressIndicator *statusIndicator;
@property (assign) IBOutlet NSTextField *outputDirtyLabel;
@property (assign) IBOutlet NSTextField *testServiceHeadlineLabel;
@property (assign) IBOutlet NSTextView *inputTextView;
@property (assign) IBOutlet NSTextView *outputTextView;
@property (assign) IBOutlet NSScrollView *inputTextScrollView;
@property (assign) IBOutlet NSScrollView *outputTextScrollView;
@property (assign) IBOutlet NSButton *createServiceButton;
- (IBAction)doTestService:(id)sender;
- (IBAction)help:(id)sender;
@property (assign) IBOutlet NSTextView *logTextView;
@property (assign) IBOutlet NSTextField *durationLabel;
@property (assign) IBOutlet NSBox *noInputBox;
@property (assign) IBOutlet NSBox *noOutputBox;
@property (assign) IBOutlet NSTextField *inputLabel;
@property (assign) IBOutlet NSTextField *inputInstructionsLabel;
@property (assign) IBOutlet NSTextField *outputLabel;
@property (retain) NSNumber *previousRunTime;
@property (retain) WFMachTime *ongoingTimer;
- (IBAction)cancel:(id)sender;
- (IBAction)createService:(id)sender;
@property (assign) IBOutlet NSButton *testServiceButton;
@property BOOL doomed; // failed during initialization
@end