21 #include <tqmemarray.h>
23 #include "pab_xxport.h"
25 #define T_MS_ARRAY 0x1100
26 #define T_MS_STRING ((unsigned long) 0x1e)
28 typedef unsigned long adr_t;
29 typedef unsigned long content_t;
30 typedef unsigned short pabsize_t;
31 typedef unsigned char byte_t;
32 typedef unsigned short word_t;
47 word_t N( void) { return m_N; }
48 word_t operator[]( int i) { return m_W[i]; }
49 const char *getEntry( int i);
51 content_t read(word_t offset);
55 pr_unknown,pr_notused,
56 pr_givenname,pr_email,
57 pr_firstname,pr_additionalname,pr_lastname,pr_title,
58 pr_address,pr_town,pr_state,pr_zip,pr_country,
59 pr_organization,pr_department,pr_subdep,pr_job,
60 pr_tel,pr_fax,pr_modem,pr_mobile,pr_url,pr_talk,
67 friend bool operator < (mapitag_t &,mapitag_t &);
68 friend bool operator > (mapitag_t &,mapitag_t &);
69 friend bool operator == (mapitag_t &,mapitag_t &);
75 mapitag_t(content_t tag,content_t order) { _tag=(word_t) tag;_type=(word_t) (tag>>16);_order=order; }
76 mapitag_t() { _tag=0;_type=0;_order=0; }
78 mapitag_t & operator = (mapitag_t & t) { _tag=t._tag;_type=t._type;_order=t._order; return * this; }
80 bool isUsed( void) { return (_type==T_MS_STRING || (_type&T_MS_ARRAY)!=0) && _order!=0; }
81 word_t literal( void) { return _tag; }
82 content_t order( void) { return _order; }
83 pabrec_entry matchTag( void);
86 bool operator < (mapitag_t & a,mapitag_t & b);
87 bool operator > (mapitag_t & a,mapitag_t & b);
88 bool operator == (mapitag_t & a,mapitag_t & b);
93 TQMemArray<mapitag_t> tags,context_tags;
95 TQString givenName,email,
96 title,firstName,additionalName,lastName,
97 address,town,state,zip,country,
98 organization,department,subDep,job,
99 tel,fax,modem,mobile,homepage,talk,
104 pabrec_entry isWhat( int k);
105 word_t literal( int k);
106 content_t order( int k);
108 pabfields_t(pabrec & R, TQWidget *parent);
110 TDEABC::Addressee get( );
111 bool isOK( void) { return OK; }
112 bool isUsable( void) { return givenName!= ""; }
|