Added various account parameters.
[python-purple] / request_cbs.pxd
index 9c7c960..2c7b7ba 100644 (file)
@@ -26,89 +26,85 @@ cdef extern from *:
 
 request_cbs = {}
 
-cdef void *request_input (const_char *title, const_char *primary,
-                          const_char *secondary, const_char *default_value,
-                          glib.gboolean multiline, glib.gboolean masked,
-                          glib.gchar *hint, const_char *ok_text,
-                          glib.GCallback ok_cb, const_char *cancel_text,
-                          glib.GCallback cancel_cb,
-                          account.PurpleAccount *account, const_char *who,
-                          conversation.PurpleConversation *conv,
-                          void *user_data):
+cdef void *request_input(const_char *title, const_char *primary, \
+        const_char *secondary, const_char *default_value, \
+        glib.gboolean multiline, glib.gboolean masked, glib.gchar *hint, \
+        const_char *ok_text, glib.GCallback ok_cb, const_char *cancel_text, \
+        glib.GCallback cancel_cb, \
+        account.PurpleAccount *account, const_char *who, \
+        conversation.PurpleConversation *conv, void *user_data):
+    """
+    @see purple_request_input().
+    """
     debug.c_purple_debug_info("request", "%s", "request-input\n")
-    try:
-        (<object>request_cbs["request-input"])("request-input: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-input"):
+        (<object> request_cbs["request-input"])("request-input: TODO")
 
-cdef void *request_choice (const_char *title, const_char *primary,
-                           const_char *secondary, int default_value,
-                           const_char *ok_text, glib.GCallback ok_cb,
-                           const_char *cancel_text,
-                           glib.GCallback cancel_cb,
-                           account.PurpleAccount *account, const_char *who,
-                           conversation.PurpleConversation *conv,
-                           void *user_data, va_list choices):
+cdef void *request_choice(const_char *title, const_char *primary, \
+        const_char *secondary, int default_value, const_char *ok_text, \
+        glib.GCallback ok_cb, const_char *cancel_text, \
+        glib.GCallback cancel_cb, account.PurpleAccount *account, \
+        const_char *who, conversation.PurpleConversation *conv, \
+        void *user_data, va_list choices):
+    """
+    @see purple_request_choice_varg().
+    """
     debug.c_purple_debug_info("request", "%s", "request-choice\n")
-    try:
-        (<object>request_cbs["request-choice"])("request-choice: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-choice"):
+        (<object> request_cbs["request-choice"])("request-choice: TODO")
 
-cdef void *request_action (const_char *title, const_char *primary,
-                           const_char *secondary, int default_action,
-                           account.PurpleAccount *account, const_char *who,
-                           conversation.PurpleConversation *conv,
-                           void *user_data, size_t action_count,
-                           va_list actions):
+cdef void *request_action(const_char *title, const_char *primary, \
+        const_char *secondary, int default_action, \
+        account.PurpleAccount *account, const_char *who, \
+        conversation.PurpleConversation *conv, void *user_data, \
+        size_t action_count, va_list actions):
+    """
+    @see purple_request_action_varg().
+    """
     debug.c_purple_debug_info("request", "%s", "request-action\n")
-    try:
-        (<object>request_cbs["request-action"])("request-action: TODo")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-action"):
+        (<object> request_cbs["request-action"])("request-action: TODo")
 
-cdef void *request_fields (const_char *title, const_char *primary,
-                           const_char *secondary,
-                           request.PurpleRequestFields *fields,
-                           const_char *ok_text, glib.GCallback ok_cb,
-                           const_char *cancel_text, glib.GCallback cancel_cb,
-                           account.PurpleAccount *account, const_char *who,
-                           conversation.PurpleConversation *conv,
-                           void *user_data):
+cdef void *request_fields(const_char *title, const_char *primary, \
+        const_char *secondary, request.PurpleRequestFields *fields, \
+        const_char *ok_text, glib.GCallback ok_cb, const_char *cancel_text, \
+        glib.GCallback cancel_cb, account.PurpleAccount *account, \
+        const_char *who, conversation.PurpleConversation *conv, \
+        void *user_data):
+    """
+    @see purple_request_fields().
+    """
     debug.c_purple_debug_info("request", "%s", "request-fields\n")
-    try:
-        (<object>request_cbs["request-fields"])("request-fields: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-fields"):
+        (<object> request_cbs["request-fields"])("request-fields: TODO")
 
-cdef void *request_file (const_char *title, const_char *filename,
-                         glib.gboolean savedialog, glib.GCallback ok_cb,
-                         glib.GCallback cancel_cb,
-                         account.PurpleAccount *account, const_char *who,
-                         conversation.PurpleConversation *conv,
-                         void *user_data):
+cdef void *request_file(const_char *title, const_char *filename, \
+        glib.gboolean savedialog, glib.GCallback ok_cb, \
+        glib.GCallback cancel_cb, account.PurpleAccount *account, \
+        const_char *who, conversation.PurpleConversation *conv, \
+        void *user_data):
+    """
+    @see purple_request_file().
+    """
     debug.c_purple_debug_info("request", "%s", "request-file\n")
-    try:
-        (<object>request_cbs["request-file"])("request-file: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-file"):
+        (<object> request_cbs["request-file"])("request-file: TODO")
 
-cdef void close_request (request.PurpleRequestType type, void *ui_handle):
+cdef void close_request(request.PurpleRequestType type, void *ui_handle):
+    """
+    TODO
+    """
     debug.c_purple_debug_info("request", "%s", "close-request\n")
-    try:
-        (<object>request_cbs["close-request"])("close-request: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("close-request"):
+        (<object> request_cbs["close-request"])("close-request: TODO")
 
-cdef void *request_folder (const_char *title, const_char *dirname,
-                           glib.GCallback ok_cb,
-                           glib.GCallback cancel_cb,
-                           account.PurpleAccount *account,
-                           const_char *who,
-                           conversation.PurpleConversation *conv,
-                           void *user_data):
+cdef void *request_folder(const_char *title, const_char *dirname, \
+        glib.GCallback ok_cb, glib.GCallback cancel_cb, \
+        account.PurpleAccount *account, const_char *who, \
+        conversation.PurpleConversation *conv, void *user_data):
+    """
+    @see purple_request_folder().
+    """
     debug.c_purple_debug_info("request", "%s", "request-folder\n")
-    try:
-        (<object>request_cbs["request-folder"])("request-folder: TODO")
-    except KeyError:
-        pass
+    if request_cbs.has_key("request-folder"):
+        (<object> request_cbs["request-folder"])("request-folder: TODO")