10 #define HIST_MSG_OUT 2
12 #define HIST_HISTORYMODE 8
20 #define ICQM_REQUEST 'R'
21 #define ICQM_ADDED 'I'
25 class histentry
{ public:
32 storedopen(FILE *nf
) { f
= nf
; rn
= 0; }
35 vector
<string
> lastevent
;
38 FILE *open(const imcontact cinfo
, const char *mode
);
39 vector
<storedopen
> opens
;
45 void putmessage(const imcontact cinfo
, const string text
, int dir
, struct tm
*timestamp
);
46 void puturl(const imcontact cinfo
, const string url
, const string desc
, int dir
, struct tm
*timestamp
);
47 void putfile(const imcontact cinfo
, unsigned long seq
, const string fname
, int fsize
, int dir
, struct tm
*timestamp
);
48 void putmail(const string nick
, const string email
, const string msg
, int mailt
, struct tm
*timestamp
);
50 bool opencontact(const imcontact cinfo
, time_t lastread
= 0);
52 int setposlastread(time_t lr
);
53 int find(const string sub
, int pos
= 0);
54 int readevent(int &event
, time_t &lastread
, struct tm
&sent
, int &dir
);
55 void getmessage(string
&text
);
56 void geturl(string
&url
, string
&text
);
57 void getfile(unsigned long &seq
, string
&fname
, int &fsize
);
62 void fillmenu(const imcontact cinfo
, verticalmenu
*m
);
65 extern icqhistory hist
;