aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-16 20:48:27 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-16 20:48:27 +0800
commitba255f08be65af4008555b93cf4f9f07c49b7286 (patch)
tree09628c29f0382dfa567b9f5c74f5e42b4a1556c2 /python/pyempathy
parent302b631948b98ba90a43d59437751a6e9906779f (diff)
downloadgsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar.gz
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar.bz2
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar.lz
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar.xz
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.tar.zst
gsoc2013-empathy-ba255f08be65af4008555b93cf4f9f07c49b7286.zip
Update python binding and add a script to make it more automatic
svn path=/trunk/; revision=799
Diffstat (limited to 'python/pyempathy')
-rw-r--r--python/pyempathy/pyempathy.defs1942
1 files changed, 996 insertions, 946 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 3cdaafcd9..d75155c4c 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -151,15 +151,16 @@
;; Enumerations and flags ...
-(define-flags Capabilities
+(define-enum RegExType
(in-module "Empathy")
- (c-name "EmpathyCapabilities")
- (gtype-id "EMPATHY_TYPE_CAPABILITIES")
+ (c-name "EmpathyRegExType")
+ (gtype-id "EMPATHY_TYPE_REG_EX_TYPE")
(values
- '("none" "EMPATHY_CAPABILITIES_NONE")
- '("audio" "EMPATHY_CAPABILITIES_AUDIO")
- '("video" "EMPATHY_CAPABILITIES_VIDEO")
- '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
+ '("as-is" "EMPATHY_REGEX_AS_IS")
+ '("browser" "EMPATHY_REGEX_BROWSER")
+ '("email" "EMPATHY_REGEX_EMAIL")
+ '("other" "EMPATHY_REGEX_OTHER")
+ '("all" "EMPATHY_REGEX_ALL")
)
)
@@ -176,6 +177,31 @@
)
)
+(define-flags Capabilities
+ (in-module "Empathy")
+ (c-name "EmpathyCapabilities")
+ (gtype-id "EMPATHY_TYPE_CAPABILITIES")
+ (values
+ '("none" "EMPATHY_CAPABILITIES_NONE")
+ '("audio" "EMPATHY_CAPABILITIES_AUDIO")
+ '("video" "EMPATHY_CAPABILITIES_VIDEO")
+ '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
+ )
+)
+
+(define-flags ContactReady
+ (in-module "Empathy")
+ (c-name "EmpathyContactReady")
+ (gtype-id "EMPATHY_TYPE_CONTACT_READY")
+ (values
+ '("none" "EMPATHY_CONTACT_READY_NONE")
+ '("id" "EMPATHY_CONTACT_READY_ID")
+ '("handle" "EMPATHY_CONTACT_READY_HANDLE")
+ '("name" "EMPATHY_CONTACT_READY_NAME")
+ '("all" "EMPATHY_CONTACT_READY_ALL")
+ )
+)
+
(define-enum TpCallStatus
(in-module "Empathy")
(c-name "EmpathyTpCallStatus")
@@ -188,19 +214,6 @@
)
)
-(define-enum RegExType
- (in-module "Empathy")
- (c-name "EmpathyRegExType")
- (gtype-id "EMPATHY_TYPE_REG_EX_TYPE")
- (values
- '("as-is" "EMPATHY_REGEX_AS_IS")
- '("browser" "EMPATHY_REGEX_BROWSER")
- '("email" "EMPATHY_REGEX_EMAIL")
- '("other" "EMPATHY_REGEX_OTHER")
- '("all" "EMPATHY_REGEX_ALL")
- )
-)
-
;; From empathy-avatar.h
@@ -243,122 +256,428 @@
-;; From empathy-chandler.h
+;; From empathy-time.h
-(define-function empathy_chandler_get_type
- (c-name "empathy_chandler_get_type")
- (return-type "GType")
+(define-function empathy_time_get_current
+ (c-name "empathy_time_get_current")
+ (return-type "time_t")
)
-(define-function empathy_chandler_new
- (c-name "empathy_chandler_new")
- (is-constructor-of "EmpathyChandler")
- (return-type "EmpathyChandler*")
+(define-function empathy_time_get_local_time
+ (c-name "empathy_time_get_local_time")
+ (return-type "time_t")
(parameters
- '("const-gchar*" "bus_name")
- '("const-gchar*" "object_path")
+ '("struct-tm*" "tm")
)
)
+(define-function empathy_time_parse
+ (c-name "empathy_time_parse")
+ (return-type "time_t")
+ (parameters
+ '("const-gchar*" "str")
+ )
+)
+(define-function empathy_time_to_string_utc
+ (c-name "empathy_time_to_string_utc")
+ (return-type "gchar*")
+ (parameters
+ '("time_t" "t")
+ '("const-gchar*" "format")
+ )
+)
-;; From empathy-chatroom.h
+(define-function empathy_time_to_string_local
+ (c-name "empathy_time_to_string_local")
+ (return-type "gchar*")
+ (parameters
+ '("time_t" "t")
+ '("const-gchar*" "format")
+ )
+)
-(define-function empathy_chatroom_get_type
- (c-name "empathy_chatroom_get_type")
- (return-type "GType")
+
+
+;; From empathy-status-presets.h
+
+(define-function empathy_status_presets_get_all
+ (c-name "empathy_status_presets_get_all")
+ (return-type "none")
)
-(define-function empathy_chatroom_new
- (c-name "empathy_chatroom_new")
- (is-constructor-of "EmpathyChatroom")
- (return-type "EmpathyChatroom*")
+(define-function empathy_status_presets_get
+ (c-name "empathy_status_presets_get")
+ (return-type "GList*")
+ (parameters
+ '("McPresence" "state")
+ '("gint" "max_number")
+ )
+)
+
+(define-function empathy_status_presets_set_last
+ (c-name "empathy_status_presets_set_last")
+ (return-type "none")
+ (parameters
+ '("McPresence" "state")
+ '("const-gchar*" "status")
+ )
+)
+
+(define-function empathy_status_presets_remove
+ (c-name "empathy_status_presets_remove")
+ (return-type "none")
+ (parameters
+ '("McPresence" "state")
+ '("const-gchar*" "status")
+ )
+)
+
+(define-function empathy_status_presets_reset
+ (c-name "empathy_status_presets_reset")
+ (return-type "none")
+)
+
+(define-function empathy_status_presets_get_default_state
+ (c-name "empathy_status_presets_get_default_state")
+ (return-type "McPresence")
+)
+
+(define-function empathy_status_presets_get_default_status
+ (c-name "empathy_status_presets_get_default_status")
+ (return-type "const-gchar*")
+)
+
+(define-function empathy_status_presets_set_default
+ (c-name "empathy_status_presets_set_default")
+ (return-type "none")
+ (parameters
+ '("McPresence" "state")
+ '("const-gchar*" "status")
+ )
+)
+
+(define-function empathy_status_presets_clear_default
+ (c-name "empathy_status_presets_clear_default")
+ (return-type "none")
+)
+
+
+
+;; From empathy-debug.h
+
+(define-function empathy_debug_impl
+ (c-name "empathy_debug_impl")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "domain")
+ '("const-gchar*" "msg")
+ )
+ (varargs #t)
+)
+
+(define-function empathy_debug_set_log_file_from_env
+ (c-name "empathy_debug_set_log_file_from_env")
+ (return-type "none")
+)
+
+
+
+;; From empathy-utils.h
+
+(define-function empathy_substring
+ (c-name "empathy_substring")
+ (return-type "gchar*")
+ (parameters
+ '("const-gchar*" "str")
+ '("gint" "start")
+ '("gint" "end")
+ )
+)
+
+(define-function empathy_regex_match
+ (c-name "empathy_regex_match")
+ (return-type "gint")
+ (parameters
+ '("EmpathyRegExType" "type")
+ '("const-gchar*" "msg")
+ '("GArray*" "start")
+ '("GArray*" "end")
+ )
+)
+
+(define-function empathy_strcasecmp
+ (c-name "empathy_strcasecmp")
+ (return-type "gint")
+ (parameters
+ '("const-gchar*" "s1")
+ '("const-gchar*" "s2")
+ )
+)
+
+(define-function empathy_strncasecmp
+ (c-name "empathy_strncasecmp")
+ (return-type "gint")
+ (parameters
+ '("const-gchar*" "s1")
+ '("const-gchar*" "s2")
+ '("gsize" "n")
+ )
+)
+
+(define-function empathy_xml_validate
+ (c-name "empathy_xml_validate")
+ (return-type "gboolean")
+ (parameters
+ '("xmlDoc*" "doc")
+ '("const-gchar*" "dtd_filename")
+ )
+)
+
+(define-function empathy_xml_node_get_child
+ (c-name "empathy_xml_node_get_child")
+ (return-type "xmlNodePtr")
+ (parameters
+ '("xmlNodePtr" "node")
+ '("const-gchar*" "child_name")
+ )
+)
+
+(define-function empathy_xml_node_get_child_content
+ (c-name "empathy_xml_node_get_child_content")
+ (return-type "xmlChar*")
+ (parameters
+ '("xmlNodePtr" "node")
+ '("const-gchar*" "child_name")
+ )
+)
+
+(define-function empathy_xml_node_find_child_prop_value
+ (c-name "empathy_xml_node_find_child_prop_value")
+ (return-type "xmlNodePtr")
+ (parameters
+ '("xmlNodePtr" "node")
+ '("const-gchar*" "prop_name")
+ '("const-gchar*" "prop_value")
+ )
+)
+
+(define-function empathy_account_hash
+ (c-name "empathy_account_hash")
+ (return-type "guint")
+ (parameters
+ '("gconstpointer" "key")
+ )
+)
+
+(define-function empathy_account_equal
+ (c-name "empathy_account_equal")
+ (return-type "gboolean")
+ (parameters
+ '("gconstpointer" "a")
+ '("gconstpointer" "b")
+ )
+)
+
+(define-function empathy_mission_control_new
+ (c-name "empathy_mission_control_new")
+ (is-constructor-of "EmpathyMissionControl")
+ (return-type "MissionControl*")
+)
+
+(define-function empathy_inspect_handle
+ (c-name "empathy_inspect_handle")
+ (return-type "gchar*")
(parameters
'("McAccount*" "account")
- '("const-gchar*" "room")
+ '("guint" "handle")
+ '("guint" "handle_type")
)
)
-(define-function empathy_chatroom_new_full
- (c-name "empathy_chatroom_new_full")
- (return-type "EmpathyChatroom*")
+(define-function empathy_inspect_channel
+ (c-name "empathy_inspect_channel")
+ (return-type "gchar*")
(parameters
'("McAccount*" "account")
- '("const-gchar*" "room")
- '("const-gchar*" "name")
- '("gboolean" "auto_connect")
+ '("TpChan*" "tp_chan")
)
)
-(define-method get_account
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_get_account")
- (return-type "McAccount*")
+(define-function empathy_call_with_contact
+ (c-name "empathy_call_with_contact")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
)
-(define-method set_account
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_set_account")
+(define-function empathy_call_with_contact_id
+ (c-name "empathy_call_with_contact_id")
(return-type "none")
(parameters
'("McAccount*" "account")
+ '("const-gchar*" "contact_id")
)
)
-(define-method get_room
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_get_room")
+(define-function empathy_chat_with_contact
+ (c-name "empathy_chat_with_contact")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-function empathy_chat_with_contact_id
+ (c-name "empathy_chat_with_contact_id")
+ (return-type "none")
+ (parameters
+ '("McAccount*" "account")
+ '("const-gchar*" "contact_id")
+ )
+)
+
+(define-function empathy_presence_get_default_message
+ (c-name "empathy_presence_get_default_message")
(return-type "const-gchar*")
+ (parameters
+ '("McPresence" "presence")
+ )
)
-(define-method set_room
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_set_room")
+(define-function empathy_presence_to_str
+ (c-name "empathy_presence_to_str")
+ (return-type "const-gchar*")
+ (parameters
+ '("McPresence" "presence")
+ )
+)
+
+(define-function empathy_presence_from_str
+ (c-name "empathy_presence_from_str")
+ (return-type "McPresence")
+ (parameters
+ '("const-gchar*" "str")
+ )
+)
+
+
+
+;; From empathy-message.h
+
+(define-function empathy_message_get_gtype
+ (c-name "empathy_message_get_gtype")
+ (return-type "GType")
+)
+
+(define-function empathy_message_new
+ (c-name "empathy_message_new")
+ (is-constructor-of "EmpathyMessage")
+ (return-type "EmpathyMessage*")
+ (parameters
+ '("const-gchar*" "body")
+ )
+)
+
+(define-method get_type
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_type")
+ (return-type "EmpathyMessageType")
+)
+
+(define-method set_type
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_type")
(return-type "none")
(parameters
- '("const-gchar*" "room")
+ '("EmpathyMessageType" "type")
)
)
-(define-method get_name
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_get_name")
+(define-method get_sender
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_sender")
+ (return-type "EmpathyContact*")
+)
+
+(define-method set_sender
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_sender")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-method get_receiver
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_receiver")
+ (return-type "EmpathyContact*")
+)
+
+(define-method set_receiver
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_receiver")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-method get_body
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_body")
(return-type "const-gchar*")
)
-(define-method set_name
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_set_name")
+(define-method set_body
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_body")
(return-type "none")
(parameters
- '("const-gchar*" "name")
+ '("const-gchar*" "body")
)
)
-(define-method get_auto_connect
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_get_auto_connect")
- (return-type "gboolean")
+(define-method get_timestamp
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_timestamp")
+ (return-type "time_t")
)
-(define-method set_auto_connect
- (of-object "EmpathyChatroom")
- (c-name "empathy_chatroom_set_auto_connect")
+(define-method set_timestamp
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_timestamp")
(return-type "none")
(parameters
- '("gboolean" "auto_connect")
+ '("time_t" "timestamp")
)
)
-(define-function empathy_chatroom_equal
- (c-name "empathy_chatroom_equal")
- (return-type "gboolean")
+(define-method get_date_and_time
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_get_date_and_time")
+ (return-type "GDate*")
(parameters
- '("gconstpointer" "v1")
- '("gconstpointer" "v2")
+ '("time_t*" "timestamp")
)
)
+(define-function empathy_message_type_from_str
+ (c-name "empathy_message_type_from_str")
+ (return-type "EmpathyMessageType")
+ (parameters
+ '("const-gchar*" "type_str")
+ )
+)
+
+(define-method to_str
+ (of-object "EmpathyMessageType")
+ (c-name "empathy_message_type_to_str")
+ (return-type "const-gchar*")
+)
+
;; From empathy-chatroom-manager.h
@@ -428,103 +747,100 @@
-;; From empathy-contact-factory.h
+;; From empathy-chatroom.h
-(define-function empathy_contact_factory_get_type
- (c-name "empathy_contact_factory_get_type")
+(define-function empathy_chatroom_get_type
+ (c-name "empathy_chatroom_get_type")
(return-type "GType")
)
-(define-function empathy_contact_factory_new
- (c-name "empathy_contact_factory_new")
- (is-constructor-of "EmpathyContactFactory")
- (return-type "EmpathyContactFactory*")
-)
-
-(define-method get_user
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_get_user")
- (return-type "EmpathyContact*")
+(define-function empathy_chatroom_new
+ (c-name "empathy_chatroom_new")
+ (is-constructor-of "EmpathyChatroom")
+ (return-type "EmpathyChatroom*")
(parameters
'("McAccount*" "account")
+ '("const-gchar*" "room")
)
)
-(define-method get_from_id
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_get_from_id")
- (return-type "EmpathyContact*")
+(define-function empathy_chatroom_new_full
+ (c-name "empathy_chatroom_new_full")
+ (return-type "EmpathyChatroom*")
(parameters
'("McAccount*" "account")
- '("const-gchar*" "id")
+ '("const-gchar*" "room")
+ '("const-gchar*" "name")
+ '("gboolean" "auto_connect")
)
)
-(define-method get_from_handle
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_get_from_handle")
- (return-type "EmpathyContact*")
- (parameters
- '("McAccount*" "account")
- '("guint" "handle")
- )
+(define-method get_account
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_get_account")
+ (return-type "McAccount*")
)
-(define-method get_from_handles
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_get_from_handles")
- (return-type "GList*")
+(define-method set_account
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_set_account")
+ (return-type "none")
(parameters
'("McAccount*" "account")
- '("GArray*" "handles")
)
)
-(define-method set_alias
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_set_alias")
- (return-type "none")
- (parameters
- '("EmpathyContact*" "contact")
- '("const-gchar*" "alias")
- )
+(define-method get_room
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_get_room")
+ (return-type "const-gchar*")
)
-(define-method set_avatar
- (of-object "EmpathyContactFactory")
- (c-name "empathy_contact_factory_set_avatar")
+(define-method set_room
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_set_room")
(return-type "none")
(parameters
- '("McAccount*" "account")
- '("const-gchar*" "data")
- '("gsize" "size")
- '("const-gchar*" "mime_type")
+ '("const-gchar*" "room")
)
)
+(define-method get_name
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_get_name")
+ (return-type "const-gchar*")
+)
-
-;; From empathy-contact-groups.h
-
-(define-function empathy_contact_groups_get_all
- (c-name "empathy_contact_groups_get_all")
+(define-method set_name
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_set_name")
(return-type "none")
+ (parameters
+ '("const-gchar*" "name")
+ )
)
-(define-function empathy_contact_group_get_expanded
- (c-name "empathy_contact_group_get_expanded")
+(define-method get_auto_connect
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_get_auto_connect")
(return-type "gboolean")
+)
+
+(define-method set_auto_connect
+ (of-object "EmpathyChatroom")
+ (c-name "empathy_chatroom_set_auto_connect")
+ (return-type "none")
(parameters
- '("const-gchar*" "group")
+ '("gboolean" "auto_connect")
)
)
-(define-function empathy_contact_group_set_expanded
- (c-name "empathy_contact_group_set_expanded")
- (return-type "none")
+(define-function empathy_chatroom_equal
+ (c-name "empathy_chatroom_equal")
+ (return-type "gboolean")
(parameters
- '("const-gchar*" "group")
- '("gboolean" "expanded")
+ '("gconstpointer" "v1")
+ '("gconstpointer" "v2")
)
)
@@ -676,6 +992,12 @@
)
)
+(define-method get_ready
+ (of-object "EmpathyContact")
+ (c-name "empathy_contact_get_ready")
+ (return-type "EmpathyContactReady")
+)
+
(define-method is_user
(of-object "EmpathyContact")
(c-name "empathy_contact_is_user")
@@ -726,6 +1048,42 @@
)
)
+(define-method run_until_ready
+ (of-object "EmpathyContact")
+ (c-name "empathy_contact_run_until_ready")
+ (return-type "none")
+ (parameters
+ '("EmpathyContactReady" "ready")
+ '("GMainLoop**" "loop")
+ )
+)
+
+
+
+;; From empathy-contact-groups.h
+
+(define-function empathy_contact_groups_get_all
+ (c-name "empathy_contact_groups_get_all")
+ (return-type "none")
+)
+
+(define-function empathy_contact_group_get_expanded
+ (c-name "empathy_contact_group_get_expanded")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "group")
+ )
+)
+
+(define-function empathy_contact_group_set_expanded
+ (c-name "empathy_contact_group_set_expanded")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "group")
+ '("gboolean" "expanded")
+ )
+)
+
;; From empathy-contact-list.h
@@ -847,624 +1205,481 @@
-;; From empathy-debug.h
-
-(define-function empathy_debug_impl
- (c-name "empathy_debug_impl")
- (return-type "none")
- (parameters
- '("const-gchar*" "domain")
- '("const-gchar*" "msg")
- )
- (varargs #t)
-)
-
-(define-function empathy_debug_set_log_file_from_env
- (c-name "empathy_debug_set_log_file_from_env")
- (return-type "none")
-)
-
-
-
-;; From empathy-filter.h
+;; From empathy-contact-factory.h
-(define-function empathy_filter_get_type
- (c-name "empathy_filter_get_type")
+(define-function empathy_contact_factory_get_type
+ (c-name "empathy_contact_factory_get_type")
(return-type "GType")
)
-(define-function empathy_filter_new
- (c-name "empathy_filter_new")
- (is-constructor-of "EmpathyFilter")
- (return-type "EmpathyFilter*")
- (parameters
- '("const-gchar*" "bus_name")
- '("const-gchar*" "object_path")
- '("const-gchar*" "channel_type")
- '("guint" "priority")
- '("guint" "flags")
- )
+(define-function empathy_contact_factory_new
+ (c-name "empathy_contact_factory_new")
+ (is-constructor-of "EmpathyContactFactory")
+ (return-type "EmpathyContactFactory*")
)
-(define-method process
- (of-object "EmpathyFilter")
- (c-name "empathy_filter_process")
- (return-type "none")
+(define-method get_tp_factory
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_get_tp_factory")
+ (return-type "EmpathyTpContactFactory*")
(parameters
- '("TpChan*" "tp_chan")
- '("gboolean" "process")
+ '("McAccount*" "account")
)
)
-
-
-;; From empathy-idle.h
-
-(define-function empathy_idle_get_type
- (c-name "empathy_idle_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_idle_new
- (c-name "empathy_idle_new")
- (is-constructor-of "EmpathyIdle")
- (return-type "EmpathyIdle*")
-)
-
-(define-method get_state
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_get_state")
- (return-type "McPresence")
-)
-
-(define-method set_state
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_set_state")
- (return-type "none")
+(define-method get_user
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_get_user")
+ (return-type "EmpathyContact*")
(parameters
- '("McPresence" "state")
+ '("McAccount*" "account")
)
)
-(define-method get_status
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_get_status")
- (return-type "const-gchar*")
-)
-
-(define-method set_status
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_set_status")
- (return-type "none")
+(define-method get_from_id
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_get_from_id")
+ (return-type "EmpathyContact*")
(parameters
- '("const-gchar*" "status")
+ '("McAccount*" "account")
+ '("const-gchar*" "id")
)
)
-(define-method get_flash_state
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_get_flash_state")
- (return-type "McPresence")
-)
-
-(define-method set_flash_state
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_set_flash_state")
- (return-type "none")
+(define-method get_from_handle
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_get_from_handle")
+ (return-type "EmpathyContact*")
(parameters
- '("McPresence" "state")
+ '("McAccount*" "account")
+ '("guint" "handle")
)
)
-(define-method set_presence
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_set_presence")
- (return-type "none")
+(define-method get_from_handles
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_get_from_handles")
+ (return-type "GList*")
(parameters
- '("McPresence" "state")
- '("const-gchar*" "status")
+ '("McAccount*" "account")
+ '("GArray*" "handles")
)
)
-(define-method get_auto_away
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_get_auto_away")
- (return-type "gboolean")
-)
-
-(define-method set_auto_away
- (of-object "EmpathyIdle")
- (c-name "empathy_idle_set_auto_away")
+(define-method set_alias
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_set_alias")
(return-type "none")
(parameters
- '("gboolean" "auto_away")
+ '("EmpathyContact*" "contact")
+ '("const-gchar*" "alias")
)
)
-(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")
+(define-method set_avatar
+ (of-object "EmpathyContactFactory")
+ (c-name "empathy_contact_factory_set_avatar")
(return-type "none")
(parameters
- '("gboolean" "use_nm")
+ '("McAccount*" "account")
+ '("const-gchar*" "data")
+ '("gsize" "size")
+ '("const-gchar*" "mime_type")
)
)
-;; From empathy-irc-network.h
+;; From empathy-tp-contact-factory.h
-(define-function empathy_irc_network_get_type
- (c-name "empathy_irc_network_get_type")
+(define-function empathy_tp_contact_factory_get_type
+ (c-name "empathy_tp_contact_factory_get_type")
(return-type "GType")
)
-(define-function empathy_irc_network_new
- (c-name "empathy_irc_network_new")
- (is-constructor-of "EmpathyIrcNetwork")
- (return-type "EmpathyIrcNetwork*")
+(define-function empathy_tp_contact_factory_new
+ (c-name "empathy_tp_contact_factory_new")
+ (is-constructor-of "EmpathyTpContactFactory")
+ (return-type "EmpathyTpContactFactory*")
(parameters
- '("const-gchar*" "name")
+ '("McAccount*" "account")
)
)
-(define-method get_servers
- (of-object "EmpathyIrcNetwork")
- (c-name "empathy_irc_network_get_servers")
- (return-type "GSList*")
-)
-
-(define-method append_server
- (of-object "EmpathyIrcNetwork")
- (c-name "empathy_irc_network_append_server")
- (return-type "none")
- (parameters
- '("EmpathyIrcServer*" "server")
- )
+(define-method get_user
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_get_user")
+ (return-type "EmpathyContact*")
)
-(define-method remove_server
- (of-object "EmpathyIrcNetwork")
- (c-name "empathy_irc_network_remove_server")
- (return-type "none")
+(define-method get_from_id
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_get_from_id")
+ (return-type "EmpathyContact*")
(parameters
- '("EmpathyIrcServer*" "server")
+ '("const-gchar*" "id")
)
)
-(define-method set_server_position
- (of-object "EmpathyIrcNetwork")
- (c-name "empathy_irc_network_set_server_position")
- (return-type "none")
+(define-method get_from_handle
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_get_from_handle")
+ (return-type "EmpathyContact*")
(parameters
- '("EmpathyIrcServer*" "server")
- '("gint" "pos")
+ '("guint" "handle")
)
)
-
-
-;; From empathy-irc-network-manager.h
-
-(define-function empathy_irc_network_manager_get_type
- (c-name "empathy_irc_network_manager_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_irc_network_manager_new
- (c-name "empathy_irc_network_manager_new")
- (is-constructor-of "EmpathyIrcNetworkManager")
- (return-type "EmpathyIrcNetworkManager*")
+(define-method get_from_handles
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_get_from_handles")
+ (return-type "GList*")
(parameters
- '("const-gchar*" "global_file")
- '("const-gchar*" "user_file")
+ '("const-GArray*" "handles")
)
)
-(define-method add
- (of-object "EmpathyIrcNetworkManager")
- (c-name "empathy_irc_network_manager_add")
+(define-method set_alias
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_set_alias")
(return-type "none")
(parameters
- '("EmpathyIrcNetwork*" "network")
+ '("EmpathyContact*" "contact")
+ '("const-gchar*" "alias")
)
)
-(define-method remove
- (of-object "EmpathyIrcNetworkManager")
- (c-name "empathy_irc_network_manager_remove")
+(define-method set_avatar
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_set_avatar")
(return-type "none")
(parameters
- '("EmpathyIrcNetwork*" "network")
+ '("const-gchar*" "data")
+ '("gsize" "size")
+ '("const-gchar*" "mime_type")
)
)
-(define-method get_networks
- (of-object "EmpathyIrcNetworkManager")
- (c-name "empathy_irc_network_manager_get_networks")
- (return-type "GSList*")
-)
-
-(define-method find_network_by_address
- (of-object "EmpathyIrcNetworkManager")
- (c-name "empathy_irc_network_manager_find_network_by_address")
- (return-type "EmpathyIrcNetwork*")
- (parameters
- '("const-gchar*" "address")
- )
+(define-method is_ready
+ (of-object "EmpathyTpContactFactory")
+ (c-name "empathy_tp_contact_factory_is_ready")
+ (return-type "gboolean")
)
-;; From empathy-irc-server.h
+;; From empathy-tp-group.h
-(define-function empathy_irc_server_get_type
- (c-name "empathy_irc_server_get_type")
+(define-function empathy_tp_group_get_type
+ (c-name "empathy_tp_group_get_type")
(return-type "GType")
)
-(define-function empathy_irc_server_new
- (c-name "empathy_irc_server_new")
- (is-constructor-of "EmpathyIrcServer")
- (return-type "EmpathyIrcServer*")
+(define-function empathy_tp_group_new
+ (c-name "empathy_tp_group_new")
+ (is-constructor-of "EmpathyTpGroup")
+ (return-type "EmpathyTpGroup*")
(parameters
- '("const-gchar*" "address")
- '("guint" "port")
- '("gboolean" "ssl")
+ '("McAccount*" "account")
+ '("TpChan*" "tp_chan")
)
)
-
-
-;; From empathy-log-manager.h
-
-(define-function empathy_log_manager_get_type
- (c-name "empathy_log_manager_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_log_manager_new
- (c-name "empathy_log_manager_new")
- (is-constructor-of "EmpathyLogManager")
- (return-type "EmpathyLogManager*")
+(define-method close
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_close")
+ (return-type "none")
)
-(define-method add_message
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_add_message")
+(define-method add_members
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_add_members")
(return-type "none")
(parameters
- '("const-gchar*" "chat_id")
- '("gboolean" "chatroom")
- '("EmpathyMessage*" "message")
+ '("GList*" "contacts")
+ '("const-gchar*" "message")
)
)
-(define-method exists
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_exists")
- (return-type "gboolean")
+(define-method add_member
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_add_member")
+ (return-type "none")
(parameters
- '("McAccount*" "account")
- '("const-gchar*" "chat_id")
- '("gboolean" "chatroom")
+ '("EmpathyContact*" "contact")
+ '("const-gchar*" "message")
)
)
-(define-method get_dates
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_dates")
- (return-type "GList*")
+(define-method remove_members
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_remove_members")
+ (return-type "none")
(parameters
- '("McAccount*" "account")
- '("const-gchar*" "chat_id")
- '("gboolean" "chatroom")
+ '("GList*" "contacts")
+ '("const-gchar*" "message")
)
)
-(define-method get_messages_for_file
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_messages_for_file")
- (return-type "GList*")
+(define-method remove_member
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_remove_member")
+ (return-type "none")
(parameters
- '("const-gchar*" "filename")
+ '("EmpathyContact*" "contact")
+ '("const-gchar*" "message")
)
)
-(define-method get_messages_for_date
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_messages_for_date")
+(define-method get_members
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_members")
(return-type "GList*")
- (parameters
- '("McAccount*" "account")
- '("const-gchar*" "chat_id")
- '("gboolean" "chatroom")
- '("const-gchar*" "date")
- )
)
-(define-method get_last_messages
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_last_messages")
+(define-method get_local_pendings
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_local_pendings")
(return-type "GList*")
- (parameters
- '("McAccount*" "account")
- '("const-gchar*" "chat_id")
- '("gboolean" "chatroom")
- )
)
-(define-method get_messages_for_file
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_messages_for_file")
+(define-method get_remote_pendings
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_remote_pendings")
(return-type "GList*")
- (parameters
- '("const-gchar*" "filename")
- )
)
-(define-method get_chats
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_get_chats")
- (return-type "GList*")
- (parameters
- '("McAccount*" "account")
- )
+(define-method get_name
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_name")
+ (return-type "const-gchar*")
)
-(define-method search_new
- (of-object "EmpathyLogManager")
- (c-name "empathy_log_manager_search_new")
- (return-type "GList*")
- (parameters
- '("const-gchar*" "text")
- )
+(define-method get_self_contact
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_self_contact")
+ (return-type "EmpathyContact*")
)
-(define-function empathy_log_manager_search_free
- (c-name "empathy_log_manager_search_free")
- (return-type "none")
+(define-method get_object_path
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_object_path")
+ (return-type "const-gchar*")
+)
+
+(define-method get_channel
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_channel")
+ (return-type "TpChan*")
+)
+
+(define-method is_member
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_is_member")
+ (return-type "gboolean")
(parameters
- '("GList*" "hits")
+ '("EmpathyContact*" "contact")
)
)
-(define-function empathy_log_manager_get_date_readable
- (c-name "empathy_log_manager_get_date_readable")
- (return-type "gchar*")
+(define-function empathy_pending_info_new
+ (c-name "empathy_pending_info_new")
+ (is-constructor-of "EmpathyPendingInfo")
+ (return-type "EmpathyPendingInfo*")
(parameters
- '("const-gchar*" "date")
+ '("EmpathyContact*" "member")
+ '("EmpathyContact*" "actor")
+ '("const-gchar*" "message")
)
)
+(define-method free
+ (of-object "EmpathyPendingInfo")
+ (c-name "empathy_pending_info_free")
+ (return-type "none")
+)
-;; From empathy-message.h
-(define-function empathy_message_get_gtype
- (c-name "empathy_message_get_gtype")
+;; From empathy-tp-contact-list.h
+
+(define-function empathy_tp_contact_list_get_type
+ (c-name "empathy_tp_contact_list_get_type")
(return-type "GType")
)
-(define-function empathy_message_new
- (c-name "empathy_message_new")
- (is-constructor-of "EmpathyMessage")
- (return-type "EmpathyMessage*")
+(define-function empathy_tp_contact_list_new
+ (c-name "empathy_tp_contact_list_new")
+ (is-constructor-of "EmpathyTpContactList")
+ (return-type "EmpathyTpContactList*")
(parameters
- '("const-gchar*" "body")
+ '("McAccount*" "account")
)
)
-(define-method get_type
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_type")
- (return-type "EmpathyMessageType")
+(define-method get_account
+ (of-object "EmpathyTpContactList")
+ (c-name "empathy_tp_contact_list_get_account")
+ (return-type "McAccount*")
)
-(define-method set_type
- (of-object "EmpathyMessage")
- (c-name "empathy_message_set_type")
- (return-type "none")
- (parameters
- '("EmpathyMessageType" "type")
- )
-)
-(define-method get_sender
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_sender")
- (return-type "EmpathyContact*")
+
+;; From empathy-tp-chat.h
+
+(define-function empathy_tp_chat_get_type
+ (c-name "empathy_tp_chat_get_type")
+ (return-type "GType")
)
-(define-method set_sender
- (of-object "EmpathyMessage")
- (c-name "empathy_message_set_sender")
- (return-type "none")
+(define-function empathy_tp_chat_new
+ (c-name "empathy_tp_chat_new")
+ (is-constructor-of "EmpathyTpChat")
+ (return-type "EmpathyTpChat*")
(parameters
- '("EmpathyContact*" "contact")
+ '("McAccount*" "account")
+ '("TpChan*" "tp_chan")
)
)
-(define-method get_receiver
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_receiver")
- (return-type "EmpathyContact*")
-)
-
-(define-method set_receiver
- (of-object "EmpathyMessage")
- (c-name "empathy_message_set_receiver")
- (return-type "none")
+(define-function empathy_tp_chat_new_with_contact
+ (c-name "empathy_tp_chat_new_with_contact")
+ (return-type "EmpathyTpChat*")
(parameters
'("EmpathyContact*" "contact")
)
)
-(define-method get_body
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_body")
- (return-type "const-gchar*")
+(define-method get_acknowledge
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_get_acknowledge")
+ (return-type "gboolean")
)
-(define-method set_body
- (of-object "EmpathyMessage")
- (c-name "empathy_message_set_body")
+(define-method set_acknowledge
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_set_acknowledge")
(return-type "none")
(parameters
- '("const-gchar*" "body")
+ '("gboolean" "acknowledge")
)
)
-(define-method get_timestamp
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_timestamp")
- (return-type "time_t")
+(define-method get_account
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_get_account")
+ (return-type "McAccount*")
)
-(define-method set_timestamp
- (of-object "EmpathyMessage")
- (c-name "empathy_message_set_timestamp")
- (return-type "none")
- (parameters
- '("time_t" "timestamp")
- )
+(define-method get_channel
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_get_channel")
+ (return-type "TpChan*")
)
-(define-method get_date_and_time
- (of-object "EmpathyMessage")
- (c-name "empathy_message_get_date_and_time")
- (return-type "GDate*")
+(define-method send
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_send")
+ (return-type "none")
(parameters
- '("time_t*" "timestamp")
+ '("EmpathyMessage*" "message")
)
)
-(define-function empathy_message_type_from_str
- (c-name "empathy_message_type_from_str")
- (return-type "EmpathyMessageType")
+(define-method set_state
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_set_state")
+ (return-type "none")
(parameters
- '("const-gchar*" "type_str")
+ '("TpChannelChatState" "state")
)
)
-(define-method to_str
- (of-object "EmpathyMessageType")
- (c-name "empathy_message_type_to_str")
+(define-method get_id
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_get_id")
(return-type "const-gchar*")
)
-
-
-;; From empathy-status-presets.h
-
-(define-function empathy_status_presets_get_all
- (c-name "empathy_status_presets_get_all")
+(define-method set_property
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_set_property")
(return-type "none")
-)
-
-(define-function empathy_status_presets_get
- (c-name "empathy_status_presets_get")
- (return-type "GList*")
(parameters
- '("McPresence" "state")
- '("gint" "max_number")
+ '("const-gchar*" "name")
+ '("const-GValue*" "value")
)
)
-(define-function empathy_status_presets_set_last
- (c-name "empathy_status_presets_set_last")
- (return-type "none")
- (parameters
- '("McPresence" "state")
- '("const-gchar*" "status")
- )
-)
-(define-function empathy_status_presets_remove
- (c-name "empathy_status_presets_remove")
- (return-type "none")
- (parameters
- '("McPresence" "state")
- '("const-gchar*" "status")
- )
-)
-(define-function empathy_status_presets_reset
- (c-name "empathy_status_presets_reset")
- (return-type "none")
-)
+;; From empathy-tp-chatroom.h
-(define-function empathy_status_presets_get_default_state
- (c-name "empathy_status_presets_get_default_state")
- (return-type "McPresence")
+(define-function empathy_tp_chatroom_get_type
+ (c-name "empathy_tp_chatroom_get_type")
+ (return-type "GType")
)
-(define-function empathy_status_presets_get_default_status
- (c-name "empathy_status_presets_get_default_status")
- (return-type "const-gchar*")
+(define-function empathy_tp_chatroom_new
+ (c-name "empathy_tp_chatroom_new")
+ (is-constructor-of "EmpathyTpChatroom")
+ (return-type "EmpathyTpChatroom*")
+ (parameters
+ '("McAccount*" "account")
+ '("TpChan*" "tp_chan")
+ )
)
-(define-function empathy_status_presets_set_default
- (c-name "empathy_status_presets_set_default")
- (return-type "none")
+(define-method get_invitation
+ (of-object "EmpathyTpChatroom")
+ (c-name "empathy_tp_chatroom_get_invitation")
+ (return-type "gboolean")
(parameters
- '("McPresence" "state")
- '("const-gchar*" "status")
+ '("EmpathyContact**" "contact")
+ '("const-gchar**" "message")
)
)
-(define-function empathy_status_presets_clear_default
- (c-name "empathy_status_presets_clear_default")
+(define-method accept_invitation
+ (of-object "EmpathyTpChatroom")
+ (c-name "empathy_tp_chatroom_accept_invitation")
(return-type "none")
)
-;; From empathy-time.h
+;; From empathy-tp-roomlist.h
-(define-function empathy_time_get_current
- (c-name "empathy_time_get_current")
- (return-type "time_t")
+(define-function empathy_tp_roomlist_get_type
+ (c-name "empathy_tp_roomlist_get_type")
+ (return-type "GType")
)
-(define-function empathy_time_get_local_time
- (c-name "empathy_time_get_local_time")
- (return-type "time_t")
+(define-function empathy_tp_roomlist_new
+ (c-name "empathy_tp_roomlist_new")
+ (is-constructor-of "EmpathyTpRoomlist")
+ (return-type "EmpathyTpRoomlist*")
(parameters
- '("struct-tm*" "tm")
+ '("McAccount*" "account")
)
)
-(define-function empathy_time_parse
- (c-name "empathy_time_parse")
- (return-type "time_t")
- (parameters
- '("const-gchar*" "str")
- )
+(define-method is_listing
+ (of-object "EmpathyTpRoomlist")
+ (c-name "empathy_tp_roomlist_is_listing")
+ (return-type "gboolean")
)
-(define-function empathy_time_to_string_utc
- (c-name "empathy_time_to_string_utc")
- (return-type "gchar*")
- (parameters
- '("time_t" "t")
- '("const-gchar*" "format")
- )
+(define-method start
+ (of-object "EmpathyTpRoomlist")
+ (c-name "empathy_tp_roomlist_start")
+ (return-type "none")
)
-(define-function empathy_time_to_string_local
- (c-name "empathy_time_to_string_local")
- (return-type "gchar*")
- (parameters
- '("time_t" "t")
- '("const-gchar*" "format")
- )
+(define-method stop
+ (of-object "EmpathyTpRoomlist")
+ (c-name "empathy_tp_roomlist_stop")
+ (return-type "none")
)
@@ -1563,564 +1778,399 @@
-;; From empathy-tp-chat.h
+;; From empathy-chandler.h
-(define-function empathy_tp_chat_get_type
- (c-name "empathy_tp_chat_get_type")
+(define-function empathy_chandler_get_type
+ (c-name "empathy_chandler_get_type")
(return-type "GType")
)
-(define-function empathy_tp_chat_new
- (c-name "empathy_tp_chat_new")
- (is-constructor-of "EmpathyTpChat")
- (return-type "EmpathyTpChat*")
- (parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
- )
-)
-
-(define-function empathy_tp_chat_new_with_contact
- (c-name "empathy_tp_chat_new_with_contact")
- (return-type "EmpathyTpChat*")
+(define-function empathy_chandler_new
+ (c-name "empathy_chandler_new")
+ (is-constructor-of "EmpathyChandler")
+ (return-type "EmpathyChandler*")
(parameters
- '("EmpathyContact*" "contact")
+ '("const-gchar*" "bus_name")
+ '("const-gchar*" "object_path")
)
)
-(define-method get_acknowledge
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_acknowledge")
- (return-type "gboolean")
-)
-
-(define-method set_acknowledge
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_set_acknowledge")
- (return-type "none")
- (parameters
- '("gboolean" "acknowledge")
- )
-)
-(define-method get_account
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_account")
- (return-type "McAccount*")
-)
-(define-method get_channel
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_channel")
- (return-type "TpChan*")
-)
+;; From empathy-filter.h
-(define-method get_pendings
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_pendings")
- (return-type "GList*")
+(define-function empathy_filter_get_type
+ (c-name "empathy_filter_get_type")
+ (return-type "GType")
)
-(define-method send
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_send")
- (return-type "none")
+(define-function empathy_filter_new
+ (c-name "empathy_filter_new")
+ (is-constructor-of "EmpathyFilter")
+ (return-type "EmpathyFilter*")
(parameters
- '("EmpathyMessage*" "message")
+ '("const-gchar*" "bus_name")
+ '("const-gchar*" "object_path")
+ '("const-gchar*" "channel_type")
+ '("guint" "priority")
+ '("guint" "flags")
)
)
-(define-method set_state
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_set_state")
+(define-method process
+ (of-object "EmpathyFilter")
+ (c-name "empathy_filter_process")
(return-type "none")
(parameters
- '("TpChannelChatState" "state")
+ '("TpChan*" "tp_chan")
+ '("gboolean" "process")
)
)
-(define-method get_id
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_id")
- (return-type "const-gchar*")
-)
+;; From empathy-idle.h
-;; From empathy-tp-chatroom.h
-
-(define-function empathy_tp_chatroom_get_type
- (c-name "empathy_tp_chatroom_get_type")
+(define-function empathy_idle_get_type
+ (c-name "empathy_idle_get_type")
(return-type "GType")
)
-(define-function empathy_tp_chatroom_new
- (c-name "empathy_tp_chatroom_new")
- (is-constructor-of "EmpathyTpChatroom")
- (return-type "EmpathyTpChatroom*")
- (parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
- )
+(define-function empathy_idle_new
+ (c-name "empathy_idle_new")
+ (is-constructor-of "EmpathyIdle")
+ (return-type "EmpathyIdle*")
)
-(define-method get_invitation
- (of-object "EmpathyTpChatroom")
- (c-name "empathy_tp_chatroom_get_invitation")
- (return-type "gboolean")
- (parameters
- '("EmpathyContact**" "contact")
- '("const-gchar**" "message")
- )
+(define-method get_state
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_get_state")
+ (return-type "McPresence")
)
-(define-method accept_invitation
- (of-object "EmpathyTpChatroom")
- (c-name "empathy_tp_chatroom_accept_invitation")
+(define-method set_state
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_state")
(return-type "none")
-)
-
-;; From empathy-tp-contact-factory.h
-
-(define-function empathy_tp_contact_factory_get_type
- (c-name "empathy_tp_contact_factory_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_tp_contact_factory_new
- (c-name "empathy_tp_contact_factory_new")
- (is-constructor-of "EmpathyTpContactFactory")
- (return-type "EmpathyTpContactFactory*")
(parameters
- '("McAccount*" "account")
+ '("McPresence" "state")
)
)
-(define-method get_user
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_get_user")
- (return-type "EmpathyContact*")
+(define-method get_status
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_get_status")
+ (return-type "const-gchar*")
)
-(define-method get_from_id
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_get_from_id")
- (return-type "EmpathyContact*")
+(define-method set_status
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_status")
+ (return-type "none")
(parameters
- '("const-gchar*" "id")
+ '("const-gchar*" "status")
)
)
-(define-method get_from_handle
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_get_from_handle")
- (return-type "EmpathyContact*")
- (parameters
- '("guint" "handle")
- )
+(define-method get_flash_state
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_get_flash_state")
+ (return-type "McPresence")
)
-(define-method get_from_handles
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_get_from_handles")
- (return-type "GList*")
+(define-method set_flash_state
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_flash_state")
+ (return-type "none")
(parameters
- '("GArray*" "handles")
+ '("McPresence" "state")
)
)
-(define-method set_alias
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_set_alias")
+(define-method set_presence
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_presence")
(return-type "none")
(parameters
- '("EmpathyContact*" "contact")
- '("const-gchar*" "alias")
+ '("McPresence" "state")
+ '("const-gchar*" "status")
)
)
-(define-method set_avatar
- (of-object "EmpathyTpContactFactory")
- (c-name "empathy_tp_contact_factory_set_avatar")
+(define-method get_auto_away
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_get_auto_away")
+ (return-type "gboolean")
+)
+
+(define-method set_auto_away
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_auto_away")
(return-type "none")
(parameters
- '("const-gchar*" "data")
- '("gsize" "size")
- '("const-gchar*" "mime_type")
+ '("gboolean" "auto_away")
)
)
-
-
-;; From empathy-tp-contact-list.h
-
-(define-function empathy_tp_contact_list_get_type
- (c-name "empathy_tp_contact_list_get_type")
- (return-type "GType")
+(define-method get_use_nm
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_get_use_nm")
+ (return-type "gboolean")
)
-(define-function empathy_tp_contact_list_new
- (c-name "empathy_tp_contact_list_new")
- (is-constructor-of "EmpathyTpContactList")
- (return-type "EmpathyTpContactList*")
+(define-method set_use_nm
+ (of-object "EmpathyIdle")
+ (c-name "empathy_idle_set_use_nm")
+ (return-type "none")
(parameters
- '("McAccount*" "account")
+ '("gboolean" "use_nm")
)
)
-(define-method get_account
- (of-object "EmpathyTpContactList")
- (c-name "empathy_tp_contact_list_get_account")
- (return-type "McAccount*")
-)
-
-;; From empathy-tp-group.h
+;; From empathy-log-manager.h
-(define-function empathy_tp_group_get_type
- (c-name "empathy_tp_group_get_type")
+(define-function empathy_log_manager_get_type
+ (c-name "empathy_log_manager_get_type")
(return-type "GType")
)
-(define-function empathy_tp_group_new
- (c-name "empathy_tp_group_new")
- (is-constructor-of "EmpathyTpGroup")
- (return-type "EmpathyTpGroup*")
- (parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
- )
-)
-
-(define-method close
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_close")
- (return-type "none")
+(define-function empathy_log_manager_new
+ (c-name "empathy_log_manager_new")
+ (is-constructor-of "EmpathyLogManager")
+ (return-type "EmpathyLogManager*")
)
-(define-method add_members
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_add_members")
+(define-method add_message
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_add_message")
(return-type "none")
(parameters
- '("GList*" "contacts")
- '("const-gchar*" "message")
+ '("const-gchar*" "chat_id")
+ '("gboolean" "chatroom")
+ '("EmpathyMessage*" "message")
)
)
-(define-method add_member
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_add_member")
- (return-type "none")
+(define-method exists
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_exists")
+ (return-type "gboolean")
(parameters
- '("EmpathyContact*" "contact")
- '("const-gchar*" "message")
+ '("McAccount*" "account")
+ '("const-gchar*" "chat_id")
+ '("gboolean" "chatroom")
)
)
-(define-method remove_members
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_remove_members")
- (return-type "none")
+(define-method get_dates
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_dates")
+ (return-type "GList*")
(parameters
- '("GList*" "contacts")
- '("const-gchar*" "message")
+ '("McAccount*" "account")
+ '("const-gchar*" "chat_id")
+ '("gboolean" "chatroom")
)
)
-(define-method remove_member
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_remove_member")
- (return-type "none")
+(define-method get_messages_for_file
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_messages_for_file")
+ (return-type "GList*")
(parameters
- '("EmpathyContact*" "contact")
- '("const-gchar*" "message")
+ '("const-gchar*" "filename")
)
)
-(define-method get_members
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_members")
- (return-type "GList*")
-)
-
-(define-method get_local_pendings
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_local_pendings")
+(define-method get_messages_for_date
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_messages_for_date")
(return-type "GList*")
+ (parameters
+ '("McAccount*" "account")
+ '("const-gchar*" "chat_id")
+ '("gboolean" "chatroom")
+ '("const-gchar*" "date")
+ )
)
-(define-method get_remote_pendings
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_remote_pendings")
+(define-method get_last_messages
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_last_messages")
(return-type "GList*")
-)
-
-(define-method get_name
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_name")
- (return-type "const-gchar*")
-)
-
-(define-method get_self_contact
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_self_contact")
- (return-type "EmpathyContact*")
-)
-
-(define-method get_object_path
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_object_path")
- (return-type "const-gchar*")
-)
-
-(define-method get_channel
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_channel")
- (return-type "TpChan*")
-)
-
-(define-method is_member
- (of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_is_member")
- (return-type "gboolean")
(parameters
- '("EmpathyContact*" "contact")
+ '("McAccount*" "account")
+ '("const-gchar*" "chat_id")
+ '("gboolean" "chatroom")
)
)
-(define-function empathy_pending_info_new
- (c-name "empathy_pending_info_new")
- (is-constructor-of "EmpathyPendingInfo")
- (return-type "EmpathyPendingInfo*")
+(define-method get_messages_for_file
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_messages_for_file")
+ (return-type "GList*")
(parameters
- '("EmpathyContact*" "member")
- '("EmpathyContact*" "actor")
- '("const-gchar*" "message")
+ '("const-gchar*" "filename")
)
)
-(define-method free
- (of-object "EmpathyPendingInfo")
- (c-name "empathy_pending_info_free")
- (return-type "none")
-)
-
-
-
-;; From empathy-tp-roomlist.h
-
-(define-function empathy_tp_roomlist_get_type
- (c-name "empathy_tp_roomlist_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_tp_roomlist_new
- (c-name "empathy_tp_roomlist_new")
- (is-constructor-of "EmpathyTpRoomlist")
- (return-type "EmpathyTpRoomlist*")
+(define-method get_chats
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_get_chats")
+ (return-type "GList*")
(parameters
'("McAccount*" "account")
)
)
-(define-method is_listing
- (of-object "EmpathyTpRoomlist")
- (c-name "empathy_tp_roomlist_is_listing")
- (return-type "gboolean")
-)
-
-(define-method start
- (of-object "EmpathyTpRoomlist")
- (c-name "empathy_tp_roomlist_start")
- (return-type "none")
-)
-
-(define-method stop
- (of-object "EmpathyTpRoomlist")
- (c-name "empathy_tp_roomlist_stop")
- (return-type "none")
-)
-
-
-
-;; From empathy-utils.h
-
-(define-function empathy_substring
- (c-name "empathy_substring")
- (return-type "gchar*")
+(define-method search_new
+ (of-object "EmpathyLogManager")
+ (c-name "empathy_log_manager_search_new")
+ (return-type "GList*")
(parameters
- '("const-gchar*" "str")
- '("gint" "start")
- '("gint" "end")
+ '("const-gchar*" "text")
)
)
-(define-function empathy_regex_match
- (c-name "empathy_regex_match")
- (return-type "gint")
+(define-function empathy_log_manager_search_free
+ (c-name "empathy_log_manager_search_free")
+ (return-type "none")
(parameters
- '("EmpathyRegExType" "type")
- '("const-gchar*" "msg")
- '("GArray*" "start")
- '("GArray*" "end")
+ '("GList*" "hits")
)
)
-(define-function empathy_strcasecmp
- (c-name "empathy_strcasecmp")
- (return-type "gint")
+(define-function empathy_log_manager_get_date_readable
+ (c-name "empathy_log_manager_get_date_readable")
+ (return-type "gchar*")
(parameters
- '("const-gchar*" "s1")
- '("const-gchar*" "s2")
+ '("const-gchar*" "date")
)
)
-(define-function empathy_strncasecmp
- (c-name "empathy_strncasecmp")
- (return-type "gint")
- (parameters
- '("const-gchar*" "s1")
- '("const-gchar*" "s2")
- '("gsize" "n")
- )
-)
-(define-function empathy_xml_validate
- (c-name "empathy_xml_validate")
- (return-type "gboolean")
- (parameters
- '("xmlDoc*" "doc")
- '("const-gchar*" "dtd_filename")
- )
+
+;; From empathy-irc-network-manager.h
+
+(define-function empathy_irc_network_manager_get_type
+ (c-name "empathy_irc_network_manager_get_type")
+ (return-type "GType")
)
-(define-function empathy_xml_node_get_child
- (c-name "empathy_xml_node_get_child")
- (return-type "xmlNodePtr")
+(define-function empathy_irc_network_manager_new
+ (c-name "empathy_irc_network_manager_new")
+ (is-constructor-of "EmpathyIrcNetworkManager")
+ (return-type "EmpathyIrcNetworkManager*")
(parameters
- '("xmlNodePtr" "node")
- '("const-gchar*" "child_name")
+ '("const-gchar*" "global_file")
+ '("const-gchar*" "user_file")
)
)
-(define-function empathy_xml_node_get_child_content
- (c-name "empathy_xml_node_get_child_content")
- (return-type "xmlChar*")
+(define-method add
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_add")
+ (return-type "none")
(parameters
- '("xmlNodePtr" "node")
- '("const-gchar*" "child_name")
+ '("EmpathyIrcNetwork*" "network")
)
)
-(define-function empathy_xml_node_find_child_prop_value
- (c-name "empathy_xml_node_find_child_prop_value")
- (return-type "xmlNodePtr")
+(define-method remove
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_remove")
+ (return-type "none")
(parameters
- '("xmlNodePtr" "node")
- '("const-gchar*" "prop_name")
- '("const-gchar*" "prop_value")
+ '("EmpathyIrcNetwork*" "network")
)
)
-(define-function empathy_account_hash
- (c-name "empathy_account_hash")
- (return-type "guint")
- (parameters
- '("gconstpointer" "key")
- )
+(define-method get_networks
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_get_networks")
+ (return-type "GSList*")
)
-(define-function empathy_account_equal
- (c-name "empathy_account_equal")
- (return-type "gboolean")
+(define-method find_network_by_address
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_find_network_by_address")
+ (return-type "EmpathyIrcNetwork*")
(parameters
- '("gconstpointer" "a")
- '("gconstpointer" "b")
+ '("const-gchar*" "address")
)
)
-(define-function empathy_mission_control_new
- (c-name "empathy_mission_control_new")
- (is-constructor-of "EmpathyMissionControl")
- (return-type "MissionControl*")
-)
-(define-function empathy_inspect_handle
- (c-name "empathy_inspect_handle")
- (return-type "gchar*")
- (parameters
- '("McAccount*" "account")
- '("guint" "handle")
- '("guint" "handle_type")
- )
+
+;; From empathy-irc-network.h
+
+(define-function empathy_irc_network_get_type
+ (c-name "empathy_irc_network_get_type")
+ (return-type "GType")
)
-(define-function empathy_inspect_channel
- (c-name "empathy_inspect_channel")
- (return-type "gchar*")
+(define-function empathy_irc_network_new
+ (c-name "empathy_irc_network_new")
+ (is-constructor-of "EmpathyIrcNetwork")
+ (return-type "EmpathyIrcNetwork*")
(parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
+ '("const-gchar*" "name")
)
)
-(define-function empathy_call_with_contact
- (c-name "empathy_call_with_contact")
- (return-type "none")
- (parameters
- '("EmpathyContact*" "contact")
- )
+(define-method get_servers
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_get_servers")
+ (return-type "GSList*")
)
-(define-function empathy_call_with_contact_id
- (c-name "empathy_call_with_contact_id")
+(define-method append_server
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_append_server")
(return-type "none")
(parameters
- '("McAccount*" "account")
- '("const-gchar*" "contact_id")
+ '("EmpathyIrcServer*" "server")
)
)
-(define-function empathy_chat_with_contact
- (c-name "empathy_chat_with_contact")
+(define-method remove_server
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_remove_server")
(return-type "none")
(parameters
- '("EmpathyContact*" "contact")
+ '("EmpathyIrcServer*" "server")
)
)
-(define-function empathy_chat_with_contact_id
- (c-name "empathy_chat_with_contact_id")
+(define-method set_server_position
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_set_server_position")
(return-type "none")
(parameters
- '("McAccount*" "account")
- '("const-gchar*" "contact_id")
+ '("EmpathyIrcServer*" "server")
+ '("gint" "pos")
)
)
-(define-function empathy_presence_get_default_message
- (c-name "empathy_presence_get_default_message")
- (return-type "const-gchar*")
- (parameters
- '("McPresence" "presence")
- )
-)
-(define-function empathy_presence_to_str
- (c-name "empathy_presence_to_str")
- (return-type "const-gchar*")
- (parameters
- '("McPresence" "presence")
- )
+
+;; From empathy-irc-server.h
+
+(define-function empathy_irc_server_get_type
+ (c-name "empathy_irc_server_get_type")
+ (return-type "GType")
)
-(define-function empathy_presence_from_str
- (c-name "empathy_presence_from_str")
- (return-type "McPresence")
+(define-function empathy_irc_server_new
+ (c-name "empathy_irc_server_new")
+ (is-constructor-of "EmpathyIrcServer")
+ (return-type "EmpathyIrcServer*")
(parameters
- '("const-gchar*" "str")
+ '("const-gchar*" "address")
+ '("guint" "port")
+ '("gboolean" "ssl")
)
)