Line |
Branch |
Exec |
Source |
1 |
|
|
/* Copyright 2023-2024 Jan-Michael Brummer |
2 |
|
|
* |
3 |
|
|
* This program is free software: you can redistribute it and/or modify |
4 |
|
|
* it under the terms of the GNU Lesser General Public License as published by |
5 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
6 |
|
|
* (at your option) any later version. |
7 |
|
|
* |
8 |
|
|
* This program is distributed in the hope that it will be useful, |
9 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 |
|
|
* GNU Lesser General Public License for more details. |
12 |
|
|
* |
13 |
|
|
* You should have received a copy of the GNU Lesser General Public License |
14 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 |
|
|
*/ |
16 |
|
|
|
17 |
|
|
#pragma once |
18 |
|
|
|
19 |
|
|
#include <glib-object.h> |
20 |
|
|
|
21 |
|
|
#include <msg-authorizer.h> |
22 |
|
|
#include <msg-service.h> |
23 |
|
|
#include <user/msg-user.h> |
24 |
|
|
|
25 |
|
|
#define MSG_TYPE_USER_SERVICE (msg_user_service_get_type ()) |
26 |
|
|
|
27 |
|
8 |
G_DECLARE_FINAL_TYPE (MsgUserService, msg_user_service, MSG, USER_SERVICE, MsgService); |
28 |
|
|
|
29 |
|
|
MsgUserService *msg_user_service_new (MsgAuthorizer *authorizer); |
30 |
|
|
|
31 |
|
|
MsgUser * |
32 |
|
|
msg_user_service_get_user (MsgUserService *self, |
33 |
|
|
const char *name, |
34 |
|
|
GCancellable *cancellable, |
35 |
|
|
GError **error); |
36 |
|
|
|
37 |
|
|
GBytes * |
38 |
|
|
msg_user_service_get_photo (MsgUserService *self, |
39 |
|
|
const char *mail, |
40 |
|
|
GCancellable *cancellable, |
41 |
|
|
GError **error); |
42 |
|
|
|
43 |
|
|
GList * |
44 |
|
|
msg_user_service_get_contacts (MsgUserService *self, |
45 |
|
|
GCancellable *cancellable, |
46 |
|
|
GError **error); |
47 |
|
|
|
48 |
|
|
GList * |
49 |
|
|
msg_user_service_find_users (MsgUserService *self, |
50 |
|
|
const char *name, |
51 |
|
|
GCancellable *cancellable, |
52 |
|
|
GError **error); |
53 |
|
|
|
54 |
|
|
GList * |
55 |
|
|
msg_user_service_get_contact_folders (MsgUserService *self, |
56 |
|
|
GCancellable *cancellable, |
57 |
|
|
GError **error); |
58 |
|
|
|