author | Mikael Berthe <mikael@lilotux.net> |
Sat, 06 May 2006 00:00:46 +0200 | |
changeset 842 | f74c5c6d2c24 |
parent 757 | ae23c8826efb |
child 965 | 1bdf0f1b16c0 |
permissions | -rw-r--r-- |
94 | 1 |
#ifndef __COMPL_H__ |
2 |
#define __COMPL_H__ 1 |
|
3 |
||
4 |
#include <glib.h> |
|
5 |
||
238 | 6 |
#define COMPL_CMD (1<<0) |
7 |
#define COMPL_JID (1<<2) |
|
8 |
#define COMPL_URLJID (1<<3) // Not implemented yet |
|
9 |
#define COMPL_NAME (1<<4) // Not implemented yet |
|
10 |
#define COMPL_STATUS (1<<5) |
|
11 |
#define COMPL_FILENAME (1<<6) // Not implemented yet |
|
12 |
#define COMPL_ROSTER (1<<7) |
|
13 |
#define COMPL_BUFFER (1<<8) |
|
14 |
#define COMPL_GROUP (1<<9) |
|
15 |
#define COMPL_GROUPNAME (1<<10) |
|
16 |
#define COMPL_MULTILINE (1<<11) |
|
447
03bb57383cea
Initial Multi-User Chat support
Mikael Berthe <mikael@lilotux.net>
parents:
284
diff
changeset
|
17 |
#define COMPL_ROOM (1<<12) |
501
7c1ca00070e8
Add COMPL_RESOURCE (resource completion category)
Mikael Berthe <mikael@lilotux.net>
parents:
447
diff
changeset
|
18 |
#define COMPL_RESOURCE (1<<13) |
617
d3a8b43bf9e7
Add "/authorization" command
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
19 |
#define COMPL_AUTH (1<<14) |
693 | 20 |
#define COMPL_REQUEST (1<<15) |
750
938a8791658c
Add partial completion for the "/event" command
Mikael Berthe <mikael@lilotux.net>
parents:
693
diff
changeset
|
21 |
#define COMPL_EVENTS (1<<16) |
757
ae23c8826efb
Improve completion for the "/event" command
Mikael Berthe <mikael@lilotux.net>
parents:
750
diff
changeset
|
22 |
#define COMPL_EVENTSID (1<<17) |
94 | 23 |
|
98 | 24 |
void compl_add_category_word(guint, const char *command); |
284
f879b17ecb8e
Add compl_del_category_word()
Mikael Berthe <mikael@lilotux.net>
parents:
238
diff
changeset
|
25 |
void compl_del_category_word(guint categ, const char *word); |
98 | 26 |
GSList *compl_get_category_list(guint cat_flags); |
94 | 27 |
|
98 | 28 |
void new_completion(char *prefix, GSList *compl_cat); |
29 |
void done_completion(void); |
|
30 |
guint cancel_completion(void); |
|
94 | 31 |
const char *complete(void); |
32 |
||
33 |
#endif /* __COMPL_H__ */ |
|
576 | 34 |
|
580 | 35 |
/* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |