diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-01-25 00:33:33 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-01-25 00:33:33 +0800 |
commit | a687b7c513d3bb967781f17dc5d247161bcffd8c (patch) | |
tree | 116b335b3c4fe96ddd09c64e9aa382516168af03 /python/pyempathy | |
parent | ff21a5f6bfedae8ca32ac871ccad5c106e831b28 (diff) | |
download | gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar.gz gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar.bz2 gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar.lz gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar.xz gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.tar.zst gsoc2013-empathy-a687b7c513d3bb967781f17dc5d247161bcffd8c.zip |
Remove EmpathyPresence object and have "presence" and "presence-message" properties directly in EmpathyContact
svn path=/trunk/; revision=601
Diffstat (limited to 'python/pyempathy')
-rw-r--r-- | python/pyempathy/pyempathy.defs | 137 | ||||
-rw-r--r-- | python/pyempathy/pyempathy.override | 1 |
2 files changed, 41 insertions, 97 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index f6c7e0b80..7f7381fa7 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -77,13 +77,6 @@ (gtype-id "EMPATHY_TYPE_MESSAGE") ) -(define-object Presence - (in-module "Empathy") - (parent "GObject") - (c-name "EmpathyPresence") - (gtype-id "EMPATHY_TYPE_PRESENCE") -) - (define-object TpCall (in-module "Empathy") (parent "GObject") @@ -602,7 +595,7 @@ (define-method get_presence (of-object "EmpathyContact") (c-name "empathy_contact_get_presence") - (return-type "EmpathyPresence*") + (return-type "McPresence") ) (define-method set_presence @@ -610,7 +603,22 @@ (c-name "empathy_contact_set_presence") (return-type "none") (parameters - '("EmpathyPresence*" "presence") + '("McPresence" "presence") + ) +) + +(define-method get_presence_message + (of-object "EmpathyContact") + (c-name "empathy_contact_get_presence_message") + (return-type "const-gchar*") +) + +(define-method set_presence_message + (of-object "EmpathyContact") + (c-name "empathy_contact_set_presence_message") + (return-type "none") + (parameters + '("const-gchar*" "message") ) ) @@ -1205,93 +1213,6 @@ -;; From empathy-presence.h - -(define-function empathy_presence_get_type - (c-name "empathy_presence_get_type") - (return-type "GType") -) - -(define-function empathy_presence_new - (c-name "empathy_presence_new") - (is-constructor-of "EmpathyPresence") - (return-type "EmpathyPresence*") -) - -(define-function empathy_presence_new_full - (c-name "empathy_presence_new_full") - (return-type "EmpathyPresence*") - (parameters - '("McPresence" "state") - '("const-gchar*" "status") - ) -) - -(define-method get_state - (of-object "EmpathyPresence") - (c-name "empathy_presence_get_state") - (return-type "McPresence") -) - -(define-method get_status - (of-object "EmpathyPresence") - (c-name "empathy_presence_get_status") - (return-type "const-gchar*") -) - -(define-method set_state - (of-object "EmpathyPresence") - (c-name "empathy_presence_set_state") - (return-type "none") - (parameters - '("McPresence" "state") - ) -) - -(define-method set_status - (of-object "EmpathyPresence") - (c-name "empathy_presence_set_status") - (return-type "none") - (parameters - '("const-gchar*" "status") - ) -) - -(define-function empathy_presence_sort_func - (c-name "empathy_presence_sort_func") - (return-type "gint") - (parameters - '("gconstpointer" "a") - '("gconstpointer" "b") - ) -) - -(define-function empathy_presence_state_get_default_status - (c-name "empathy_presence_state_get_default_status") - (return-type "const-gchar*") - (parameters - '("McPresence" "state") - ) -) - -(define-function empathy_presence_state_to_str - (c-name "empathy_presence_state_to_str") - (return-type "const-gchar*") - (parameters - '("McPresence" "state") - ) -) - -(define-function empathy_presence_state_from_str - (c-name "empathy_presence_state_from_str") - (return-type "McPresence") - (parameters - '("const-gchar*" "str") - ) -) - - - ;; From empathy-status-presets.h (define-function empathy_status_presets_get_all @@ -2058,6 +1979,30 @@ ) ) +(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") + ) +) + +(define-function empathy_presence_from_str + (c-name "empathy_presence_from_str") + (return-type "McPresence") + (parameters + '("const-gchar*" "str") + ) +) + ;; From tp-stream-engine-gen.h diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override index a21700fca..7425972ea 100644 --- a/python/pyempathy/pyempathy.override +++ b/python/pyempathy/pyempathy.override @@ -15,7 +15,6 @@ headers #include "empathy-idle.h" #include "empathy-log-manager.h" #include "empathy-message.h" -#include "empathy-presence.h" #include "empathy-status-presets.h" #include "empathy-time.h" #include "empathy-tp-chat.h" |