empathy r2207 - in trunk/python: . pyempathy



Author: xclaesse
Date: Fri Jan  9 16:16:27 2009
New Revision: 2207
URL: http://svn.gnome.org/viewvc/empathy?rev=2207&view=rev

Log:
Update pyhton binding

Modified:
   trunk/python/pyempathy/pyempathy.defs
   trunk/python/update-binding.sh

Modified: trunk/python/pyempathy/pyempathy.defs
==============================================================================
--- trunk/python/pyempathy/pyempathy.defs	(original)
+++ trunk/python/pyempathy/pyempathy.defs	Fri Jan  9 16:16:27 2009
@@ -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

Modified: trunk/python/update-binding.sh
==============================================================================
--- trunk/python/update-binding.sh	(original)
+++ trunk/python/update-binding.sh	Fri Jan  9 16:16:27 2009
@@ -13,8 +13,10 @@
 	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 @@
 	empathy-tp-roomlist.h			\
 	empathy-tp-tube.h			\
 	empathy-tube-handler.h			\
+	empathy-types.h				\
 	empathy-utils.h				\
  > ../python/pyempathy/pyempathy.defs
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]