Mercurial > hg
annotate mcabber/src/jabglue.h @ 518:9480a76471b6
Update Log_Win_Height when refreshing the screen
It allows live modification of the 'log_win_height' option.
The log window height is reduced when the screen height is reduced too much,
too.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 14 Nov 2005 18:34:57 +0100 |
parents | 2a6a8ebb813b |
children | 5c338d31de56 |
rev | line source |
---|---|
29 | 1 #ifndef __JABGLUE_H__ |
2 #define __JABGLUE_H__ 1 | |
3 | |
159 | 4 #include <glib.h> |
5 | |
29 | 6 #include "../libjabber/jabber.h" |
7 | |
237 | 8 #if HAVE_CONFIG_H |
9 # include <config.h> | |
10 #endif | |
11 | |
12 #if ! HAVE_DECL_STRPTIME | |
13 extern char *strptime (); | |
14 #endif | |
15 | |
29 | 16 extern jconn jc; |
17 | |
46 | 18 extern char imstatus2char[]; |
277
4d7040cff8ee
Remove busy/occupied status, which does not really exist
Mikael Berthe <mikael@lilotux.net>
parents:
272
diff
changeset
|
19 // Status chars: '_', 'o', 'i', 'f', 'd', 'n', 'a' |
46 | 20 |
29 | 21 enum imstatus { |
41 | 22 offline, |
29 | 23 available, |
24 invisible, | |
25 freeforchat, | |
26 dontdisturb, | |
27 notavail, | |
28 away, | |
29 imstatus_size | |
30 }; | |
31 | |
37 | 32 enum agtype { |
33 unknown, | |
34 groupchat, | |
35 transport, | |
36 search | |
37 }; | |
38 | |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
294
diff
changeset
|
39 char *compose_jid(const char *username, const char *servername, |
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
294
diff
changeset
|
40 const char *resource); |
403
17aa60c6dc63
Allow a different server name than the jid domain name
Mikael Berthe <mikael@lilotux.net>
parents:
300
diff
changeset
|
41 jconn jb_connect(const char *jid, const char *server, unsigned int port, |
17aa60c6dc63
Allow a different server name than the jid domain name
Mikael Berthe <mikael@lilotux.net>
parents:
300
diff
changeset
|
42 int ssl, const char *pass); |
472
75442262c082
Disable some commands when not connected
Mikael Berthe <mikael@lilotux.net>
parents:
469
diff
changeset
|
43 inline unsigned char jb_getonline(void); |
29 | 44 void jb_disconnect(void); |
45 void jb_main(); | |
244 | 46 void jb_addbuddy(const char *jid, const char *name, const char *group); |
205 | 47 void jb_delbuddy(const char *jid); |
208 | 48 void jb_updatebuddy(const char *jid, const char *name, const char *group); |
116 | 49 inline enum imstatus jb_getstatus(); |
444 | 50 void jb_setstatus(enum imstatus st, const char *recipient, const char *msg); |
475
fa49ac0bb8f3
Add "/room topic", and display topic changes
Mikael Berthe <mikael@lilotux.net>
parents:
472
diff
changeset
|
51 void jb_send_msg(const char *jid, const char *text, int type, |
fa49ac0bb8f3
Add "/room topic", and display topic changes
Mikael Berthe <mikael@lilotux.net>
parents:
472
diff
changeset
|
52 const char *subject); |
436 | 53 void jb_send_raw(const char *str); |
112 | 54 void jb_keepalive(); |
55 inline void jb_reset_keepalive(); | |
56 void jb_set_keepalive_delay(unsigned int delay); | |
272 | 57 inline void jb_set_priority(unsigned int priority); |
469
a926523d2392
Use UTF8 to handle resources and room nicknames
Mikael Berthe <mikael@lilotux.net>
parents:
449
diff
changeset
|
58 void jb_room_join(const char *room, const char *nickname); |
449 | 59 void jb_room_unlock(const char *room); |
486 | 60 void jb_room_invite(const char *room, const char *jid, const char *reason); |
29 | 61 |
62 #endif /* __JABGLUE_H__ */ |