]> git.0d.be Git - empathy.git/commitdiff
Update python bindings
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 29 Jul 2009 18:38:38 +0000 (20:38 +0200)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 29 Jul 2009 18:38:38 +0000 (20:38 +0200)
python/pyempathy/pyempathy.defs
python/pyempathygtk/pyempathygtk.defs

index 003564bc57ba80732d4202aecde6873fe042804f..2b871925470d26fca152b5ebd76d5c8998061fd4 100644 (file)
   )
 )
 
+(define-flags ContactListFlags
+  (in-module "Empathy")
+  (c-name "EmpathyContactListFlags")
+  (gtype-id "EMPATHY_TYPE_CONTACT_LIST_FLAGS")
+  (values
+    '("add" "EMPATHY_CONTACT_LIST_CAN_ADD")
+    '("remove" "EMPATHY_CONTACT_LIST_CAN_REMOVE")
+    '("alias" "EMPATHY_CONTACT_LIST_CAN_ALIAS")
+    '("group" "EMPATHY_CONTACT_LIST_CAN_GROUP")
+  )
+)
+
 (define-flags DebugFlags
   (in-module "Empathy")
   (c-name "EmpathyDebugFlags")
     '("ft" "EMPATHY_DEBUG_FT")
     '("location" "EMPATHY_DEBUG_LOCATION")
     '("other" "EMPATHY_DEBUG_OTHER")
+    '("share-desktop" "EMPATHY_DEBUG_SHARE_DESKTOP")
   )
 )
 
   (return-type "EmpathyAccountManager*")
 )
 
-(define-method create
-  (of-object "EmpathyAccountManager")
-  (c-name "empathy_account_manager_create")
-  (return-type "EmpathyAccount*")
-  (parameters
-    '("const-gchar*" "connection_manager")
-    '("const-gchar*" "protocol")
-    '("const-gchar*" "display_name")
-  )
-)
-
-(define-method create_by_profile
+(define-method is_ready
   (of-object "EmpathyAccountManager")
-  (c-name "empathy_account_manager_create_by_profile")
-  (return-type "EmpathyAccount*")
-  (parameters
-    '("McProfile*" "profile")
-  )
+  (c-name "empathy_account_manager_is_ready")
+  (return-type "gboolean")
 )
 
 (define-method get_connected_accounts
   )
 )
 
+(define-method request_global_presence
+  (of-object "EmpathyAccountManager")
+  (c-name "empathy_account_manager_request_global_presence")
+  (return-type "none")
+  (parameters
+    '("TpConnectionPresenceType" "type")
+    '("const-gchar*" "status")
+    '("const-gchar*" "message")
+  )
+)
+
+(define-method get_global_presence
+  (of-object "EmpathyAccountManager")
+  (c-name "empathy_account_manager_get_global_presence")
+  (return-type "TpConnectionPresenceType")
+  (parameters
+    '("gchar**" "status")
+    '("gchar**" "message")
+  )
+)
+
+(define-method create_account_async
+  (of-object "EmpathyAccountManager")
+  (c-name "empathy_account_manager_create_account_async")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "connection_manager")
+    '("const-gchar*" "protocol")
+    '("const-gchar*" "display_name")
+    '("GHashTable*" "parameters")
+    '("GHashTable*" "properties")
+    '("GAsyncReadyCallback" "callback")
+    '("gpointer" "user_data")
+  )
+)
+
+(define-method create_account_finish
+  (of-object "EmpathyAccountManager")
+  (c-name "empathy_account_manager_create_account_finish")
+  (return-type "EmpathyAccount*")
+  (parameters
+    '("GAsyncResult*" "result")
+    '("GError**" "error")
+  )
+)
+
 
 
 ;; From empathy-chatroom.h
   (return-type "gboolean")
 )
 
+(define-method can_voip_audio
+  (of-object "EmpathyContact")
+  (c-name "empathy_contact_can_voip_audio")
+  (return-type "gboolean")
+)
+
+(define-method can_voip_video
+  (of-object "EmpathyContact")
+  (c-name "empathy_contact_can_voip_video")
+  (return-type "gboolean")
+)
+
 (define-method can_send_files
   (of-object "EmpathyContact")
   (c-name "empathy_contact_can_send_files")
   (return-type "EmpathyContactMonitor*")
 )
 
+(define-method get_flags
+  (of-object "EmpathyContactList")
+  (c-name "empathy_contact_list_get_flags")
+  (return-type "EmpathyContactListFlags")
+)
+
 
 
 ;; From empathy-contact-manager.h
   (return-type "GType")
 )
 
+(define-function contact_manager_initialized
+  (c-name "empathy_contact_manager_initialized")
+  (return-type "gboolean")
+)
+
 (define-function contact_manager_dup_singleton
   (c-name "empathy_contact_manager_dup_singleton")
   (return-type "EmpathyContactManager*")
   )
 )
 
-(define-method can_add
+(define-method get_flags_for_connection
   (of-object "EmpathyContactManager")
-  (c-name "empathy_contact_manager_can_add")
-  (return-type "gboolean")
+  (c-name "empathy_contact_manager_get_flags_for_connection")
+  (return-type "EmpathyContactListFlags")
   (parameters
     '("TpConnection*" "connection")
   )
   )
 )
 
+(define-method is_backlog
+  (of-object "EmpathyMessage")
+  (c-name "empathy_message_is_backlog")
+  (return-type "gboolean")
+)
+
+(define-method set_is_backlog
+  (of-object "EmpathyMessage")
+  (c-name "empathy_message_set_is_backlog")
+  (return-type "none")
+  (parameters
+    '("gboolean" "is_backlog")
+  )
+)
+
 (define-method should_highlight
   (of-object "EmpathyMessage")
   (c-name "empathy_message_should_highlight")
   )
 )
 
-(define-function account_hash
-  (c-name "empathy_account_hash")
-  (return-type "guint")
-  (parameters
-    '("gconstpointer" "key")
-  )
-)
-
-(define-function account_equal
-  (c-name "empathy_account_equal")
-  (return-type "gboolean")
-  (parameters
-    '("gconstpointer" "a")
-    '("gconstpointer" "b")
-  )
-)
-
-(define-function mission_control_dup_singleton
-  (c-name "empathy_mission_control_dup_singleton")
-  (return-type "MissionControl*")
-)
-
 (define-function presence_get_default_message
   (c-name "empathy_presence_get_default_message")
   (return-type "const-gchar*")
   )
 )
 
+(define-function protocol_icon_name
+  (c-name "empathy_protocol_icon_name")
+  (return-type "gchar*")
+  (parameters
+    '("const-gchar*" "protocol")
+  )
+)
+
+(define-function type_dbus_ao
+  (c-name "empathy_type_dbus_ao")
+  (return-type "GType")
+)
+
 
index 1eb50c30fcd5eb4127be0671b8c7c4bab72578d4..5b23def9a0bbf00c51497da865bdc946096e0e47 100644 (file)
     '("is-separator" "EMPATHY_CONTACT_LIST_STORE_COL_IS_SEPARATOR")
     '("can-audio-call" "EMPATHY_CONTACT_LIST_STORE_COL_CAN_AUDIO_CALL")
     '("can-video-call" "EMPATHY_CONTACT_LIST_STORE_COL_CAN_VIDEO_CALL")
+    '("flags" "EMPATHY_CONTACT_LIST_STORE_COL_FLAGS")
     '("count" "EMPATHY_CONTACT_LIST_STORE_COL_COUNT")
   )
 )
 
 ;; From empathy-account-widget.h
 
-(define-method widget_handle_params
-  (of-object "EmpathyAccount")
+(define-function account_widget_handle_params
   (c-name "empathy_account_widget_handle_params")
   (return-type "none")
   (parameters
+    '("EmpathyAccountSettings*" "settings")
     '("GtkBuilder*" "gui")
     '("const-gchar*" "first_widget")
   )
   (varargs #t)
 )
 
-(define-method widget_add_forget_button
-  (of-object "EmpathyAccount")
+(define-function account_widget_add_forget_button
   (c-name "empathy_account_widget_add_forget_button")
   (return-type "none")
   (parameters
+    '("EmpathyAccountSettings*" "settings")
     '("GtkBuilder*" "gui")
     '("const-gchar*" "button")
     '("const-gchar*" "entry")
   )
 )
 
+(define-function account_widget_add_apply_button
+  (c-name "empathy_account_widget_add_apply_button")
+  (return-type "none")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+    '("GtkWidget*" "vbox")
+  )
+)
+
 (define-function account_widget_set_default_focus
   (c-name "empathy_account_widget_set_default_focus")
   (return-type "none")
   )
 )
 
-(define-method widget_generic_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_generic_new
   (c-name "empathy_account_widget_generic_new")
+  (is-constructor-of "EmpathyAccountWidgetGeneric")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_salut_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_salut_new
   (c-name "empathy_account_widget_salut_new")
+  (is-constructor-of "EmpathyAccountWidgetSalut")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_msn_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_msn_new
   (c-name "empathy_account_widget_msn_new")
+  (is-constructor-of "EmpathyAccountWidgetMsn")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_jabber_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_jabber_new
   (c-name "empathy_account_widget_jabber_new")
+  (is-constructor-of "EmpathyAccountWidgetJabber")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_icq_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_icq_new
   (c-name "empathy_account_widget_icq_new")
+  (is-constructor-of "EmpathyAccountWidgetIcq")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_aim_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_aim_new
   (c-name "empathy_account_widget_aim_new")
+  (is-constructor-of "EmpathyAccountWidgetAim")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_yahoo_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_yahoo_new
   (c-name "empathy_account_widget_yahoo_new")
+  (is-constructor-of "EmpathyAccountWidgetYahoo")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
-(define-method widget_groupwise_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_groupwise_new
   (c-name "empathy_account_widget_groupwise_new")
+  (is-constructor-of "EmpathyAccountWidgetGroupwise")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
 
 
 ;; From empathy-account-widget-irc.h
 
-(define-method widget_irc_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_irc_new
   (c-name "empathy_account_widget_irc_new")
+  (is-constructor-of "EmpathyAccountWidgetIrc")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
 
 
 ;; From empathy-account-widget-sip.h
 
-(define-method widget_sip_new
-  (of-object "EmpathyAccount")
+(define-function account_widget_sip_new
   (c-name "empathy_account_widget_sip_new")
+  (is-constructor-of "EmpathyAccountWidgetSip")
   (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyAccountSettings*" "settings")
+  )
 )
 
 
   )
 )
 
+(define-function new_contact_dialog_show_with_contact
+  (c-name "empathy_new_contact_dialog_show_with_contact")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("EmpathyContact*" "contact")
+  )
+)
+
 
 
 ;; From empathy-contact-list-store.h
   (return-type "EmpathyContact*")
 )
 
+(define-method get_flags
+  (of-object "EmpathyContactListView")
+  (c-name "empathy_contact_list_view_get_flags")
+  (return-type "EmpathyContactListFlags")
+)
+
 (define-method get_selected_group
   (of-object "EmpathyContactListView")
   (c-name "empathy_contact_list_view_get_selected_group")
   )
 )
 
+(define-method add_menu_item_new
+  (of-object "EmpathyContact")
+  (c-name "empathy_contact_add_menu_item_new")
+  (return-type "GtkWidget*")
+)
+
 (define-method chat_menu_item_new
   (of-object "EmpathyContact")
   (c-name "empathy_contact_chat_menu_item_new")
   (return-type "GtkWidget*")
 )
 
+(define-method share_my_desktop_menu_item_new
+  (of-object "EmpathyContact")
+  (c-name "empathy_contact_share_my_desktop_menu_item_new")
+  (return-type "GtkWidget*")
+)
+
 
 
 ;; From empathy-contact-selector.h
   (return-type "const-gchar**")
 )
 
+(define-function theme_manager_get_adium_themes
+  (c-name "empathy_theme_manager_get_adium_themes")
+  (return-type "GList*")
+)
+
 (define-method create_view
   (of-object "EmpathyThemeManager")
   (c-name "empathy_theme_manager_create_view")