4 #include "abstracthook.h"
10 class gaduhook
: public abstracthook
{
13 struct gg_session
*sess
;
15 map
<long unsigned int, string
> awaymsgs
;
17 void searchdone(void *p
);
18 void userstatuschange(unsigned int uin
, int status
, const char *desc
);
20 void usernotify(unsigned int uin
, int status
, const char *desc
,
21 unsigned int ip
, int port
, int version
);
23 string
handletoken(struct gg_http
*h
);
38 void getsockets(fd_set
&rfds
, fd_set
&wfds
, fd_set
&efds
, int &hsocket
) const;
39 bool isoursocket(fd_set
&rfds
, fd_set
&wfds
, fd_set
&efds
) const;
43 bool isconnecting() const;
46 bool send(const imevent
&ev
);
48 void sendnewuser(const imcontact
&c
);
49 void removeuser(const imcontact
&c
);
51 void setautostatus(imstatus st
);
52 imstatus
getstatus() const;
54 void requestinfo(const imcontact
&c
);
55 void requestawaymsg(const imcontact
&ic
);
57 bool regconnect(const string
&aserv
);
58 bool regattempt(unsigned int &auin
, const string
&apassword
, const string
&email
);
60 void lookup(const imsearchparams
¶ms
, verticalmenu
&dest
);
61 void sendupdateuserinfo(const icqcontact
&c
);
64 extern gaduhook ghook
;