Lines Matching +full:- +full:- +full:show +full:- +full:error
8 * http://www.apache.org/licenses/LICENSE-2.0
27 static const NSUInteger kMaxFlashes = 20; // TODO(pquinn): Make this user-configurable.
32 - (void)setFlashTimer;
33 - (void)flash:(NSTimer *)timer;
51 - (void)dealloc {
56 - (void)viewDidLoad {
63 - (void)viewWillAppear:(BOOL)animated {
70 - (IBAction)start:(id)sender {
74 NSError *error = nil;
75 if (![_client sendCommand:WALTSendLastScreenCommand error:&error]) {
76 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
77 [alert show];
83 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
88 [alert show];
100 - (void)setFlashTimer {
108 - (IBAction)computeStatistics:(id)sender {
121 - (IBAction)reset:(id)sender {
133 NSError *error = nil;
134 if (![_client syncClocksWithError:&error]) {
135 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
136 [alert show];
142 - (void)flash:(NSTimer *)timer {
146 NSError *error = nil;
147 if (![_client sendCommand:WALTScreenOnCommand error:&error]) {
148 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
149 [alert show];
155 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
160 [alert show];
183 NSTimeInterval delta = response.t - lastFlash;
196 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
201 [alert show];
209 [_client sendCommand:WALTScreenOffCommand error:nil];