/* * ConnMan GTK GUI * * Copyright (C) 2015 Intel Corporation. All rights reserved. * Author: Jaakko Hannikainen * * 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 2 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 . */ #ifndef _CONNMAN_GTK_SETTINGS_H #define _CONNMAN_GTK_SETTINGS_H #include struct settings; struct settings_page; #include "service.h" #include "settings_content.h" #include "util.h" struct settings { GtkWidget *window; GtkWidget *list; GtkWidget *notebook; GtkWidget *apply; int invalid_count; struct service *serv; void (*closed)(struct service *serv); DualHashTable *callbacks; DualHashTable *contents; }; struct settings_page { GtkWidget *grid; GtkWidget *item; struct settings *sett; int index; }; struct settings *settings_create(struct service *serv, void (*closed)(struct service *serv)); void settings_update(struct settings *sett, const gchar *key, const gchar *subkey, GVariant *value); void settings_set_callback(struct settings *sett, const gchar *key, const gchar *subkey, struct content_callback *cb); #endif /* _CONNMAN_GTK_SETTINGS_H */