/safeFatPrinter/branch/src/tech_global.h

http://cupsfilter.googlecode.com/ · C Header · 60 lines · 44 code · 16 blank · 0 comment · 0 complexity · b1c62cbd62b0b17e0f6ae05b469c8c43 MD5 · raw file

  1. #ifndef TECH_GLOBAL_H
  2. #define TECH_GLOBAL_H
  3. typedef enum{
  4. CONN_STEP,
  5. CONVERT_STEP,
  6. GET_FROM_FTP_STEP
  7. }steps_t;
  8. typedef enum{
  9. REGISTER_CMD = 10,
  10. AUTHOR_USER = 100,
  11. GET_MB_PRINTS_TODAY_CMD =200,
  12. RAW_SQL_CMD = 202,
  13. USER_SAY_DOC_GOOD = 203,
  14. USER_SAY_DOC_BAD = 204,
  15. GET_SEC_LEVEL_CMD = 300, //?????? ? ?????? ?? ????????? ?????? ??????? ???????????
  16. GET_PRINTER_LIST_CMD = 400,
  17. IS_MB_EXIST_CMD = 500,
  18. DISCONNECT = 5000
  19. }commands_t;
  20. typedef enum{
  21. REGISTER_ANS = 1010,
  22. PRINT_ALLOWED = 1100, // ?????? ?????????
  23. PRINT_DENIED = 1101, // ?????? ?????????
  24. PRINTER_NOT_FOUND = 1102, // ??????? ?? ??????
  25. PRINTER_LIST_ANS = 1400,
  26. PRINTER_LIST_EMPTY=1401,
  27. MB_LIST_ANS = 1200,
  28. MB_EXIST_AND_BRAK_ANS =1205,
  29. MB_EXIST_AND_NOT_BRAK_ANS =1210,
  30. MB_NOT_EXIST_ANS=1220,
  31. STAMP_LIST_ANS = 1300 // ?????? ???????? ??????? ???????????
  32. }answer_t;
  33. typedef enum{
  34. DOC_PRINTED =-1
  35. }doc_state_t;
  36. typedef enum {
  37. NO_ERROR,
  38. HOSTNAME_EMPTY_ERR,
  39. INVALID_PORT_RANGE_ERR,
  40. HOST_NOT_FOUND_ERR,
  41. CONNECTION_REFUSED_ERR,
  42. FILE_NOT_FOUND
  43. }error_t;
  44. #endif // TECH_GLOBAL_H