Replaced all 'dict.has_key(item)' with 'item in dict' expressions.
[python-purple] / notify_cbs.pxd
1 #
2 #  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
3 #
4 #  This file is part of python-purple.
5 #
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.
10 #
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.
15 #
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/>.
18 #
19
20 cimport purple
21
22 cdef extern from *:
23     ctypedef char const_char "const char"
24     ctypedef int size_t
25
26 notify_cbs = {}
27
28 cdef void *notify_message(notify.PurpleNotifyMsgType type, \
29         const_char *title, const_char *primary, const_char *secondary):
30     """
31     TODO
32     """
33     debug.purple_debug_info("notify", "%s", "notify-message\n")
34     if "notify-message" in notify_cbs:
35         (<object> notify_cbs["notify-message"])("notify-message: TODO")
36
37 cdef void *notify_email(connection.PurpleConnection *gc, \
38         const_char *subject, const_char *_from, const_char *to, \
39         const_char *url):
40     """
41     TODO
42     """
43     debug.purple_debug_info("notify", "%s", "notify-email\n")
44     if "notify-email" in notify_cbs:
45         (<object> notify_cbs["notify-email"])("notify-email: TODO")
46
47 cdef void *notify_emails(connection.PurpleConnection *gc, size_t count, \
48         glib.gboolean detailed, const_char **subjects, \
49         const_char **froms, const_char **tos, const_char **urls):
50     """
51     TODO
52     """
53     debug.purple_debug_info("notify", "%s", "notify-emails\n")
54     if "notify-emails" in notify_cbs:
55         (<object> notify_cbs["notify-emails"])("notify-emails: TODO")
56
57 cdef void *notify_formatted(const_char *title, const_char *primary, \
58         const_char *secondary, const_char *text):
59     """
60     TODO
61     """
62     debug.purple_debug_info("notify", "%s", "notify-formatted\n")
63     if "notify-formatted" in notify_cbs:
64         (<object> notify_cbs["notify-formatted"])("notify-formatted: TODO")
65
66 cdef void *notify_searchresults(connection.PurpleConnection *gc, \
67         const_char *title, const_char *primary, const_char *secondary, \
68         notify.PurpleNotifySearchResults *results, glib.gpointer user_data):
69     """
70     TODO
71     """
72     debug.purple_debug_info("notify", "%s", "notify-searchresults\n")
73     if "notify-searchresults" in notify_cbs:
74         (<object> notify_cbs["notify-searchresults"]) \
75             ("notify-searchresults: TODO")
76
77 cdef void notify_searchresults_new_rows(connection.PurpleConnection *gc, \
78         notify.PurpleNotifySearchResults *results, void *data):
79     """
80     TODO
81     """
82     debug.purple_debug_info("notify", "%s", "notify-searchresults-new-rows\n")
83     if "notify-searchresults-new-rows" in notify_cbs:
84         (<object> notify_cbs["notify-searchresults-new-rows"]) \
85             ("notify-searchresults-new-rows: TODO")
86
87 cdef void *notify_userinfo(connection.PurpleConnection *gc, const_char *who, \
88         notify.PurpleNotifyUserInfo *user_info):
89     """
90     TODO
91     """
92     debug.purple_debug_info("notify", "%s", "notify-userinfo\n")
93     if "notify-userinfo" in notify_cbs:
94         (<object> notify_cbs["notify-userinfo"])("notify-userinfo: TODO")
95
96 cdef void *notify_uri(const_char *uri):
97     """
98     TODO
99     """
100     debug.purple_debug_info("notify", "%s", "notify-uri\n")
101     if "notify-uri" in notify_cbs:
102         (<object> notify_cbs["notify-uri"])("notify-uri: TODO")
103
104 cdef void close_notify(notify.PurpleNotifyType type, void *ui_handle):
105     """
106     TODO
107     """
108     debug.purple_debug_info("notify", "%s", "close-notify\n")
109     if "close-notify" in notify_cbs:
110         (<object> notify_cbs["close-notify"])("close-notify: TODO")