#include <string.h>
#include <glib.h>
#include <gconf/gconf-client.h>
#include <dbus/dbus.h>
#include <mce/dbus-names.h>
#include <mce/mode-names.h>
#include <osso-ic.h>
#include <osso-ic-gconf.h>
#include "icd_log.h"
#include "icd_dbus.h"
#include "policy_api.h"
#include "network_api.h"
#include "icd_srv_provider.h"
Classes | |
struct | always_online_data |
Defines | |
#define | POLICY_ALWAYS_ONLINE_MCE_TIMEOUT 5000 |
#define | POLICY_ALWAYS_ONLINE_MCE_FILTER "member='" MCE_DEVICE_MODE_SIG "'" |
#define | POLICY_ALWAYS_ONLINE_IAP_TIMEOUT 500 |
Functions | |
static void | policy_always_online_run (struct always_online_data *data, gboolean immediately) |
void | icd_policy_init (struct icd_policy_api *policy_api, icd_policy_nw_add_fn add_network, icd_policy_request_merge_fn merge_requests, icd_policy_request_make_new_fn make_request, icd_policy_scan_start_fn not_used_1, icd_policy_scan_stop_fn not_used_2, icd_policy_nw_close_fn not_used_3, icd_policy_network_priority_fn priority, icd_policy_service_module_check_fn srv_check) |
static void | policy_always_online_cancel_timer (struct always_online_data *data) |
static void | policy_always_online_make_request (struct always_online_data *data) |
static gboolean | policy_always_online_make_request_cb (gpointer user_data) |
static void | policy_always_online_connected (struct icd_policy_request *network, GSList *existing_connections, gpointer *private) |
static void | policy_always_online_disconnected (struct icd_policy_request *network, const gchar *err_str, GSList *existing_connections, gpointer *private) |
static void | policy_always_online_flightmode (DBusMessage *message, struct always_online_data *data) |
static DBusHandlerResult | policy_always_online_flightmode_sig (DBusConnection *connection, DBusMessage *message, void *user_data) |
static void | policy_always_online_flightmode_cb (DBusPendingCall *pending, void *user_data) |
static gboolean | policy_always_online_flightmode_init (struct always_online_data *data) |
static void | policy_always_online_cancel_pending (struct always_online_data *data) |
static void | policy_always_online_destruct (gpointer *private) |
static guint | policy_always_online_count_iaps (void) |
static gboolean | policy_always_online_check (gpointer user_data) |
static void | policy_always_online_nw_params_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data) |
static void | policy_always_online_connections_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data) |
static gboolean | policy_always_online_gconf_init (struct always_online_data *data) |