2 // Prefix header for all source files of the 'FreeFlight' target in the 'FreeFlight' project
5 #import <Availability.h>
8 #warning "This project uses features only available in iPhone SDK 3.0 and later."
12 #import <Foundation/Foundation.h>
13 #import <UIKit/UIKit.h>
18 #define FTP_ADDRESS @"ftp://%@:%d/%@"
20 #define FTP_REPAIR_PORT 21
21 #define TELNET_PORT 23
22 #define SEND_BUFFER_SIZE 32768
24 #define ERROR_NO_ERROR 0
25 #define ERROR_CANNOT_CONNECT_TO_TOY 1
27 #define FTP_MAX_RETRIES 5
28 #define TIME_BEFORE_LAUNCH 5 // in s
30 #define NORMAL_COLOR [UIColor colorWithRed:217.0/255.0 green:242.0/255.0 blue:255.0/255.0 alpha:1.0]
31 #define FAIL_COLOR [UIColor colorWithRed:255.0/255.0 green:217.0/255.0 blue:217.0/255.0 alpha:1.0]
32 #define PASS_COLOR [UIColor colorWithRed:230.0/255.0 green:255.0/255.0 blue:217.0/255.0 alpha:1.0]
33 #define PROBLEM_COLOR [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:217.0/255.0 alpha:1.0]
38 #define IPAD_SCREEN_W 1024
39 #define IPAD_SCREEN_H 768