Blame src/gclue-config.h

Packit Service b2c451
/* vim: set et ts=8 sw=8: */
Packit Service b2c451
/* gclue-config.h
Packit Service b2c451
 *
Packit Service b2c451
 * Copyright 2013 Red Hat, Inc.
Packit Service b2c451
 *
Packit Service b2c451
 * Geoclue is free software; you can redistribute it and/or modify it under
Packit Service b2c451
 * the terms of the GNU General Public License as published by the Free
Packit Service b2c451
 * Software Foundation; either version 2 of the License, or (at your option)
Packit Service b2c451
 * any later version.
Packit Service b2c451
 *
Packit Service b2c451
 * Geoclue is distributed in the hope that it will be useful, but WITHOUT ANY
Packit Service b2c451
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
Packit Service b2c451
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
Packit Service b2c451
 * details.
Packit Service b2c451
 *
Packit Service b2c451
 * You should have received a copy of the GNU General Public License along
Packit Service b2c451
 * with Geoclue; if not, write to the Free Software Foundation, Inc.,
Packit Service b2c451
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit Service b2c451
 *
Packit Service b2c451
 * Authors: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
Packit Service b2c451
 */
Packit Service b2c451
Packit Service b2c451
#ifndef GCLUE_CONFIG_H
Packit Service b2c451
#define GCLUE_CONFIG_H
Packit Service b2c451
Packit Service b2c451
#include <gio/gio.h>
Packit Service b2c451
#include "gclue-location.h"
Packit Service b2c451
#include "gclue-client-info.h"
Packit Service b2c451
#include "gclue-config.h"
Packit Service b2c451
Packit Service b2c451
G_BEGIN_DECLS
Packit Service b2c451
Packit Service b2c451
#define GCLUE_TYPE_CONFIG            (gclue_config_get_type())
Packit Service b2c451
#define GCLUE_CONFIG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_CONFIG, GClueConfig))
Packit Service b2c451
#define GCLUE_CONFIG_CONST(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_CONFIG, GClueConfig const))
Packit Service b2c451
#define GCLUE_CONFIG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GCLUE_TYPE_CONFIG, GClueConfigClass))
Packit Service b2c451
#define GCLUE_IS_CONFIG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCLUE_TYPE_CONFIG))
Packit Service b2c451
#define GCLUE_IS_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GCLUE_TYPE_CONFIG))
Packit Service b2c451
#define GCLUE_CONFIG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GCLUE_TYPE_CONFIG, GClueConfigClass))
Packit Service b2c451
Packit Service b2c451
typedef enum {
Packit Service b2c451
        GCLUE_APP_PERM_ALLOWED,
Packit Service b2c451
        GCLUE_APP_PERM_DISALLOWED,
Packit Service b2c451
        GCLUE_APP_PERM_ASK_AGENT
Packit Service b2c451
} GClueAppPerm;
Packit Service b2c451
Packit Service b2c451
typedef struct _GClueConfig        GClueConfig;
Packit Service b2c451
typedef struct _GClueConfigClass   GClueConfigClass;
Packit Service b2c451
typedef struct _GClueConfigPrivate GClueConfigPrivate;
Packit Service b2c451
Packit Service b2c451
struct _GClueConfig
Packit Service b2c451
{
Packit Service b2c451
        GObject parent;
Packit Service b2c451
Packit Service b2c451
        /*< private >*/
Packit Service b2c451
        GClueConfigPrivate *priv;
Packit Service b2c451
};
Packit Service b2c451
Packit Service b2c451
struct _GClueConfigClass
Packit Service b2c451
{
Packit Service b2c451
        GObjectClass parent_class;
Packit Service b2c451
};
Packit Service b2c451
Packit Service b2c451
GType gclue_config_get_type (void) G_GNUC_CONST;
Packit Service b2c451
Packit Service b2c451
GClueConfig *       gclue_config_get_singleton          (void);
Packit Service b2c451
gboolean            gclue_config_is_agent_allowed       (GClueConfig     *config,
Packit Service b2c451
                                                         const char      *desktop_id,
Packit Service b2c451
                                                         GClueClientInfo *agent_info);
Packit Service b2c451
gsize               gclue_config_get_num_allowed_agents (GClueConfig     *config);
Packit Service b2c451
GClueAppPerm        gclue_config_get_app_perm           (GClueConfig     *config,
Packit Service b2c451
                                                         const char      *desktop_id,
Packit Service b2c451
                                                         GClueClientInfo *app_info);
Packit Service b2c451
gboolean            gclue_config_is_system_component    (GClueConfig     *config,
Packit Service b2c451
                                                         const char      *desktop_id);
Packit Service b2c451
const char *        gclue_config_get_wifi_url           (GClueConfig     *config);
Packit Service b2c451
const char *        gclue_config_get_wifi_submit_url    (GClueConfig     *config);
Packit Service b2c451
const char *        gclue_config_get_wifi_submit_nick   (GClueConfig     *config);
Packit Service b2c451
void                gclue_config_set_wifi_submit_nick   (GClueConfig     *config,
Packit Service b2c451
                                                         const char      *nick);
Packit Service b2c451
gboolean            gclue_config_get_wifi_submit_data   (GClueConfig     *config);
Packit Service b2c451
gboolean            gclue_config_get_enable_wifi_source (GClueConfig     *config);
Packit Service b2c451
gboolean            gclue_config_get_enable_3g_source   (GClueConfig     *config);
Packit Service b2c451
gboolean            gclue_config_get_enable_cdma_source (GClueConfig     *config);
Packit Service b2c451
gboolean            gclue_config_get_enable_modem_gps_source
Packit Service b2c451
                                                        (GClueConfig     *config);
Packit Service b2c451
gboolean            gclue_config_get_enable_nmea_source (GClueConfig     *config);
Packit Service b2c451
void                gclue_config_set_wifi_submit_data   (GClueConfig     *config,
Packit Service b2c451
                                                         gboolean         submit);
Packit Service b2c451
Packit Service b2c451
G_END_DECLS
Packit Service b2c451
Packit Service b2c451
#endif /* GCLUE_CONFIG_H */