Branch data Line data Source code
1 : : // SPDX-License-Identifier: GPL-3.0-or-later
2 : : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
3 : :
4 : : #pragma once
5 : :
6 : : #include <gio/gio.h>
7 : : #include <valent.h>
8 : :
9 : : #include "valent-message.h"
10 : :
11 : : G_BEGIN_DECLS
12 : :
13 : : #define VALENT_TYPE_SMS_STORE (valent_sms_store_get_type())
14 : :
15 [ + - + - : 162 : G_DECLARE_FINAL_TYPE (ValentSmsStore, valent_sms_store, VALENT, SMS_STORE, ValentContext)
+ + + + +
- ]
16 : :
17 : : ValentSmsStore * valent_sms_store_new (ValentContext *parent);
18 : :
19 : : void valent_sms_store_add_message (ValentSmsStore *store,
20 : : ValentMessage *message,
21 : : GCancellable *cancellable,
22 : : GAsyncReadyCallback callback,
23 : : gpointer user_data);
24 : : void valent_sms_store_add_messages (ValentSmsStore *store,
25 : : GPtrArray *messages,
26 : : GCancellable *cancellable,
27 : : GAsyncReadyCallback callback,
28 : : gpointer user_data);
29 : : gboolean valent_sms_store_add_messages_finish (ValentSmsStore *store,
30 : : GAsyncResult *result,
31 : : GError **error);
32 : : void valent_sms_store_remove_message (ValentSmsStore *store,
33 : : int64_t message_id,
34 : : GCancellable *cancellable,
35 : : GAsyncReadyCallback callback,
36 : : gpointer user_data);
37 : : gboolean valent_sms_store_remove_message_finish (ValentSmsStore *store,
38 : : GAsyncResult *result,
39 : : GError **error);
40 : : void valent_sms_store_remove_thread (ValentSmsStore *store,
41 : : int64_t thread_id,
42 : : GCancellable *cancellable,
43 : : GAsyncReadyCallback callback,
44 : : gpointer user_data);
45 : : gboolean valent_sms_store_remove_thread_finish (ValentSmsStore *store,
46 : : GAsyncResult *result,
47 : : GError **error);
48 : : void valent_sms_store_find_messages (ValentSmsStore *store,
49 : : const char *query,
50 : : GCancellable *cancellable,
51 : : GAsyncReadyCallback callback,
52 : : gpointer user_data);
53 : : GPtrArray * valent_sms_store_find_messages_finish (ValentSmsStore *store,
54 : : GAsyncResult *result,
55 : : GError **error);
56 : : void valent_sms_store_get_message (ValentSmsStore *store,
57 : : int64_t message_id,
58 : : GCancellable *cancellable,
59 : : GAsyncReadyCallback callback,
60 : : gpointer user_data);
61 : : ValentMessage * valent_sms_store_get_message_finish (ValentSmsStore *store,
62 : : GAsyncResult *result,
63 : : GError **error);
64 : : GListModel * valent_sms_store_get_summary (ValentSmsStore *store);
65 : : GListModel * valent_sms_store_get_thread (ValentSmsStore *store,
66 : : int64_t thread_id);
67 : : int64_t valent_sms_store_get_thread_date (ValentSmsStore *store,
68 : : int64_t thread_id);
69 : : void valent_sms_store_message_added (ValentSmsStore *store,
70 : : ValentMessage *message);
71 : : void valent_sms_store_message_removed (ValentSmsStore *store,
72 : : ValentMessage *message);
73 : : void valent_sms_store_message_changed (ValentSmsStore *store,
74 : : ValentMessage *message);
75 : :
76 : : G_END_DECLS
|