Mercurial > ~mikael > mcabber > hg
annotate mcabber/mcabber/compl.h @ 1795:47699a09ceb3
Rework the hook system
This hook system implementation should be more efficient and a little
more flexible.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 20 Mar 2010 14:38:17 +0100 |
parents | e2c084204583 |
children | e6d355e50d7a |
rev | line source |
---|---|
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1607
diff
changeset
|
1 #ifndef __MCABBER_COMPL_H__ |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1607
diff
changeset
|
2 #define __MCABBER_COMPL_H__ 1 |
94 | 3 |
4 #include <glib.h> | |
5 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1607
diff
changeset
|
6 #include <mcabber/config.h> |
1607 | 7 |
965
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
8 #define COMPL_CMD (1U<<0) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
9 #define COMPL_JID (1U<<1) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
10 #define COMPL_URLJID (1U<<2) // Not implemented yet |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
11 #define COMPL_NAME (1U<<3) // Not implemented yet |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
12 #define COMPL_STATUS (1U<<4) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
13 #define COMPL_FILENAME (1U<<5) // Not implemented yet |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
14 #define COMPL_ROSTER (1U<<6) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
15 #define COMPL_BUFFER (1U<<7) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
16 #define COMPL_GROUP (1U<<8) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
17 #define COMPL_GROUPNAME (1U<<9) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
18 #define COMPL_MULTILINE (1U<<10) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
19 #define COMPL_ROOM (1U<<11) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
20 #define COMPL_RESOURCE (1U<<12) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
21 #define COMPL_AUTH (1U<<13) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
22 #define COMPL_REQUEST (1U<<14) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
23 #define COMPL_EVENTS (1U<<15) |
1bdf0f1b16c0
Use U suffix for unsigned defines
Mikael Berthe <mikael@lilotux.net>
parents:
757
diff
changeset
|
24 #define COMPL_EVENTSID (1U<<16) |
1066 | 25 #define COMPL_PGP (1U<<17) |
1272
033576acac4c
Add configurable roster colors (Michal 'vorner' Vaner)
Mikael Berthe <mikael@lilotux.net>
parents:
1228
diff
changeset
|
26 #define COMPL_COLOR (1U<<18) |
1299
3b338a5c01fc
OTR support
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1272
diff
changeset
|
27 #define COMPL_OTR (1U<<19) |
3b338a5c01fc
OTR support
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1272
diff
changeset
|
28 #define COMPL_OTRPOLICY (1U<<20) |
1607 | 29 #ifdef MODULES_ENABLE |
30 #define COMPL_MAX_BUILTIN (1U<<20) | |
31 | |
32 guint compl_new_category (void); | |
33 void compl_del_category (guint id); | |
34 #endif | |
94 | 35 |
1756
e2c084204583
Add (optional) suffix after nick completion in Multi-User Chats
Mikael Berthe <mikael@lilotux.net>
parents:
1668
diff
changeset
|
36 void compl_add_category_word(guint, const gchar *command); |
e2c084204583
Add (optional) suffix after nick completion in Multi-User Chats
Mikael Berthe <mikael@lilotux.net>
parents:
1668
diff
changeset
|
37 void compl_del_category_word(guint categ, const gchar *word); |
1076
b9698c89f46d
Fix memory leak in scr_handle_tab()
Mikael Berthe <mikael@lilotux.net>
parents:
1066
diff
changeset
|
38 GSList *compl_get_category_list(guint cat_flags, guint *dynlist); |
94 | 39 |
1756
e2c084204583
Add (optional) suffix after nick completion in Multi-User Chats
Mikael Berthe <mikael@lilotux.net>
parents:
1668
diff
changeset
|
40 guint new_completion(const gchar *prefix, GSList *compl_cat, |
e2c084204583
Add (optional) suffix after nick completion in Multi-User Chats
Mikael Berthe <mikael@lilotux.net>
parents:
1668
diff
changeset
|
41 const gchar *suffix); |
98 | 42 void done_completion(void); |
43 guint cancel_completion(void); | |
94 | 44 const char *complete(void); |
45 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1607
diff
changeset
|
46 #endif /* __MCABBER_COMPL_H__ */ |
576 | 47 |
580 | 48 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |