1 #ifndef _MASK_H_
2 #define _MASK_H_
3 #include <vector>
4 #include <string>
5 extern "C"
6 {
7 #include <smapi/msgapi.h>
8 }
9 #include "ftnaddr.h"
10 #include "bastypes.h"
11 
12 class CMask
13 {
14 	public:
15 		/* methods */
16 		CMask(string sndr, string recpt, CFtnAddr frm, CFtnAddr to, string subj,
17 				dword flgs);
18 		CMask();
19 		~CMask();
20 		CMask(const CMask& msk);
21 		/* operators */
22 		CMask& operator=(const CMask& msk);
23 		CMask& operator=(const string& str);
24 		bool operator==(const CMask& msk);
25 		/* variables */
26 		string			s_Sender;
27 		string			s_Recipient;
28 		CFtnAddr		F_From;
29 		CFtnAddr		F_To;
30 		string			s_Subject;
31 		dword			d_Flags;
32 		string			s_Flags;
33 		vector<int>		i_match;
34 		/* attributes */
35 		short    priv;
36 		short	 crash;
37 		short	 received;
38  		short	 sent;
39 		short	 attach;
40 		short	 forward;
41 		short	 orphan;
42 		short	 kill;
43 		short	 local;
44 		short	 hold;
45 		short	 file_request;
46 		short	 scanned;
47 		short	 direct;
48 		short	 update_request;
49 		short	 rrq;
50 		short	 return_receipt;
51 		short	 immediate;
52 		short	 TFS;
53 		short	 KFS;
54 		short	 archive_sent;
55 		short	 is_return_receipt;
56 		short	 confirm_receipt_request;
57 		int parseAttr(string s_Flags);
58 		bool compareAttr(dword attr);
59 };
60 #endif
61