/* Copyright 2023-2024 Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include <glib-object.h>

#include <msg-authorizer.h>
#include <msg-service.h>

#include <contact/msg-contact.h>

#define MSG_TYPE_CONTACT_SERVICE (msg_contact_service_get_type ())

G_DECLARE_FINAL_TYPE (MsgContactService, msg_contact_service, MSG, CONTACT_SERVICE, MsgService);

MsgContactService *msg_contact_service_new (MsgAuthorizer *authorizer);

GList *
msg_contact_service_get_contacts (MsgContactService  *self,
                                  GCancellable       *cancellable,
                                  GError            **error);

MsgContact *
msg_contact_service_create (MsgContactService  *self,
                            MsgContact         *contact,
                            GCancellable       *cancellable,
                            GError            **error);

gboolean
msg_contact_service_delete (MsgContactService  *self,
                            MsgContact         *contact,
                            GCancellable       *cancellable,
                            GError            **error);
