From c649cba9b0f9927ff6230b3f8749445ca838abb7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 9 Jan 2009 16:16:27 +0000 Subject: Update pyhton binding svn path=/trunk/; revision=2207 --- python/pyempathy/pyempathy.defs | 156 +++++++++++++++++++++++++++++++++++++++- python/update-binding.sh | 3 + 2 files changed, 157 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index fba78f3f0..68d650866 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -49,6 +49,20 @@ (gtype-id "EMPATHY_TYPE_CONTACT_MANAGER") ) +(define-object ContactMonitor + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyContactMonitor") + (gtype-id "EMPATHY_TYPE_CONTACT_MONITOR") +) + +(define-object DispatchOperation + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyDispatchOperation") + (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION") +) + (define-object Dispatcher (in-module "Empathy") (parent "GObject") @@ -206,6 +220,20 @@ ) ) +(define-enum DispatchOperationState + (in-module "Empathy") + (c-name "EmpathyDispatchOperationState") + (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION_STATE") + (values + '("preparing" "EMPATHY_DISPATCHER_OPERATION_STATE_PREPARING") + '("pending" "EMPATHY_DISPATCHER_OPERATION_STATE_PENDING") + '("approving" "EMPATHY_DISPATCHER_OPERATION_STATE_APPROVING") + '("dispatching" "EMPATHY_DISPATCHER_OPERATION_STATE_DISPATCHING") + '("claimed" "EMPATHY_DISPATCHER_OPERATION_STATE_CLAIMED") + '("invalidated" "EMPATHY_DISPATCHER_OPERATION_STATE_INVALIDATED") + ) +) + (define-enum TpCallStatus (in-module "Empathy") (c-name "EmpathyTpCallStatus") @@ -976,6 +1004,32 @@ +;; From empathy-contact-monitor.h + +(define-function contact_monitor_get_type + (c-name "empathy_contact_monitor_get_type") + (return-type "GType") +) + +(define-method set_iface + (of-object "EmpathyContactMonitor") + (c-name "empathy_contact_monitor_set_iface") + (return-type "none") + (parameters + '("EmpathyContactList*" "iface") + ) +) + +(define-function contact_monitor_new_for_iface + (c-name "empathy_contact_monitor_new_for_iface") + (return-type "EmpathyContactMonitor*") + (parameters + '("EmpathyContactList*" "iface") + ) +) + + + ;; From empathy-debug.h (define-function debug_flag_is_set @@ -1074,11 +1128,105 @@ (return-type "EmpathyDispatcher*") ) -(define-function dispatcher_tube_get_type - (c-name "empathy_dispatcher_tube_get_type") + + +;; From empathy-dispatch-operation.h + +(define-function dispatch_operation_get_type + (c-name "empathy_dispatch_operation_get_type") (return-type "GType") ) +(define-function dispatch_operation_new + (c-name "empathy_dispatch_operation_new") + (is-constructor-of "EmpathyDispatchOperation") + (return-type "EmpathyDispatchOperation*") + (parameters + '("TpConnection*" "connection") + '("TpChannel*" "channel") + '("EmpathyContact*" "contact") + '("gboolean" "incoming") + ) +) + +(define-function dispatch_operation_new_with_wrapper + (c-name "empathy_dispatch_operation_new_with_wrapper") + (return-type "EmpathyDispatchOperation*") + (parameters + '("TpConnection*" "connection") + '("TpChannel*" "channel") + '("EmpathyContact*" "contact") + '("gboolean" "incoming") + '("GObject*" "channel_wrapper") + ) +) + +(define-method start + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_start") + (return-type "none") +) + +(define-method approve + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_approve") + (return-type "none") +) + +(define-method claim + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_claim") + (return-type "gboolean") +) + +(define-method get_channel + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_channel") + (return-type "TpChannel*") +) + +(define-method get_channel_wrapper + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_channel_wrapper") + (return-type "GObject*") +) + +(define-method get_tp_connection + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_tp_connection") + (return-type "TpConnection*") +) + +(define-method get_channel_type + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_channel_type") + (return-type "const-gchar*") +) + +(define-method get_channel_type_id + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_channel_type_id") + (return-type "GQuark") +) + +(define-method get_object_path + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_object_path") + (return-type "const-gchar*") +) + +(define-method get_status + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_get_status") + (return-type "EmpathyDispatchOperationState") +) + +(define-method is_incoming + (of-object "EmpathyDispatchOperation") + (c-name "empathy_dispatch_operation_is_incoming") + (return-type "gboolean") +) + ;; From empathy-idle.h @@ -2370,6 +2518,10 @@ +;; From empathy-types.h + + + ;; From empathy-utils.h (define-function init diff --git a/python/update-binding.sh b/python/update-binding.sh index 3d19d9b28..23a9685c7 100755 --- a/python/update-binding.sh +++ b/python/update-binding.sh @@ -13,8 +13,10 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \ empathy-contact-groups.h \ empathy-contact-list.h \ empathy-contact-manager.h \ + empathy-contact-monitor.h \ empathy-debug.h \ empathy-dispatcher.h \ + empathy-dispatch-operation.h \ empathy-idle.h \ empathy-irc-network.h \ empathy-irc-network-manager.h \ @@ -32,6 +34,7 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \ empathy-tp-roomlist.h \ empathy-tp-tube.h \ empathy-tube-handler.h \ + empathy-types.h \ empathy-utils.h \ > ../python/pyempathy/pyempathy.defs -- cgit v1.2.3