/*****************************************************************/
/*                        Fabian Constants                       */
/*****************************************************************/

#define FTP_ERROR                0
#define FTP_READING              1
#define FTP_WRITING              2

#define BKG_PENDING           0x01
#define BKG_ROUTED            0x02
#define BKG_ENDED             0x04
#define BKG_CANCELLED         0x08
#define BKG_HIDDEN            0x10
#define BKG_OVERDUE           0x20

#define BKG_PENDING_MASK      0xFE
#define BKG_ROUTED_MASK       0xFD
#define BKG_ENDED_MASK        0xFB
#define BKG_CANCELLED_MASK    0xF7
#define BKG_HIDDEN_MASK       0xEF
#define BKG_OVERDUE_MASK      0xCF
#define BKG_MASK              0x3F

#define PKG_PENDING           0x01
#define PKG_MANUAL            0x02
#define PKG_AUTO              0x04
#define PKG_EXECUTED				0x08
#define PKG_FAILED		      0x10

#define NONE                     0
#define NORMAL                   1
#define SHADOW                   2
#define SINGLE                   3
#define REPEAT                   4

#define START_OF_SHADOWS	  1001
#define START_OF_SINGLES	  2001
#define START_OF_REPEATS	  3001
#define MAX_SINGLES           999
#define MAX_REPEATS           999
#define MAX_BOOKINGS	   	  4000

#define _NOT_CONNECTED			0
#define _CONNECTED				1
#define _LOGGEDON					2
#define _REGISTERED				3

#define CMD_ADD_NEW_BOOKING		"CANB"
#define CMD_SET_BOOKING_STATUS	"CSBS"
#define CMD_SET_PACKAGE_STATUS	"CSPS"
#define CMD_SIGNAL_NOTE_UPDATE   "CSNU"
#define CMD_GET_BOOKING_STATUS	"CGBS"
#define CMD_GET_NEXT_SINGLE		"CGNS"
#define CMD_GET_NEXT_REPEAT		"CGNR"
#define CMD_SIGNAL_LOCAL_UPDATE  "CSLU"
#define CMD_SIGNAL_REPEAT_UPDATE "CSRU"

#define REV_ADD_NEW_BOOKING		"RANB"
#define REV_SET_BOOKING_STATUS	"RSBS"
#define REV_SET_PACKAGE_STATUS	"RSPS"
#define REV_SIGNAL_NOTE_UPDATE   "RSNU"
#define REV_GET_BOOKING_STATUS	"RGBS"
#define REV_GET_NEXT_SINGLE		"RGNS"
#define REV_GET_NEXT_REPEAT		"RGNR"
#define REV_SIGNAL_BKG_UPDATE		"RSBU"


