icd/dbus_api.h

Go to the documentation of this file.
00001 #ifndef DBUS_API_H
00002 #define DBUS_API_H
00003 
00004 /*
00005  This file is part of icd2-dev, ICd2 development header files.
00006 
00007  Copyright (C) 2007-2008 Nokia Corporation. All rights reserved.
00008 
00009  Contact: Patrik Flykt <patrik.flykt@nokia.com>
00010 
00011  Redistribution and use in source and binary forms, with or without
00012  modification, are permitted provided that the following conditions are met:
00013 
00014   * Redistributions of source code must retain the above copyright notice,
00015     this list of conditions and the following disclaimer.
00016   * Redistributions in binary form must reproduce the above copyright notice,
00017     this list of conditions and the following disclaimer in the documentation
00018     and/or other materials provided with the distribution.
00019   * Neither the name of Nokia Corporation nor the names of its contributors
00020     may be used to endorse or promote products derived from this software
00021     without specific prior written permission.
00022 
00023  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00024  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00025  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00026  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00027  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00028  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00029  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00030  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00031  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00032  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00033  POSSIBILITY OF SUCH DAMAGE.
00034 */
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 #include <glib.h>
00041 
00052 #define ICD_DBUS_API_INTERFACE   "com.nokia.icd2"
00053 
00055 #define ICD_DBUS_API_PATH        "/com/nokia/icd2"
00056 
00058 enum icd_scan_request_flags {
00060   ICD_SCAN_REQUEST_ACTIVE = 0,
00062   ICD_SCAN_REQUEST_ACTIVE_SAVED = 1,
00066   ICD_SCAN_REQUEST_PASSIVE = 2
00067 };
00068 
00081 #define ICD_DBUS_API_SCAN_REQ     "scan_req"
00082 
00092 #define ICD_DBUS_API_SCAN_CANCEL  "scan_cancel_req"
00093 
00095 enum icd_scan_status {
00097   ICD_SCAN_NEW = 0,
00100   ICD_SCAN_UPDATE = 1,
00103   ICD_SCAN_NOTIFY = 2,
00105   ICD_SCAN_EXPIRE = 3,
00108   ICD_SCAN_COMPLETE = 4
00109 };
00110 
00133 #define ICD_DBUS_API_SCAN_SIG     "scan_result_sig"
00134 
00136 enum icd_connection_flags {
00138   ICD_CONNECTION_FLAG_NONE = 0,
00140   ICD_CONNECTION_FLAG_APPLICATION_EVENT = 0,
00142   ICD_CONNECTION_FLAG_USER_EVENT = 1,
00143 
00145   ICD_CONNECTION_FLAG_UI_EVENT = 0x8000
00146 };
00147 
00173 #define ICD_DBUS_API_CONNECT_REQ "connect_req"
00174 
00186 #define ICD_DBUS_API_SELECT_REQ "select_req"
00187 
00190 enum icd_connect_status {
00192   ICD_CONNECTION_SUCCESSFUL = 0,
00194   ICD_CONNECTION_NOT_CONNECTED = 1,
00196   ICD_CONNECTION_DISCONNECTED = 2
00197 };
00198 
00212 #define ICD_DBUS_API_CONNECT_SIG "connect_sig"
00213 
00236 #define ICD_DBUS_API_DISCONNECT_REQ "disconnect_req"
00237 
00265 #define ICD_DBUS_API_STATE_REQ "state_req"
00266 
00268 enum icd_connection_state {
00270   ICD_STATE_DISCONNECTED = 0,
00272   ICD_STATE_CONNECTING = 1,
00274   ICD_STATE_CONNECTED = 2,
00276   ICD_STATE_DISCONNECTING = 3,
00278   ICD_STATE_LIMITED_CONN_ENABLED = 4,
00280   ICD_STATE_LIMITED_CONN_DISABLED = 5,
00281   
00283   ICD_STATE_SEARCH_START = 8,
00285   ICD_STATE_SEARCH_STOP = 9,
00286 
00288   ICD_STATE_INTERNAL_ADDRESS_ACQUIRED = 15
00289 };
00290 
00321 #define ICD_DBUS_API_STATE_SIG "state_sig"
00322 
00345 #define ICD_DBUS_API_STATISTICS_REQ "statistics_req"
00346 
00363 #define ICD_DBUS_API_STATISTICS_SIG "statistics_sig"
00364 
00392 #define ICD_DBUS_API_ADDRINFO_REQ "addrinfo_req"
00393 
00414 #define ICD_DBUS_API_ADDRINFO_SIG "addrinfo_sig"
00415 
00418 #ifdef __cplusplus
00419 }
00420 #endif
00421 
00422 #endif

Generated on Tue Feb 24 16:21:36 2009 for ICd2 by  doxygen 1.5.1