10 #include "icqcontact.h"
12 #include "eventmanager.h"
15 #define HIDL_SOCKEXIT 2
25 static char const * const version
;
28 struct reconnectInfo
{
32 reconnectInfo(): timer(0), period(30) {}
35 time_t timer_checkmail
, timer_keypress
, timer_update
, timer_resend
, timer_autosave
;
38 map
<string
, time_t> configstats
;
39 map
<protocolname
, reconnectInfo
> reconnect
;
41 static void handlesignal(int signum
);
45 bool checkpasswords();
51 string
quotemsg(const string
&text
);
53 void setauto(imstatus astatus
);
54 void createconference(const imcontact
&ic
);
56 void defaultcontacts(bool rus
);
63 void commandline(int argc
, char **argv
);
67 void userinfo(const imcontact
&cinfo
);
75 icqcontact
*addcontact(const imcontact
&ic
, bool reqauth
= false);
77 bool idle(int options
= 0);
80 icqface::eventviewresult
readevent(const imevent
&ev
,
81 const vector
<icqface::eventviewresult
> &buttons
= vector
<icqface::eventviewresult
>());
83 icqface::eventviewresult
readevent(const imevent
&ev
, bool &enough
, bool &fin
,
84 const vector
<icqface::eventviewresult
> &buttons
= vector
<icqface::eventviewresult
>());
86 void readevents(const imcontact cont
);
88 void history(const imcontact
&cont
);
89 bool next_chat(bool next
= false);
91 bool sendevent(const imevent
&ev
, icqface::eventviewresult r
);