/* urc-application.h
 *
 * Copyright 2009-2025 Daniele Napolitano <dnax88@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#ifndef __URC_APP_H__
#define __URC_APP_H__

#include <gtk/gtk.h>

#include "urc-upnp.h"

/* Options variables */
typedef struct {
    gchar   *bind_if;
    guint    bind_port;
    gboolean hide_ext_ip_address;
} UrcOptions;

#define URC_RESOURCE_BASE "/org/upnp-router-control/"

G_BEGIN_DECLS

#define URC_TYPE_APPLICATION (urc_application_get_type ())

G_DECLARE_FINAL_TYPE (UrcApplication, urc_application, URC, APPLICATION, GtkApplication)

GSettings       *urc_application_get_settings (UrcApplication*);

void
urc_application_set_router (UrcApplication *self, RouterInfo *router);

RouterInfo *
urc_application_get_router (UrcApplication *self);

const UrcOptions *
urc_application_get_options (UrcApplication *self);


GtkApplication  *urc_application_new                        (void);

G_END_DECLS


#endif /* __URC_APP_H__ */
