PageRenderTime 23ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

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