2 # Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
4 # This file is part of python-purple.
6 # python-purple is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # python-purple is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27 cdef void connect_progress (connection.PurpleConnection *gc, const_char *text,
28 size_t step, size_t step_count):
29 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
33 (<object>connection_cbs["connect_progress"])("connect_progress")
37 cdef void connected (connection.PurpleConnection *gc):
38 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
42 (<object>connection_cbs["connected"])("connected")
46 cdef void disconnected (connection.PurpleConnection *gc):
47 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
51 (<object>connection_cbs["disconnected"])("disconnected")
55 cdef void notice (connection.PurpleConnection *gc, const_char *text):
56 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
60 (<object>connection_cbs["notice"])("notice")
64 cdef void report_disconnect (connection.PurpleConnection *gc,
66 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
67 "report_disconnect\n")
70 (<object>connection_cbs["report_disconnect"])("report_disconnect")
74 cdef void network_connected ():
75 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
76 "network_connected\n")
79 (<object>connection_cbs["network_connected"])("network_connected")
83 cdef void network_disconnected ():
84 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
85 "network_disconnected\n")
88 (<object>connection_cbs["network_disconnected"])("network_disconnected")
92 cdef void report_disconnect_reason (connection.PurpleConnection *gc,
93 connection.PurpleConnectionError reason,
95 debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection",
96 "report_disconnect_reason\n")
99 (<object>connection_cbs["report_disconnect_reason"])("report_disconnect_reason")