]> git.0d.be Git - empathy.git/commitdiff
upgrade Python bindings
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 20 Aug 2009 15:17:21 +0000 (16:17 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 20 Aug 2009 15:17:21 +0000 (16:17 +0100)
python/pyempathy/pyempathy.defs
python/pyempathygtk/pyempathygtk.defs

index 6b6f7dfd32fe9dc08ce73ee267029c3ca61e19f5..488f5b3ac8246a4cd3d17549bf309cf706d9904b 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")
 (define-flags DebugFlags
   (in-module "Empathy")
   (c-name "EmpathyDebugFlags")
     '("ft" "EMPATHY_DEBUG_FT")
     '("location" "EMPATHY_DEBUG_LOCATION")
     '("other" "EMPATHY_DEBUG_OTHER")
     '("ft" "EMPATHY_DEBUG_FT")
     '("location" "EMPATHY_DEBUG_LOCATION")
     '("other" "EMPATHY_DEBUG_OTHER")
+    '("share-desktop" "EMPATHY_DEBUG_SHARE_DESKTOP")
+    '("connectivity" "EMPATHY_DEBUG_CONNECTIVITY")
   )
 )
 
   )
 )
 
   (return-type "gboolean")
 )
 
   (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")
 (define-method can_send_files
   (of-object "EmpathyContact")
   (c-name "empathy_contact_can_send_files")
   (return-type "EmpathyContactMonitor*")
 )
 
   (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
 
 
 ;; From empathy-contact-manager.h
   (return-type "GType")
 )
 
   (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-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")
   (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")
   )
   (parameters
     '("TpConnection*" "connection")
   )
   )
 )
 
   )
 )
 
-(define-method get_use_nm
-  (of-object "EmpathyIdle")
-  (c-name "empathy_idle_get_use_nm")
-  (return-type "gboolean")
-)
-
-(define-method set_use_nm
-  (of-object "EmpathyIdle")
-  (c-name "empathy_idle_set_use_nm")
-  (return-type "none")
-  (parameters
-    '("gboolean" "use_nm")
-  )
-)
-
 
 
 ;; From empathy-irc-network.h
 
 
 ;; From empathy-irc-network.h
   )
 )
 
   )
 )
 
+(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-method should_highlight
   (of-object "EmpathyMessage")
   (c-name "empathy_message_should_highlight")
index 377eea43ad84c4c23bd97866b2e5f692225c3b52..d4601b211540abc7e1d308187a6439508bd11e3a 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")
     '("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")
   )
 )
     '("count" "EMPATHY_CONTACT_LIST_STORE_COL_COUNT")
   )
 )
   )
 )
 
   )
 )
 
-(define-enum Sound
-  (in-module "Empathy")
-  (c-name "EmpathySound")
-  (gtype-id "EMPATHY_TYPE_SOUND")
-  (values
-    '("empathy-sound-message-incoming" "EMPATHY_SOUND_MESSAGE_INCOMING")
-    '("empathy-sound-message-outgoing" "EMPATHY_SOUND_MESSAGE_OUTGOING")
-    '("empathy-sound-conversation-new" "EMPATHY_SOUND_CONVERSATION_NEW")
-    '("empathy-sound-contact-connected" "EMPATHY_SOUND_CONTACT_CONNECTED")
-    '("empathy-sound-contact-disconnected" "EMPATHY_SOUND_CONTACT_DISCONNECTED")
-    '("empathy-sound-account-connected" "EMPATHY_SOUND_ACCOUNT_CONNECTED")
-    '("empathy-sound-account-disconnected" "EMPATHY_SOUND_ACCOUNT_DISCONNECTED")
-    '("empathy-sound-phone-incoming" "EMPATHY_SOUND_PHONE_INCOMING")
-    '("empathy-sound-phone-outgoing" "EMPATHY_SOUND_PHONE_OUTGOING")
-    '("empathy-sound-phone-hangup" "EMPATHY_SOUND_PHONE_HANGUP")
-    '("last-empathy-sound" "LAST_EMPATHY_SOUND")
-  )
-)
-
 
 ;; From empathy-account-chooser.h
 
 
 ;; From empathy-account-chooser.h
 
   )
 )
 
   )
 )
 
+(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
 
 
 ;; From empathy-contact-list-store.h
   (return-type "EmpathyContact*")
 )
 
   (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 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")
 (define-method chat_menu_item_new
   (of-object "EmpathyContact")
   (c-name "empathy_contact_chat_menu_item_new")
   (return-type "GtkWidget*")
 )
 
   (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
 
 
 ;; From empathy-contact-selector.h
   (return-type "const-gchar**")
 )
 
   (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")
 (define-method create_view
   (of-object "EmpathyThemeManager")
   (c-name "empathy_theme_manager_create_view")
   )
 )
 
   )
 )
 
-(define-function sound_play
-  (c-name "empathy_sound_play")
-  (return-type "none")
-  (parameters
-    '("GtkWidget*" "widget")
-    '("EmpathySound" "sound_id")
-  )
-)
-
-(define-function sound_play_full
-  (c-name "empathy_sound_play_full")
-  (return-type "gboolean")
+(define-function make_absolute_url
+  (c-name "empathy_make_absolute_url")
+  (return-type "gchar*")
   (parameters
   (parameters
-    '("GtkWidget*" "widget")
-    '("EmpathySound" "sound_id")
-    '("ca_finish_callback_t" "callback")
-    '("gpointer" "user_data")
+    '("const-gchar*" "url")
   )
 )
 
   )
 )
 
-(define-method stop
-  (of-object "EmpathySound")
-  (c-name "empathy_sound_stop")
-  (return-type "none")
-)
-