GHashTable *g_hash_table_new (GHashFunc, GEqualFunc)
void g_hash_table_insert (GHashTable*, gpointer, gpointer)
+ void g_hash_table_destroy (GHashTable*)
guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
guint g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
ctypedef struct PurpleAccount:
pass
+ ctypedef struct PurpleAccountUiOps:
+ pass
+
PurpleAccount *c_purple_account_new "purple_account_new" (const_char_ptr username, const_char_ptr protocol_id)
void c_purple_account_set_password "purple_account_set_password" (PurpleAccount *account, const_char_ptr password)
const_char_ptr c_purple_account_get_password "purple_account_get_password" (PurpleAccount *account)
void c_purple_account_set_enabled "purple_account_set_enabled" (PurpleAccount *account, const_char_ptr ui, gboolean value)
const_char_ptr c_purple_account_get_username "purple_account_get_username" (PurpleAccount *account)
GList *c_purple_accounts_get_all_active "purple_accounts_get_all_active" ()
+ void c_purple_accounts_set_ui_ops "purple_accounts_set_ui_ops" (PurpleAccountUiOps *ops)
ctypedef struct PurpleBlistNode:
pass
+ ctypedef struct PurpleBlistUiOps:
+ pass
+
ctypedef struct PurpleBuddy:
pass
void *c_purple_blist_get_handle "purple_blist_get_handle" ()
void c_purple_blist_load "purple_blist_load" ()
PurpleBuddyList* c_purple_blist_new "purple_blist_new" ()
+ void c_purple_blist_set_ui_ops "purple_blist_set_ui_ops" (PurpleBlistUiOps *ops)
PurpleBuddy *c_purple_buddy_new "purple_buddy_new" (PurpleAccount *account,
const_char_ptr screenname, const_char_ptr alias)
cdef extern from "libpurple/connection.h":
ctypedef struct PurpleConnection:
pass
+
+ ctypedef struct PurpleConnectionUiOps:
+ pass
+
+ void c_purple_connections_set_ui_ops "purple_connections_set_ui_ops" (PurpleConnectionUiOps *ops)
void *c_purple_conversations_get_handle "purple_conversations_get_handle" ()
PurpleConversation *c_purple_conversation_new "purple_conversation_new" (int type, PurpleAccount *account, const_char_ptr name)
void c_purple_conversation_set_ui_ops "purple_conversation_set_ui_ops" (PurpleConversation *conv, PurpleConversationUiOps *ops)
+ void c_purple_conversations_set_ui_ops "purple_conversations_set_ui_ops" (PurpleConversationUiOps *ops)
PurpleConvIm *c_purple_conversation_get_im_data "purple_conversation_get_im_data" (PurpleConversation *conv)
void c_purple_conv_im_send "purple_conv_im_send" (PurpleConvIm *im, const_char_ptr message)
void c_purple_conversation_destroy "purple_conversation_destroy" (PurpleConversation *conv)
--- /dev/null
+#
+# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
+#
+# This file is part of python-purple.
+#
+# python-purple is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# python-purple is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+cdef extern from "libpurple/ft.h":
+ ctypedef struct PurpleXferUiOps:
+ pass
+
+ void c_purple_xfers_set_ui_ops "purple_xfers_set_ui_ops" (PurpleXferUiOps *ops)
--- /dev/null
+#
+# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
+#
+# This file is part of python-purple.
+#
+# python-purple is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# python-purple is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+cdef extern from "libpurple/notify.h":
+ ctypedef struct PurpleNotifyUiOps:
+ pass
+
+ void c_purple_notify_set_ui_ops "purple_notify_set_ui_ops" (PurpleNotifyUiOps *ops)
--- /dev/null
+#
+# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
+#
+# This file is part of python-purple.
+#
+# python-purple is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# python-purple is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+cdef extern from "libpurple/request.h":
+ ctypedef struct PurpleRequestUiOps:
+ pass
+
+ void c_purple_request_set_ui_ops "purple_request_set_ui_ops" (PurpleRequestUiOps *ops)
--- /dev/null
+#
+# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
+#
+# This file is part of python-purple.
+#
+# python-purple is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# python-purple is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+cdef extern from "libpurple/roomlist.h":
+ ctypedef struct PurpleRoomlistUiOps:
+ pass
+
+ void c_purple_roomlist_set_ui_ops "purple_roomlist_set_ui_ops" (PurpleRoomlistUiOps *ops)
include "libpurple/core.pxd"
include "libpurple/debug.pxd"
include "libpurple/eventloop.pxd"
+include "libpurple/ft.pxd"
include "libpurple/idle.pxd"
+include "libpurple/notify.pxd"
include "libpurple/plugin.pxd"
include "libpurple/pounce.pxd"
include "libpurple/prefs.pxd"
include "libpurple/proxy.pxd"
+include "libpurple/request.pxd"
+include "libpurple/roomlist.pxd"
include "libpurple/signals.pxd"
include "libpurple/status.pxd"
include "libpurple/savedstatuses.pxd"
c_purple_prefs_load()
c_purple_prefs_add_none("/carman")
- c_purple_prefs_add_none("/carman/plugins")
# __core_ui_ops_ui_prefs_init
cdef void __core_ui_ops_debug_init(self):
cdef void __core_ui_ops_ui_init(self):
c_purple_debug(PURPLE_DEBUG_INFO, "core_ui_ops", "ui_init\n")
+
+ # FIXME: Add core ui initialization here
# __core_ui_ops_ui_init
cdef void __core_ui_ops_quit(self):
c_purple_debug(PURPLE_DEBUG_INFO, "core_ui_ops", "quit\n")
+ c_purple_accounts_set_ui_ops(NULL)
+ c_purple_connections_set_ui_ops(NULL)
+ c_purple_blist_set_ui_ops(NULL)
+ c_purple_conversations_set_ui_ops(NULL)
+ c_purple_notify_set_ui_ops(NULL)
+ c_purple_request_set_ui_ops(NULL)
+ c_purple_xfers_set_ui_ops(NULL)
+ c_purple_roomlist_set_ui_ops(NULL)
+
+ if self.c_ui_info:
+ g_hash_table_destroy(self.c_ui_info)
# __core_ui_ops_quit
cdef GHashTable *__core_ui_ops_get_ui_info(self):