4 #include "abstracthook.h"
8 #include "HTTPClient.h"
10 class ljhook
: public abstracthook
, public sigslot::has_slots
<> {
14 string baseurl
, md5pass
, username
;
15 vector
<int> rfds
, wfds
, efds
;
16 bool fonline
, flogged
;
18 time_t timer_getfriends
;
34 map
<HTTPRequestEvent
*, RequestType
> sent
;
35 vector
<string
> friendof
, journals
, moods
, pictures
;
37 void socket_cb(SocketEvent
*ev
);
38 void messageack_cb(MessageEvent
*ev
);
39 void logger_cb(LogEvent
*ev
);
41 void requestfriends();
43 string
getfeedurl(const string
&nick
) const;
44 string
getoldfeedurl(const string
&nick
) const;
57 void getsockets(fd_set
&rfds
, fd_set
&wfds
, fd_set
&efds
, int &hsocket
) const;
58 bool isoursocket(fd_set
&rfds
, fd_set
&wfds
, fd_set
&efds
) const;
62 bool isconnecting() const;
65 bool send(const imevent
&sev
);
67 void sendnewuser(const imcontact
&ic
);
68 void removeuser(const imcontact
&ic
);
70 void setautostatus(imstatus st
);
71 imstatus
getstatus() const;
73 void requestinfo(const imcontact
&c
);
75 void lookup(const imsearchparams
¶ms
, verticalmenu
&dest
);
78 void requestawaymsg(const imcontact
&c
);
79 void requestversion(const imcontact
&c
);
80 void ping(const imcontact
&c
);
82 void ouridchanged(const icqconf::imaccount
&ia
);
84 void updatecontact(icqcontact
*c
);
86 vector
<string
> getjournals() const { return journals
; }
87 vector
<string
> getmoods() const { return moods
; }
88 vector
<string
> getpictures() const { return pictures
; }