aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-09 22:30:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-09 22:30:15 +0800
commit495358677b5d6a583f72e7634b4e8e95cfd4e224 (patch)
tree24d14751bc794958dd8c801858e52a3f5d3032c0 /python/pyempathy
parent3aa2a2539c3cacd8005370390c1057fa48faa6fd (diff)
downloadgsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar.gz
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar.bz2
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar.lz
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar.xz
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.tar.zst
gsoc2013-empathy-495358677b5d6a583f72e7634b4e8e95cfd4e224.zip
Updatre python binding
svn path=/trunk/; revision=720
Diffstat (limited to 'python/pyempathy')
-rw-r--r--python/pyempathy/pyempathy.defs153
-rw-r--r--python/pyempathy/pyempathy.override11
2 files changed, 160 insertions, 4 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 8196a5a34..f9559611d 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -63,6 +63,27 @@
(gtype-id "EMPATHY_TYPE_IDLE")
)
+(define-object IrcNetwork
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcNetwork")
+ (gtype-id "EMPATHY_TYPE_IRC_NETWORK")
+)
+
+(define-object IrcNetworkManager
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcNetworkManager")
+ (gtype-id "EMPATHY_TYPE_IRC_NETWORK_MANAGER")
+)
+
+(define-object IrcServer
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcServer")
+ (gtype-id "EMPATHY_TYPE_IRC_SERVER")
+)
+
(define-object LogManager
(in-module "Empathy")
(parent "GObject")
@@ -135,8 +156,10 @@
(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")
)
)
@@ -975,6 +998,130 @@
+;; 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_irc_network_new
+ (c-name "empathy_irc_network_new")
+ (is-constructor-of "EmpathyIrcNetwork")
+ (return-type "EmpathyIrcNetwork*")
+ (parameters
+ '("const-gchar*" "name")
+ )
+)
+
+(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 remove_server
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_remove_server")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcServer*" "server")
+ )
+)
+
+(define-method set_server_position
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_set_server_position")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcServer*" "server")
+ '("gint" "pos")
+ )
+)
+
+
+
+;; 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*")
+ (parameters
+ '("const-gchar*" "global_file")
+ '("const-gchar*" "user_file")
+ )
+)
+
+(define-method add
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_add")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcNetwork*" "network")
+ )
+)
+
+(define-method remove
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_remove")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcNetwork*" "network")
+ )
+)
+
+(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")
+ )
+)
+
+
+
+;; 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_irc_server_new
+ (c-name "empathy_irc_server_new")
+ (is-constructor-of "EmpathyIrcServer")
+ (return-type "EmpathyIrcServer*")
+ (parameters
+ '("const-gchar*" "address")
+ '("guint" "port")
+ '("gboolean" "ssl")
+ )
+)
+
+
+
;; From empathy-log-manager.h
(define-function empathy_log_manager_get_type
@@ -1739,6 +1886,12 @@
(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")
diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override
index 7a7e6820d..64b65e920 100644
--- a/python/pyempathy/pyempathy.override
+++ b/python/pyempathy/pyempathy.override
@@ -4,15 +4,20 @@ headers
#include <pygobject.h>
#include "empathy-avatar.h"
#include "empathy-chandler.h"
-#include "empathy-chatroom-manager.h"
#include "empathy-chatroom.h"
+#include "empathy-chatroom-manager.h"
+#include "empathy-contact.h"
+#include "empathy-contact-factory.h"
#include "empathy-contact-groups.h"
#include "empathy-contact-list.h"
#include "empathy-contact-manager.h"
-#include "empathy-contact.h"
#include "empathy-debug.h"
+#include "empathy-enum-types.h"
#include "empathy-filter.h"
#include "empathy-idle.h"
+#include "empathy-irc-network.h"
+#include "empathy-irc-network-manager.h"
+#include "empathy-irc-server.h"
#include "empathy-log-manager.h"
#include "empathy-message.h"
#include "empathy-status-presets.h"
@@ -25,8 +30,6 @@ headers
#include "empathy-tp-group.h"
#include "empathy-tp-roomlist.h"
#include "empathy-utils.h"
-#include "empathy-contact-factory.h"
-#include "empathy-enum-types.h"
void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
void empathy_register_classes(PyObject *d);