icd/icd_osso_ic.c File Reference

#include <string.h>
#include <dbus/dbus.h>
#include <gconf/gconf.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <osso-ic-ui-dbus.h>
#include <osso-ic.h>
#include <osso-ic-dbus.h>
#include <icd_osso_ic.h>
#include "icd_dbus.h"
#include "icd_log.h"
#include "icd_gconf.h"
#include "network_api.h"
#include "icd_iap.h"
#include "icd_request.h"
#include "icd_tracking_info.h"
#include "icd_status.h"
#include "icd_wlan_defs.h"

Classes

struct  icd_osso_ic_handler
struct  icd_osso_ic_mcall_data
struct  icd_osso_ic_ipdata
struct  icd_osso_ic_stats_data
struct  icd_osso_ic_get_state_data

Defines

#define ICD_OSSO_UI_REQUEST_TIMEOUT   4 * 1000

Typedefs

typedef DBusMessage *(* icd_osso_ic_message_handler )(DBusMessage *request, void *user_data)

Functions

static gchar * icd_osso_ic_get_type (const gchar *iap_name)
static void icd_osso_ic_ui_pending (DBusPendingCall *pending, void *user_data)
static gpointer icd_osso_ic_ipinfo_get_first (struct icd_request *request, gpointer user_data)
static void icd_osso_ic_connstats_error (DBusMessage *method_call)
static void icd_osso_ic_ipinfo_cb (const gpointer addr_info_cb_token, const gchar *network_type, const guint network_attrs, const gchar *network_id, gchar *ip_address, gchar *ip_netmask, gchar *ip_gateway, gchar *ip_dns1, gchar *ip_dns2, gchar *ip_dns3)
static DBusMessage * icd_osso_ic_ipinfo (DBusMessage *method_call, void *user_data)
static void icd_osso_ic_connstats_ip_cb (const gpointer ip_stats_cb_token, const gchar *network_type, const guint network_attrs, const gchar *network_id, guint time_active, guint rx_bytes, guint tx_bytes)
static void icd_osso_ic_connstats_link_post_cb (const gpointer link_post_stats_cb_token, const gchar *network_type, const guint network_attrs, const gchar *network_id, guint time_active, guint rx_bytes, guint tx_bytes)
static void icd_osso_ic_connstats_link_cb (const gpointer link_stats_cb_token, const gchar *network_type, const guint network_attrs, const gchar *network_id, guint time_active, gint signal, gchar *station_id, gint dB, guint rx_bytes, guint tx_bytes)
static void icd_osso_ic_connstats_link_get (struct icd_iap *iap, DBusMessage *method_call)
static gpointer icd_osso_ic_connstats_get_first (struct icd_request *request, gpointer user_data)
static DBusMessage * icd_osso_ic_connstats (DBusMessage *method_call, void *user_data)
static gpointer icd_osso_ic_get_state_foreach (struct icd_request *request, gpointer user_data)
static DBusMessage * icd_osso_ic_get_state (DBusMessage *method_call, void *user_data)
void icd_osso_ic_send_ack (GSList *tracking_list, const gchar *iap_name)
void icd_osso_ic_send_nack (GSList *tracking_list)
static DBusMessage * icd_osso_ic_disconnect (DBusMessage *method_call, void *user_data)
static DBusMessage * icd_osso_ic_shutdown (DBusMessage *request, void *user_data)
static DBusMessage * icd_osso_ic_make_request (struct icd_request *merge_request, struct icd_tracking_info *track, DBusMessage *message, const gchar *requested_iap, const guint flags)
static DBusMessage * icd_osso_ic_connect (DBusMessage *method_call, void *user_data)
static DBusMessage * icd_osso_ic_activate (DBusMessage *method_call, void *user_data)
static DBusMessage * icd_osso_ic_bg_killed (DBusMessage *method_call, void *user_data)
static icd_osso_ic_message_handler icd_osso_ic_find_handler (DBusMessage *msg, struct icd_osso_ic_handler *handlers)
static DBusHandlerResult icd_osso_ic_request (DBusConnection *connection, DBusMessage *message, void *user_data)
void icd_osso_ui_send_retry (const gchar *iap_name, const gchar *error, icd_osso_ui_cb_fn cb, gpointer user_data)
void icd_osso_ui_send_save_cancel (gpointer send_save_token)
gpointer icd_osso_ui_send_save (const gchar *iap_name, icd_osso_ui_cb_fn cb, gpointer user_data)
static DBusMessage * icd_osso_ui_retry (DBusMessage *signal, void *user_data)
static DBusMessage * icd_osso_ui_disconnect (DBusMessage *signal, void *user_data)
static DBusMessage * icd_osso_ui_save (DBusMessage *signal, void *user_data)
static DBusHandlerResult icd_osso_ui_signal (DBusConnection *connection, DBusMessage *message, void *user_data)
gboolean icd_osso_ic_init (struct icd_context *icd_ctx)
void icd_osso_ic_deinit (void)

Variables

static struct icd_osso_ic_handler icd_osso_ic_htable []
static struct icd_osso_ic_handler icd_osso_ui_htable []

Detailed Description

Copyright (C) 2004-2007 Nokia Corporation. All rights reserved.

Author:
timo.teras@nokia.com

patrik.flykt@nokia.com


Generated on Thu Mar 11 09:04:50 2010 for ICd2 by  doxygen 1.5.6