GCC Code Coverage Report


Directory: src/
File: src/contact/msg-contact-service.h
Date: 2024-07-13 00:54:47
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /* Copyright 2023-2024 Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
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
24 #include <contact/msg-contact.h>
25
26 #define MSG_TYPE_CONTACT_SERVICE (msg_contact_service_get_type ())
27
28 3 G_DECLARE_FINAL_TYPE (MsgContactService, msg_contact_service, MSG, CONTACT_SERVICE, MsgService);
29
30 MsgContactService *msg_contact_service_new (MsgAuthorizer *authorizer);
31
32 GList *
33 msg_contact_service_get_contacts (MsgContactService *self,
34 GCancellable *cancellable,
35 GError **error);
36
37 MsgContact *
38 msg_contact_service_create (MsgContactService *self,
39 MsgContact *contact,
40 GCancellable *cancellable,
41 GError **error);
42
43 gboolean
44 msg_contact_service_delete (MsgContactService *self,
45 MsgContact *contact,
46 GCancellable *cancellable,
47 GError **error);
48