2 # Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
4 # This file is part of python-purple.
6 # python-purple is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # python-purple is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 ctypedef char const_char "const char"
25 ctypedef void* va_list
29 cdef void *request_input (const_char *title, const_char *primary,
30 const_char *secondary, const_char *default_value,
31 glib.gboolean multiline, glib.gboolean masked,
32 glib.gchar *hint, const_char *ok_text,
33 glib.GCallback ok_cb, const_char *cancel_text,
34 glib.GCallback cancel_cb,
35 account.PurpleAccount *account, const_char *who,
36 conversation.PurpleConversation *conv,
38 debug.c_purple_debug_info("request", "%s", "request-input\n")
40 (<object>request_cbs["request-input"])("request-input: TODO")
44 cdef void *request_choice (const_char *title, const_char *primary,
45 const_char *secondary, int default_value,
46 const_char *ok_text, glib.GCallback ok_cb,
47 const_char *cancel_text,
48 glib.GCallback cancel_cb,
49 account.PurpleAccount *account, const_char *who,
50 conversation.PurpleConversation *conv,
51 void *user_data, va_list choices):
52 debug.c_purple_debug_info("request", "%s", "request-choice\n")
54 (<object>request_cbs["request-choice"])("request-choice: TODO")
58 cdef void *request_action (const_char *title, const_char *primary,
59 const_char *secondary, int default_action,
60 account.PurpleAccount *account, const_char *who,
61 conversation.PurpleConversation *conv,
62 void *user_data, size_t action_count,
64 debug.c_purple_debug_info("request", "%s", "request-action\n")
66 (<object>request_cbs["request-action"])("request-action: TODo")
70 cdef void *request_fields (const_char *title, const_char *primary,
71 const_char *secondary,
72 request.PurpleRequestFields *fields,
73 const_char *ok_text, glib.GCallback ok_cb,
74 const_char *cancel_text, glib.GCallback cancel_cb,
75 account.PurpleAccount *account, const_char *who,
76 conversation.PurpleConversation *conv,
78 debug.c_purple_debug_info("request", "%s", "request-fields\n")
80 (<object>request_cbs["request-fields"])("request-fields: TODO")
84 cdef void *request_file (const_char *title, const_char *filename,
85 glib.gboolean savedialog, glib.GCallback ok_cb,
86 glib.GCallback cancel_cb,
87 account.PurpleAccount *account, const_char *who,
88 conversation.PurpleConversation *conv,
90 debug.c_purple_debug_info("request", "%s", "request-file\n")
92 (<object>request_cbs["request-file"])("request-file: TODO")
96 cdef void close_request (request.PurpleRequestType type, void *ui_handle):
97 debug.c_purple_debug_info("request", "%s", "close-request\n")
99 (<object>request_cbs["close-request"])("close-request: TODO")
103 cdef void *request_folder (const_char *title, const_char *dirname,
104 glib.GCallback ok_cb,
105 glib.GCallback cancel_cb,
106 account.PurpleAccount *account,
108 conversation.PurpleConversation *conv,
110 debug.c_purple_debug_info("request", "%s", "request-folder\n")
112 (<object>request_cbs["request-folder"])("request-folder: TODO")