Improved Neo support
[gsmd2.git] / libfreesmartphone / freesmartphone-sms.h
blob25fd38cf1721aa75996f6ff53b8920329d106b2f
1 /*
2 * freesmartphone-sms.h
4 * Copyright(C) 2008 Ixonos Plc
6 * This program 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 2, or (at your option)
9 * any later version.
11 * This program 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, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Boston, MA 02111.
22 * Written by
23 * Heikki Paajanen
24 * Vesa Pikki
27 #ifndef FREESMARTPHONE_SMS_H
28 #define FREESMARTPHONE_SMS_H
30 #include <glib.h>
31 #include <dbus/dbus-glib.h>
33 #include "freesmartphone.h"
35 typedef void (*FSGSMSMSReply) (GError *error,
36 gpointer userdata);
38 typedef void (*FSGSMSMSGetServiceBearerReply) (gchar *mode,
39 GError *error,
40 gpointer userdata);
42 typedef void (*FSGSMSMSGetServiceCenterNumber) (gchar *mode,
43 GError *error,
44 gpointer userdata);
46 typedef void (*FSGSMSMSListMessages) (GArray* indices,
47 GError *error,
48 gpointer userdata);
50 typedef void (*FSGSMSMSStoreMessage) (gint index,
51 GError *error,
52 gpointer userdata);
54 typedef void (*FSGSMSMSRetrieveMessage) (GHashTable *message,
55 GError *error,
56 gpointer userdata);
58 typedef void (*FSGSMSMSMessageSent) (gboolean success,
59 gchar *reason,
60 gpointer userdata);
61 typedef void (*FSGSMSMSIncomingMessage) (gint index,
62 gpointer userdata);
64 gboolean fso_gsm_sms_send_message(FreeSmartphone *fs,
65 const gint index,
66 const gboolean want_report,
67 FSGSMSMSReply cb,
68 gpointer userdata);
70 gboolean fso_gsm_sms_retrieve_message(FreeSmartphone *fs,
71 gint number,
72 FSGSMSMSRetrieveMessage cb,
73 gpointer userdata);
75 gboolean fso_gsm_sms_store_message(FreeSmartphone *fs,
76 GHashTable *message,
77 FSGSMSMSStoreMessage cb,
78 gpointer userdata);
80 gboolean fso_gsm_sms_delete_message(FreeSmartphone *fs,
81 gint index,
82 FSGSMSMSReply cb,
83 gpointer userdata);
85 gboolean fso_gsm_sms_list_messages(FreeSmartphone *fs,
86 gchar *folder,
87 gboolean unread,
88 FSGSMSMSListMessages cb,
89 gpointer userdata);
91 gboolean fso_gsm_sms_set_service_center_number(FreeSmartphone *fs,
92 const gchar *mode,
93 FSGSMSMSReply cb,
94 gpointer userdata);
96 gboolean fso_gsm_sms_get_service_center_number(FreeSmartphone *fs,
97 FSGSMSMSGetServiceCenterNumber cb,
98 gpointer userdata);
100 gboolean fso_gsm_sms_set_service_bearer(FreeSmartphone *fs,
101 const gchar *mode,
102 FSGSMSMSReply cb,
103 gpointer userdata);
105 gboolean fso_gsm_sms_get_service_bearer(FreeSmartphone *fs,
106 FSGSMSMSGetServiceBearerReply cb,
107 gpointer userdata);
112 gboolean fso_gsm_sms_incoming_message_signal_remove(FreeSmartphone *fs,
113 FSGSMSMSIncomingMessage cb,
114 gpointer userdata);
116 gboolean fso_gsm_sms_incoming_message_signal(FreeSmartphone *fs,
117 FSGSMSMSIncomingMessage cb,
118 gpointer userdata);
120 gboolean fso_gsm_sms_message_sent_signal_remove(FreeSmartphone *fs,
121 FSGSMSMSMessageSent cb,
122 gpointer userdata);
124 gboolean fso_gsm_sms_message_sent_signal(FreeSmartphone *fs,
125 FSGSMSMSMessageSent cb,
126 gpointer userdata);
128 gboolean fso_gsm_sms_modify_message(FreeSmartphone *fs,
129 gint index,
130 GHashTable *message,
131 FSGSMSMSReply cb,
132 gpointer userdata);
134 #endif /* FREESMARTPHONE_CALL_H */