mcabber/mcabber/compl.h
changeset 1922 4ba68ad737bc
parent 1811 e6d355e50d7a
child 1923 924f4552996c
equal deleted inserted replaced
1921:7d72b7d2d93a 1922:4ba68ad737bc
     3 
     3 
     4 #include <glib.h>
     4 #include <glib.h>
     5 
     5 
     6 #include <mcabber/config.h>
     6 #include <mcabber/config.h>
     7 
     7 
     8 #define COMPL_CMD         (1U<<0)
     8 #define COMPL_CMD         1
     9 #define COMPL_JID         (1U<<1)
     9 #define COMPL_JID         2
    10 #define COMPL_URLJID      (1U<<2)   // Not implemented yet
    10 #define COMPL_URLJID      3   // Not implemented yet
    11 #define COMPL_NAME        (1U<<3)   // Not implemented yet
    11 #define COMPL_NAME        4   // Not implemented yet
    12 #define COMPL_STATUS      (1U<<4)
    12 #define COMPL_STATUS      5
    13 #define COMPL_FILENAME    (1U<<5)   // Not implemented yet
    13 #define COMPL_FILENAME    6   // Not implemented yet
    14 #define COMPL_ROSTER      (1U<<6)
    14 #define COMPL_ROSTER      7
    15 #define COMPL_BUFFER      (1U<<7)
    15 #define COMPL_BUFFER      8
    16 #define COMPL_GROUP       (1U<<8)
    16 #define COMPL_GROUP       9
    17 #define COMPL_GROUPNAME   (1U<<9)
    17 #define COMPL_GROUPNAME   10
    18 #define COMPL_MULTILINE   (1U<<10)
    18 #define COMPL_MULTILINE   11
    19 #define COMPL_ROOM        (1U<<11)
    19 #define COMPL_ROOM        12
    20 #define COMPL_RESOURCE    (1U<<12)
    20 #define COMPL_RESOURCE    13
    21 #define COMPL_AUTH        (1U<<13)
    21 #define COMPL_AUTH        14
    22 #define COMPL_REQUEST     (1U<<14)
    22 #define COMPL_REQUEST     15
    23 #define COMPL_EVENTS      (1U<<15)
    23 #define COMPL_EVENTS      16
    24 #define COMPL_EVENTSID    (1U<<16)
    24 #define COMPL_EVENTSID    17
    25 #define COMPL_PGP         (1U<<17)
    25 #define COMPL_PGP         18
    26 #define COMPL_COLOR       (1U<<18)
    26 #define COMPL_COLOR       19
    27 #define COMPL_OTR         (1U<<19)
    27 #define COMPL_OTR         20
    28 #define COMPL_OTRPOLICY   (1U<<20)
    28 #define COMPL_OTRPOLICY   21
       
    29 
    29 #ifdef MODULES_ENABLE
    30 #ifdef MODULES_ENABLE
    30 #define COMPL_MAX_BUILTIN (1U<<20)
    31 void  compl_init_system(void);
    31 
    32 guint compl_new_category(void);
    32 guint compl_new_category (void);
    33 void  compl_del_category(guint id);
    33 void  compl_del_category (guint id);
       
    34 #endif
    34 #endif
    35 
    35 
    36 void    compl_add_category_word(guint, const gchar *command);
    36 void    compl_add_category_word(guint categ, const gchar *command);
    37 void    compl_del_category_word(guint categ, const gchar *word);
    37 void    compl_del_category_word(guint categ, const gchar *word);
    38 GSList *compl_get_category_list(guint cat_flags, guint *dynlist);
    38 GSList *compl_get_category_list(guint categ, guint *dynlist);
    39 
    39 
    40 guint   new_completion(const gchar *prefix, GSList *compl_cat,
    40 guint   new_completion(const gchar *prefix, GSList *compl_cat,
    41                        const gchar *suffix);
    41                        const gchar *suffix);
    42 void    done_completion(void);
    42 void    done_completion(void);
    43 guint   cancel_completion(void);
    43 guint   cancel_completion(void);