00001 #ifndef DBUS_API_H
00002 #define DBUS_API_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
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