From: Dongchul Lim Date: Mon, 19 May 2014 06:54:08 +0000 (+0900) Subject: Header files unification X-Git-Tag: submit/tizen_mobile/20150323.032021~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af8affdbcbdc9d3471d60f09cf30f6ca129c2a07;p=platform%2Fcore%2Ftelephony%2Flibtcore.git Header files unification Change-Id: Ibc899c0a999846302df50ad3a858e2015571ee0b --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a7699c8..9d5162a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ SET(INCLUDEDIR "\${prefix}/include") # Set required packages INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED glib-2.0 gudev-1.0) +pkg_check_modules(pkgs REQUIRED glib-2.0 gudev-1.0 gobject-2.0 gio-2.0 gio-unix-2.0) FOREACH(flag ${pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") @@ -18,7 +18,7 @@ ENDFOREACH(flag) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SOURCE_DIR}/include ${EXTRA_CFLAGS} -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wmissing-declarations -Wredundant-decls -Wcast-align") -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include/common) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/tel-headers/include) ADD_DEFINITIONS("-DFEATURE_TLOG_DEBUG") ADD_DEFINITIONS("-DTCORE_LOG_TAG=\"TCORE\"") @@ -28,7 +28,6 @@ MESSAGE(${CMAKE_C_FLAGS}) MESSAGE(${CMAKE_EXE_LINKER_FLAGS}) SET(SRCS - src/server.c src/plugin.c src/hal.c @@ -54,8 +53,6 @@ SET(SRCS src/mux.c ) - - # library build ADD_LIBRARY(tcore SHARED ${SRCS}) TARGET_LINK_LIBRARIES(tcore ${pkgs_LDFLAGS}) @@ -65,10 +62,11 @@ SET_TARGET_PROPERTIES(tcore PROPERTIES VERSION 0.0.0 SOVERSION 0 OUTPUT_NAME tco SET(PREFIX ${CMAKE_INSTALL_PREFIX}) CONFIGURE_FILE(tcore.pc.in tcore.pc @ONLY) - # install INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include/tcore) INSTALL(TARGETS tcore LIBRARY DESTINATION ${LIB_INSTALL_DIR}) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tcore.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME libtcore) + +ADD_SUBDIRECTORY(tel-headers) diff --git a/include/common/tel_call.h b/include/common/tel_call.h deleted file mode 100644 index 5b18ac6..0000000 --- a/include/common/tel_call.h +++ /dev/null @@ -1,831 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_CALL_H__ -#define __TEL_CALL_H__ - -#include -#include - -/** -* @addtogroup TAPI_CALL -* @{ -* -* @file tel_call.h -* @brief TAPI Call Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_CALL_INTERFACE TELEPHONY_SERVICE".Call" - -#define TEL_CALL_CALLING_NAME_LEN_MAX 82 /**< The maximum length of the string for calling party name. */ -#define TEL_CALL_CALLING_NUMBER_LEN_MAX 82 /**< Maximum Dialling Digit Length */ -#define TEL_CALL_MAX_CALLS_COUNT 6 /**< Maximum number of call can be possible at a time */ -#define TEL_CALL_MAX_SOUND_EQ_PARAMETER_SIZE 6 /**< Maximum number of sound equalization parameter size */ -#define TEL_CALL_MAX_VOLUME_INFO_RECORD 20 /**< Maximum number of record for volume information */ - -/** - * @enum TelCallResult - * Response (Return) values. - */ -typedef enum { - TEL_CALL_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_CALL_RESULT_FAILURE, /**< Operation Failed */ - TEL_CALL_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_CALL_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_CALL_RESULT_OPERATION_NOT_SUPPORTED, /**< Operation not supported */ - TEL_CALL_RESULT_FDN_RESTRICTED, /**< FDN calls only */ - TEL_CALL_RESULT_NETWORK_BUSY, /**< Network busy */ - TEL_CALL_RESULT_SERVICE_NOT_ALLOWED, /**< Service is not allowed */ - TEL_CALL_RESULT_OPERATION_NOT_PERMITTED /**< Operation not permitted */ -} TelCallResult; - -/** - * @enum TelCallEndCause - * Call End Cause. - */ -typedef enum { - TEL_CALL_END_CAUSE_NONE, /**< No Cause */ - TEL_CALL_END_CAUSE_FAILED, /**< Call failed */ - TEL_CALL_END_CAUSE_UNASSIGNED_NUMBER, /**< Unassigned Number */ - TEL_CALL_END_CAUSE_NO_ROUTE_TO_DEST, /**< No Route to Destination */ - TEL_CALL_END_CAUSE_OPERATOR_DETERMINED_BARRING, /**< Operator Determined Barring */ - TEL_CALL_END_CAUSE_NORMAL_CALL_CLEARING, /**< Normal Call Clearing */ - TEL_CALL_END_CAUSE_USER_BUSY, /**< User Busy */ - TEL_CALL_END_CAUSE_NO_USER_RESPONDING, /**< No user Responding */ - TEL_CALL_END_CAUSE_USER_ALERTING_NO_ANSWER, /**< User Alerting no Answer */ - TEL_CALL_END_CAUSE_CALL_REJECTED, /**< Call Rejected */ - TEL_CALL_END_CAUSE_NUMBER_CHANGED, /**< Number Changed */ - TEL_CALL_END_CAUSE_DESTINATION_OUT_OF_ORDER, /**< Destination out of Order */ - TEL_CALL_END_CAUSE_INVALID_NUMBER_FORMAT, /**< Invalid Number Format */ - TEL_CALL_END_CAUSE_FACILITY_REJECTED, /**< Facility Rejected */ - TEL_CALL_END_CAUSE_NO_CIRCUIT_CHANNEL_AVAILABLE, /**< No Circuit Channel Available */ - TEL_CALL_END_CAUSE_NETWORK_OUT_OF_ORDER, /**< Network out of Order */ - TEL_CALL_END_CAUSE_TEMPORARY_FAILURE, /**< Temporary Failure */ - TEL_CALL_END_CAUSE_SWITCHING_EQUIPMENT_CONGESTION, /**< Switching Equipment Congestion */ - TEL_CALL_END_CAUSE_REQUESTED_CIRCUIT_CHANNEL_NOT_AVAILABLE, /**< Requested Circuit channel not available */ - TEL_CALL_END_CAUSE_REQUESTED_FACILITY_NOT_SUBSCRIBED, /**< Requested facility not subscribed */ - TEL_CALL_END_CAUSE_ACM_GEQ_ACMMAX, /**< ACM equal to greater than ACMAX */ - TEL_CALL_END_CAUSE_IMEI_NOT_ACCEPTED, /**< IMEI not accepted */ - TEL_CALL_END_CAUSE_NETWORK_FAILURE, /**< Network unavailable */ - TEL_CALL_END_CAUSE_CONGESTION, /**< Congestion */ - TEL_CALL_END_CAUSE_SERVICE_OPTION_OUT_OF_ORDER, /**< Service option temporarily out of order */ - TEL_CALL_END_CAUSE_ACCESS_CLASS_BLOCKED, /**< Access class blocked */ -} TelCallEndCause; - -/** - * @enum TelCallState - * Call States. - */ -typedef enum { - TEL_CALL_STATE_IDLE, /**< Call is in idle state - i.e. no call */ - TEL_CALL_STATE_ACTIVE, /**< Call is in connected and conversation state */ - TEL_CALL_STATE_HELD, /**< Call is in held state */ - TEL_CALL_STATE_DIALING, /**< Call is in dialing state */ - TEL_CALL_STATE_ALERT, /**< Call is in alerting state */ - TEL_CALL_STATE_INCOMING, /**< Call is in incoming state */ - TEL_CALL_STATE_WAITING, /**< Call is in waiting state */ -} TelCallState; - -/** - * @enum TelCallActiveLine - * IN GSM ONLY: Call Active Line. - */ -typedef enum { - TEL_CALL_ACTIVE_LINE1, /**< Line 1 */ - TEL_CALL_ACTIVE_LINE2 /**< Line 2 */ -} TelCallActiveLine; - -/** - * @enum TelCallAnswerType - * Call Answer Types. - */ -typedef enum { - TEL_CALL_ANSWER_ACCEPT, /**< Used to answer an incoming call when there are no current active calls. */ - TEL_CALL_ANSWER_REJECT, /**< Used to reject the incoming call */ - TEL_CALL_ANSWER_REPLACE, /**< Release current active call and accept the incoming call */ - TEL_CALL_ANSWER_HOLD_AND_ACCEPT, /**< Hold the current active call, and accept the wating call */ -} TelCallAnswerType; - -/** - * @enum TelCallEndType - * Call End Types. - */ -typedef enum { - TEL_CALL_END, /**< Used to end single call with call handle */ - TEL_CALL_END_ALL, /**< Used to end all calls */ - TEL_CALL_END_ACTIVE_ALL, /**< Used to end all active calls */ - TEL_CALL_END_HOLD_ALL, /**< Used to end all hold calls */ -} TelCallEndType; - -/** - * @enum TelCallType - * Call Type. - */ -typedef enum { - TEL_CALL_TYPE_VOICE, /**< Voice call type. */ - TEL_CALL_TYPE_VIDEO, /**< Video call type */ - TEL_CALL_TYPE_E911 /**< Emergency call type. */ -} TelCallType; - -/** - * @enum TelCallActiveState - * Current Call State. - */ -typedef enum { - TEL_CALL_CONNECT_IDLE, /**< Call is in Idle state. */ - TEL_CALL_CONNECT_ACTIVE, /**< Call is in Active state.*/ - TEL_CALL_CONNECT_HELD /**< Call is in Held state. */ -} TelCallActiveState; - -/** - * @enum TelCallCliValidity - * CLI(Calling Line Identification) Validity. - */ -typedef enum { - TEL_CALL_CLI_VALIDITY_VALID, /**< CLI is valid */ - TEL_CALL_CLI_VALIDITY_WITHHELD, /**< CLI is withheld ("Rejected by user")*/ - TEL_CALL_CLI_VALIDITY_NOT_AVAILABLE, /**< CLI is not available ("Interaction with other service" or "Unavailable")*/ - TEL_CALL_CLI_VALIDITY_NOT_AVAILABLE_PAYPHONE, /**< CLI is not available ("Coin line/payphone")*/ -} TelCallCliValidity; - -/** - * @enum TelCallCniValidity - * CNI(Calling Name Identification) Validity. - */ -typedef enum { - TEL_CALL_CNI_VALIDITY_VALID, /**< CLI is valid */ - TEL_CALL_CNI_VALIDITY_WITHHELD, /**< CLI is withheld */ - TEL_CALL_CNI_VALIDITY_NOT_AVAILABLE, /**< CLI is not available */ -} TelCallCniValidity; - -/** - * @enum TelCallEmergencyCategory - * Emergency Call Category. - */ -typedef enum { - TEL_CALL_ECC_DEFAULT = 0x00, /**< ECC is default */ - TEL_CALL_ECC_POLICE = 0x01, /**< ECC is police */ - TEL_CALL_ECC_AMBULANCE = 0x02, /**< ECC is ambulance */ - TEL_CALL_ECC_FIREBRIGADE = 0x04, /**< ECC is fire station */ - TEL_CALL_ECC_MARINEGUARD = 0x08, /**< ECC is marine gaurd */ - TEL_CALL_ECC_MOUNTAINRESCUE = 0x10, /**< ECC is mountaion rescue */ - TEL_CALL_ECC_MANUAL_ECALL = 0x20, /**< ECC is manual Ecall */ - TEL_CALL_ECC_AUTO_ECALL = 0x40 /**< ECC is Auto Ecall */ -} TelCallEmergencyCategory; - -/** - * Call Dial Info. - */ -typedef struct { - TelCallType call_type; /**< Sets type of call (voice, data, video, emergency) */ - TelCallEmergencyCategory ecc; /**< In case of emergency call, may provide category instead of number */ - char number[TEL_CALL_CALLING_NUMBER_LEN_MAX + 1]; /**< A string containing the destination phone number. This follows the dial number format.*/ -} TelCallDial; - -/** - * Call End Info. - */ -typedef struct { - unsigned int call_id; /**< Unique id for referring the call to release */ - TelCallEndType end_type; /**< End type used */ -} TelCallEnd; - -/** - * Call Status Info. - */ -typedef struct { - unsigned int call_id; /**< Unique id for referring the call */ - - TelCallType call_type; /**< Specifies type of call (voice, data, emergency) */ - TelCallState call_state; /**< Current Call state */ - - gboolean mo_call; /**< TRUE for MO Call; FALSE if MT call*/ - gboolean mpty; /**< TRUE for Multi-party Call; FALSE if not Multi-party Call*/ - - TelCallCliValidity cli_validity; /**< Calling Line Identificatoin (only if mobile terminated call) */ - char number[TEL_CALL_CALLING_NUMBER_LEN_MAX + 1]; /**< Mobile Number */ - - TelCallCniValidity cni_validity; /**< Calling Name Identification (only if mobile terminated call) */ - char name[TEL_CALL_CALLING_NAME_LEN_MAX + 1]; /**< Caller name */ - - gboolean forward; /**< TRUE if call is forwared (only if mobile terminated call) */ - - TelCallActiveLine active_line; /**< Active line */ -} TelCallStatus; - -/** - * All Call Status Info. - */ -typedef struct { - unsigned int count; /**< Number of calls */ - TelCallStatus status[TEL_CALL_MAX_CALLS_COUNT]; /**< Call Status Info */ -} TelCallStatusList; - -/** - * Incoming Call Info. - */ -typedef struct { - unsigned int call_id; /**< Unique id for referring the call */ - - TelCallCliValidity cli_validity; /**< Calling Line Identificatoin (only if mobile terminated call) */ - char number[TEL_CALL_CALLING_NUMBER_LEN_MAX + 1]; /**< Mobile Number */ - - TelCallCniValidity cni_validity; /**< Calling Name Identification (only if mobile terminated call) */ - char name[TEL_CALL_CALLING_NAME_LEN_MAX + 1]; /**< Caller name */ - - gboolean forward; /**< TRUE if call is forwared (only if mobile terminated call) */ - - TelCallActiveLine active_line; /**< Active line */ -}TelCallIncomingInfo; - -/** - * All Call Status idle notification. - */ -typedef struct { - unsigned int call_id; /**< Unique id for referring the call */ - TelCallEndCause cause; /**< End cause for the call indicates whether the call is released normally or due to other cause*/ -} TelCallStatusIdleNoti; - -/** - * @enum TelCallSoundRecording - * Call Sound Recording status. - */ -typedef enum { - TEL_SOUND_RECORDING_STOP, /**< Stop call recording */ - TEL_SOUND_RECORDING_START, /**< Start call recording */ - TEL_SOUND_RECORDING_PAUSE /**< Pause call recording */ -} TelCallSoundRecording; - -/** - * @enum TelCallSoundDevice - * Call Sound Device type. - */ -typedef enum { - TEL_SOUND_DEVICE_RECEIVER = 0x00, /**< Receiving the sound on receiver */ - TEL_SOUND_DEVICE_SPEAKER_PHONE = 0x10, /**< Receiving the sound on speaker phone */ - TEL_SOUND_DEVICE_HFK = 0x20, /**< Receiving the sound on HFK */ - TEL_SOUND_DEVICE_HEADSET = 0x30, /**< Receiving the sound on Headset */ - TEL_SOUND_DEVICE_BLUETOOTH = 0x40, /**< Receiving the sound on Bluetooth */ - TEL_SOUND_DEVICE_EC = 0xA0, /**< Receiving the sound on Echo Cancellation device */ -} TelCallSoundDevice; - -/** - * Call Sound Volume Info. - */ -typedef struct { - TelCallSoundDevice device; /**< Sound device */ - unsigned int volume; /**TRUE: Sound clock is ON\n FALSE: Sound clock is OFF - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_CALL_SOUND_CLOCK_STATUS TELEPHONY_CALL_INTERFACE":CallSoundClockStatus" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** - * @} - */ - #endif /* __TEL_CALL_H__ */ diff --git a/include/common/tel_gps.h b/include/common/tel_gps.h deleted file mode 100644 index d84efbc..0000000 --- a/include/common/tel_gps.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_GPS_H__ -#define __TEL_GPS_H__ - -#include - -/** -* @addtogroup TAPI_GPS -* @{ -* -* @file tel_gps.h -* @brief TAPI GPS Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_GPS_INTERFACE TELEPHONY_SERVICE".Gps" - -/** - * @enum TelGpsResult - * Response (Return) values. - */ -typedef enum { - TEL_GPS_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_GPS_RESULT_FAILURE, /**< Operation Failed */ - TEL_GPS_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_GPS_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_GPS_RESULT_OPERATION_NOT_SUPPORTED, /**< Operation not supported */ - TEL_GPS_RESULT_OPERATION_NOT_PERMITTED, /**< Operation not permitted */ - TEL_GPS_RESULT_UNKNOWN_FAILURE /**< Unknown failure */ -} TelGpsResult; - -/** - * GPS info. - */ -typedef struct { - unsigned int data_len; /**< Data length of GPS info */ - unsigned char *data; /**< GPS information */ -} TelGpsDataInfo; - -/** - * \defgroup TAPI_EVENT TAPI Event IDs - * @{ - */ - -/** - * \defgroup TEL_EVENT_GPS GPS Event IDs - * @{ - */ - -/** - * @hideinitializer - * @brief GPS assist data - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_GPS_ASSIST_DATA - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_GPS_ASSIST_DATA - * @retval data reference to GPS data (as a string) - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_GPS_ASSIST_DATA TELEPHONY_GPS_INTERFACE":AssistData" - -/** - * @hideinitializer - * @brief GPS position information - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_GPS_MEASURE_POSITION - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_GPS_MEASURE_POSITION - * @retval data reference to GPS data (as a string) - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_GPS_MEASURE_POSITION TELEPHONY_GPS_INTERFACE":MeasurePosition" - -/** - * @hideinitializer - * @brief GPS reset assist data - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_GPS_RESET_ASSIST_DATA - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_GPS_RESET_ASSIST_DATA - * @retval data None - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_GPS_RESET_ASSIST_DATA TELEPHONY_GPS_INTERFACE":ResetAssistData" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** - * @} - */ -#endif /* __TEL_GPS_H__ */ diff --git a/include/common/tel_if.h b/include/common/tel_if.h deleted file mode 100644 index b159238..0000000 --- a/include/common/tel_if.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_IF_H__ -#define __TEL_IF_H__ - -/** Telephony service name */ -#define TELEPHONY_SERVICE "org.tizen.telephony" - -/** Telephony object path */ -#define TELEPHONY_OBJECT_PATH "/org/tizen/telephony" - -#ifdef __cplusplus -} -#endif - -#endif /* __TEL_IF_H__ */ diff --git a/include/common/tel_modem.h b/include/common/tel_modem.h deleted file mode 100644 index de62261..0000000 --- a/include/common/tel_modem.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_MODEM_H__ -#define __TEL_MODEM_H__ - -#include - -/** -* @addtogroup TAPI_MODEM -* @{ -* -* @file tel_modem.h -* @brief TAPI Modem Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_MODEM_INTERFACE TELEPHONY_SERVICE".Modem" - -#define TEL_MODEM_IMEI_LENGTH_MAX 15 /**< Maximum IMEI length */ - -#define TEL_MODEM_VERSION_LENGTH_MAX 32 /**< Maximum version information length */ - -/** - * @enum TelModemResult - * Response (Result) codes - */ -typedef enum { - TEL_MODEM_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_MODEM_RESULT_FAILURE, /**< Operation Failed */ - TEL_MODEM_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_MODEM_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_MODEM_RESULT_OPERATION_NOT_SUPPORTED,/**< Operation not supported */ - TEL_MODEM_RESULT_OPERATION_NOT_PERMITTED, /**< Operation not permitted */ - TEL_MODEM_RESULT_UNKNOWN_FAILURE /**< Unknown failure */ -} TelModemResult; - -/** - * @enum TelModemPowerStatus - * Power Status - */ -typedef enum { - TEL_MODEM_POWER_OFF, /**< Modem power off */ - TEL_MODEM_POWER_ON, /**< Modem power on */ - TEL_MODEM_POWER_ERROR /**< Modem power error */ -} TelModemPowerStatus; - -/** - * @enum TelModemFlightModeStatus - * Flight Mode Status - */ -typedef enum { - TEL_MODEM_FLIGHT_MODE_UNKNOWN, /**< Status is unknown at the moment */ - TEL_MODEM_FLIGHT_MODE_OFF, /**< Flight mode is OFF. Device is Online */ - TEL_MODEM_FLIGHT_MODE_ON /**< Flight mode is ON. Device is in Low Power */ -} TelModemFlightModeStatus; - -/** - * Version Information - */ -typedef struct { - char software_version[TEL_MODEM_VERSION_LENGTH_MAX + 1]; /**< Software Version */ - char hardware_version[TEL_MODEM_VERSION_LENGTH_MAX + 1]; /**< Hardware Version */ - char calibration_date[TEL_MODEM_VERSION_LENGTH_MAX + 1]; /**< Calibration Date */ - char product_code[TEL_MODEM_VERSION_LENGTH_MAX + 1]; /**< Product Code */ -} TelModemVersion; - -/** - * \defgroup TAPI_EVENT TAPI Event IDs - * @{ - */ - -/** - * \defgroup TAPI_EVENT_MODEM Modem Event IDs - * @{ - */ - -/** - * @hideinitializer - * @brief Power Status - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_MODEM_POWER_STATUS - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_MODEM_POWER_STATUS - * @retval data \ref TelModemPowerStatus - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_MODEM_POWER_STATUS TELEPHONY_MODEM_INTERFACE":power_status" - -/** - * @hideinitializer - * @brief Flight Mode Status - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_MODEM_FLIGHT_MODE_STATUS - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_MODEM_FLIGHT_MODE_STATUS - * @retval data TRUE: Flight mode is ON\n FALSE: Flight mode is OFF - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_MODEM_FLIGHT_MODE_STATUS TELEPHONY_MODEM_INTERFACE":flight_mode_status" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** @}*/ - -#endif /* __TEL_MODEM_H__ */ diff --git a/include/common/tel_network.h b/include/common/tel_network.h deleted file mode 100644 index e3120a9..0000000 --- a/include/common/tel_network.h +++ /dev/null @@ -1,355 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_NETWORK_H__ -#define __TEL_NETWORK_H__ - -#include - -/** -* @addtogroup TAPI_NETWORK -* @{ -* -* @file tel_network.h -* @brief TAPI Network Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_NETWORK_INTERFACE TELEPHONY_SERVICE".Network" - -#define TEL_NETWORK_PLMN_LEN_MAX 6 /**< Maximum PLMN(MCCMNC) length */ - -/** - * @enum TelNetworkResult - * Response (Return) values. - */ -typedef enum { - TEL_NETWORK_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_NETWORK_RESULT_FAILURE, /**< Operation Failed */ - TEL_NETWORK_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_NETWORK_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_NETWORK_RESULT_OPERATION_NOT_PERMITTED, /**< Operation not permitted */ - TEL_NETWORK_RESULT_OPERATION_NOT_SUPPORTED /**< Operation not supported */ -} TelNetworkResult; - -/** - * @enum TelNetworkMode - * Network Mode - */ -typedef enum { - TEL_NETWORK_MODE_AUTO, /**< auto select network mode or hybrid */ - TEL_NETWORK_MODE_2G, /**< 2G: GSM, GPRS, EDGE etc */ - TEL_NETWORK_MODE_3G, /**< 3G: UMTS, HSDPA, HSUPA etc */ - TEL_NETWORK_MODE_LTE, /**< LTE */ -} TelNetworkMode; - -/** - * @enum TelNetworkSelectionMode - * Network Selection Mode - */ -typedef enum { - TEL_NETWORK_SELECTION_MODE_AUTOMATIC, /**< Automatic selection mode*/ - TEL_NETWORK_SELECTION_MODE_MANUAL, /**< Manual selection mode */ -} TelNetworkSelectionMode; - -/** - * @enum TelNetworkAct - * Network Access Technology - */ -typedef enum { - TEL_NETWORK_ACT_UNKNOWN, /**< ACT is not presented */ - TEL_NETWORK_ACT_GSM, /**< GSM */ - TEL_NETWORK_ACT_GPRS, /**< GPRS */ - TEL_NETWORK_ACT_EGPRS, /**< EDGE */ - TEL_NETWORK_ACT_UMTS, /**< 3G */ - TEL_NETWORK_ACT_GSM_AND_UMTS, /**< Both GSM and UMTS available */ - TEL_NETWORK_ACT_HSDPA, /**< HSDPA */ - TEL_NETWORK_ACT_HSUPA, /**< HSUPA */ - TEL_NETWORK_ACT_HSPA, /**< HSDPA & HSUPA */ - TEL_NETWORK_ACT_LTE, /**< LTE */ -} TelNetworkAct; - -/** - * @enum TelNetworkRegStatus - * Network Registration Status - */ -typedef enum { - TEL_NETWORK_REG_STATUS_UNREGISTERED, /**< Not registered, not searching */ - TEL_NETWORK_REG_STATUS_REGISTERED, /**< Registered, home network */ - TEL_NETWORK_REG_STATUS_SEARCHING, /**< Not regsitered, searching */ - TEL_NETWORK_REG_STATUS_DENIED, /**< Registration is denied */ - TEL_NETWORK_REG_STATUS_UNKNOWN, /**< Unknown */ - TEL_NETWORK_REG_STATUS_ROAMING, /**< Registered, roaming */ -} TelNetworkRegStatus; - -/** - * @enum TelNetworkPlmnStatus - * Network Plmn Status - */ -typedef enum -{ - TEL_NETWORK_STATUS_UNKNOWN, /**< Unknown Plmn */ - TEL_NETWORK_STATUS_AVAILABLE, /**< Available Plmn */ - TEL_NETWORK_STATUS_CURRENT, /**< Network currently registered */ - TEL_NETWORK_STATUS_FORBIDDEN, /**< Forbidden Plmn */ -} TelNetworkPlmnStatus; - -/** - * Network Registration Status Information - */ -typedef struct { - TelNetworkRegStatus cs_status; /**< CS domain registration status */ - TelNetworkRegStatus ps_status; /**< PS domain registration status */ - TelNetworkAct act; /**< Access technology */ -} TelNetworkRegStatusInfo; - -/** - * Network Cell Information - */ -typedef struct { - unsigned int lac; /**< Location Area Code */ - unsigned int cell_id; /**< Cell id */ - unsigned int rac; /**< Routing Area Code - PS network specific */ -} TelNetworkCellInfo; - -/** - * Network Registration Information - */ -typedef struct { - TelNetworkRegStatusInfo reg_status_info; /**< Registration Status Information */ - TelNetworkCellInfo cell_info; /**< Cell Information */ -} TelNetworkRegistrationInfo; - -/** - * Network Identity Information - */ -typedef struct { - char *plmn; /**< numeric name (MCCMNC) */ - char *short_name; /**< short alphanumeric operator name */ - char *long_name; /**< long alphanumeric operator name */ -} TelNetworkIdentityInfo; - -/** - * Network Selection Manual Information - */ -typedef struct { - char *plmn; /**< numeric name (MCCMNC) */ - TelNetworkAct act; /**< Access technology */ -} TelNetworkSelectManualInfo; - -/** - * Network Information - */ -typedef struct { - TelNetworkPlmnStatus plmn_status; /**< Plmn Status */ - TelNetworkAct act; /**< Access technology */ - TelNetworkIdentityInfo network_identity; /**< Network Identity Information */ -} TelNetworkInfo; - -/** - * Network Plmn List - */ -typedef struct { - unsigned int count; /**< Network Plmn count */ - TelNetworkInfo *network_list; /**< Network list */ -} TelNetworkPlmnList; - -/** - * Network Preferred Plmn Information - */ -typedef struct { - unsigned int index; /**< Preferred Plmn list index, start from 1 */ - char *plmn; /**< numeric operator name (MCCMNC) */ - TelNetworkAct act; /**< Access technology */ -} TelNetworkPreferredPlmnInfo; - -/** - * Network Preferred Plmn List - */ -typedef struct { - unsigned int count; /**< Number of preferred plmns in the list */ - TelNetworkPreferredPlmnInfo *list; /**< Preferred Plmns List */ -} TelNetworkPreferredPlmnList; - -/** - * Network Gsm Neighbour Cell Information - */ -typedef struct { - int cell_id; /**< Cell ID (-1 indicates cell ID not present)*/ - int lac; /**< Location area code (ignored when cell_id not present) */ - int bcch; /**< Broadcast Control Channel Frequency number */ - int bsic; /**< Base Station Identification Code */ - int rxlev; /**< Received Signal Strength level. Valid values: (0-63,99) - * Reference: 33GPP TS 45.008 [20] subclause 8.1.4 - - Rxlev 0 is a signal strength less than -110 dBm - - Rxlev 1 is -110 dBm to -109 dBm - - Rxlev 2 is -109 dBm to -108 dBm - - ... - - Rxlev 62 is -49 dBm to -48 dBm - - Rxlev 63 is greater than -48 dBm - - Rxlev 99 is not known or not detectable - */ -} TelNetworkGsmNeighbourCellInfo; - -/** - * Network Umts Neighbour Cell Information - */ -typedef struct { - int cell_id; /**< Cell ID (-1 indicates cell ID not present)*/ - int lac; /**< Location area code (ignored if cell_id not present)*/ - int arfcn; /**< UTRA Absolute RF Channel Number */ - int psc; /**< Primary scrambling Code */ - int rscp; /**< Received Signal Code Power. Valid values: (0-96, 255) - * Reference : 3GPP TS 25.133 [95] subclause 9.1.1.3 - and 3GPP TS 25.123 [96] subclause 9.1.1.1.3) - - Rscp 0 is a signal strength less than -120 dBm - - Rscp 1 is -120 dBm to -119 dBm - - Rscp 2 is -119 dBm to -118 dBm - - ... - - Rscp 95 is -26 dBm to -25 dBm - - Rscp 96 is greater than -25 dBm - - Rscp 255 is not known or not detectable - */ -} TelNetworkUmtsNeighbourCellInfo; - -/** - * Network Neighbour Cell Information - */ -typedef struct { - unsigned int gsm_list_count; /**< GSM cells count */ - TelNetworkGsmNeighbourCellInfo *gsm_list; /**< GSM cells information */ - unsigned int umts_list_count; /**< UMTS cells count */ - TelNetworkUmtsNeighbourCellInfo *umts_list; /**< UMTS cells information */ -} TelNetworkNeighbourCellInfo; - -/** - * Network Nitz Information - */ -typedef struct { - unsigned int year; /**< Last two digits of year */ - unsigned int month; /**< Month */ - unsigned int day; /**< Day */ - unsigned int hour; /**< Hour */ - unsigned int minute; /**< Minute */ - unsigned int second; /**< Second */ - int gmtoff; /**< GMT Offset */ - gboolean isdst; /**< Daylight Saving Time Valid */ - int dstoff; /**< Daylight Saving Time Offset */ - char *plmn; /**< numeric name (MCCMNC) */ -} TelNetworkNitzInfoNoti; - -/** - * \defgroup TAPI_EVENT TAPI Event IDs - * @{ - */ - -/** - * \defgroup TAPI_EVENT_NETWORK Network Event IDs - * @{ - */ - -/** - * @hideinitializer - * @brief Network registration status - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_NETWORK_REGISTRATION_STATUS - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_NETWORK_REGISTRATION_STATUS - * @retval data reference to \ref TelNetworkRegStatusInfo structure - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_NETWORK_REGISTRATION_STATUS TELEPHONY_NETWORK_INTERFACE":RegistrationStatus" - -/** - * @hideinitializer - * @brief Network cell information - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_NETWORK_CELL_INFO - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_NETWORK_CELL_INFO - * @retval data reference to \ref TelNetworkCellInfo structure - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_NETWORK_CELL_INFO TELEPHONY_NETWORK_INTERFACE":CellInfo" - -/** - * @hideinitializer - * @brief Network Identity information - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_NETWORK_IDENTITY - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_NETWORK_IDENTITY - * @retval data reference to \ref TelNetworkIdentityInfo structure - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_NETWORK_IDENTITY TELEPHONY_NETWORK_INTERFACE":Identity" - -/** - * @hideinitializer - * @brief Network RSSI - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_NETWORK_RSSI - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_NETWORK_RSSI - * @retval data \ref unsigned int rssi - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_NETWORK_RSSI TELEPHONY_NETWORK_INTERFACE":Rssi" - -/** - * @hideinitializer - * @brief Network time information - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_NETWORK_TIME_INFO - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_NETWORK_TIME_INFO - * @retval data reference to \ref TelNetworkNitzInfoNoti structure - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_NETWORK_TIME_INFO TELEPHONY_NETWORK_INTERFACE":TimeInfo" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** @}*/ - -#endif /* __TEL_NETWORK_H__ */ - diff --git a/include/common/tel_phonebook.h b/include/common/tel_phonebook.h deleted file mode 100644 index fc39db7..0000000 --- a/include/common/tel_phonebook.h +++ /dev/null @@ -1,253 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_PHONEBOOK_H__ -#define __TEL_PHONEBOOK_H__ - -#include - -/** -* @addtogroup TAPI_PHONEBOOK -* @{ -* -* @file tel_phonebook.h -* @brief TAPI Phonebook Interface -*/ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#define TELEPHONY_PB_INTERFACE TELEPHONY_SERVICE".Phonebook" - -#define TEL_PB_TEXT_MAX_LEN 255 /**< Phone book text maximum length */ -#define TEL_PB_NUMBER_MAX_LEN 82 /**< Phone book number maximum length */ -#define TEL_PB_ANR_MAX_COUNT 3 /**< Phone book ANR maximum count */ -#define TEL_PB_EMAIL_MAX_COUNT 4 /**< Phone book email maximum count */ - -/** - * @enum TelPbResult - * Response (Return) values. - */ -typedef enum { - TEL_PB_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_PB_RESULT_FAILURE, /**< Operation Failed */ - TEL_PB_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_PB_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_PB_RESULT_OPERATION_NOT_SUPPORTED, /**< Operation not supported */ - TEL_PB_RESULT_UNKNOWN_FAILURE, /**< Unknown failure */ - TEL_PB_RESULT_INVALID_INDEX, /**< The index passed was not a valid index. */ - TEL_PB_RESULT_NOT_INITIALIZED, /**< Phonebook not initialized */ - TEL_PB_RESULT_PIN2_REQUIRED, /**< PIN2 Required */ - TEL_PB_RESULT_PUK2_REQUIRED, /**< PUK2 Required */ - TEL_PB_RESULT_ACCESS_RESTRICTED, /**< Access restricted */ - TEL_PB_RESULT_OPERATION_NOT_PERMITTED /**< Operation not permitted */ -} TelPbResult; - -/** - * @enum TelPbType - * This enumeration defines the Phonebook type. - */ -typedef enum { - TEL_PB_FDN, /**< Fixed Dialing Number */ - TEL_PB_ADN, /**< Abbreviated dialling numbers */ - TEL_PB_SDN, /**< Service Dialing Number */ - TEL_PB_USIM, /**< USIM - 3G phone book */ -} TelPbType; - -/** - * This data structure gives the phone book availability of current SIM - */ -typedef struct { - gboolean fdn; /**< Availability of Fixed Dialing Number */ - gboolean adn; /**< Availability of Abbreviated dialling numbers */ - gboolean sdn; /**< Availability of Service Dialing Number */ - gboolean usim; /**< Availability of USIM - 3G phone book */ -} TelPbList; - -/** - * @enum TelPbInitInfo - * This data structure gives the phonebook init information - */ -typedef struct { - gboolean init_status; /**< Phonebook init status */ - TelPbList pb_list; /**< Phonebook availability of current SIM */ -} TelPbInitInfo; - -/** - *This data structure gives the phone book entry information(SIM). - */ -typedef struct { - unsigned int max_count; /**< Total number of locations in selected memory */ - unsigned int used_count; /**< Number of used locations in selected memory */ - unsigned int max_num_len; /**< maximum length of field "number" */ - unsigned int max_text_len; /**< maximum length of field "text" */ -} TelPbSimInfo; - -/** - *This data structure gives the phone book entry information(USIM). - */ -typedef struct { - unsigned int max_count; /**< Total number of locations in selected memory */ - unsigned int used_count; /**< Number of used locations in selected memory */ - unsigned int max_num_len; /**< maximum length of field "number" */ - unsigned int max_text_len; /**< maximum length of field "text" */ - - unsigned char max_anr_count; /**< Total number of locations for Additional Number */ - unsigned int max_anr_len; /**< Maximun length for Additional Number */ - - unsigned char max_email_count; /**< Total number of locations for email */ - unsigned int max_email_len; /**< Maximun length for email */ - - unsigned int max_sne_len; /**< Maximun length for second name*/ - - unsigned int max_gas_count; /**< Total number of locations for Grouping Alpha String */ - unsigned int max_gas_len; /**< Maximun length for Grouping Alpha String */ - - unsigned int max_aas_count; /**< Total number of locations for Additional Alpha String */ - unsigned int max_aas_len; /**< Maximun length for Additional Alpha String */ -} TelPbUsimInfo; - -/** - *This data structure gives SIM/USIM the phone book entry information. - */ -typedef struct { - TelPbType pb_type; /**< Type of Phone book */ - union { - TelPbSimInfo sim; /**< 2G sim phone book info */ - TelPbUsimInfo usim; /**< 3G sim phone book info */ - } info_u; /**< union */ -} TelPbInfo; - -/** - *These data structures defines the phone book record fields. - */ -typedef char TelPbName[TEL_PB_TEXT_MAX_LEN + 1]; /**< Record of Phone book name */ - -typedef char TelPbNumber[TEL_PB_NUMBER_MAX_LEN + 1]; /**< Record of Phone book number */ - -typedef char TelPbEmail[TEL_PB_TEXT_MAX_LEN + 1]; /**< Record of Phone book email */ - -/** - *These data structures defines the phone book Additional number information - */ -typedef struct { - TelPbNumber number; /**< Additional number */ - gboolean description; /**< TRUE if the ANR has an additional number description */ - TelPbName aas; /**< Additional number description */ -} TelPbAnr; - -/** - *These data structures defines the USIM phone book records - */ -typedef struct { - TelPbName name; /**< USIM Phone book name */ - TelPbNumber number; /**< USIM Phone book number */ - - TelPbName sne; /**< USIM Phone book second name */ - TelPbName grp_name; /**< USIM Phone book group name */ - - unsigned char anr_count; /**< USIM Phone book Additional number count */ - TelPbAnr anr[TEL_PB_ANR_MAX_COUNT]; /**< USIM Phone book Additional number description */ - - unsigned char email_count; /**< USIM Phone book email count */ - TelPbEmail email[TEL_PB_EMAIL_MAX_COUNT]; /**< USIM Phone book email description */ - - gboolean hidden; /**< indicates if the entry is hidden or not - only available, if a UICC with an active USIM application is present */ -} TelPbUsimRecord; - -/** - *These data structures defines the SIM phone book records - */ -typedef struct { - TelPbName name; /**< SIM Phone book name */ - TelPbNumber number; /**< SIM Phone book number */ -} TelPbSimRecord; - -/** - *These data structures defines the read record informations - */ -typedef struct { - unsigned int index; /**< Index of phonebook memory */ - unsigned int next_index; /**< Next index of phonebook memory */ - - TelPbType pb_type; /**< Type of Phone book */ - union { - TelPbSimRecord sim; /**< 2G sim phone book info */ - TelPbUsimRecord usim; /**< 3G sim phone book info */ - } rec_u; /**< union */ -} TelPbReadRecord; - -/** - *These data structures defines the update record informations - */ -typedef struct { - unsigned int index; /**< Index of phonebook memory */ - - TelPbType pb_type; /**< Type of Phone book */ - union { - TelPbSimRecord sim; /**< 2G sim phone book info */ - TelPbUsimRecord usim; /**< 3G sim phone book info */ - } rec_u; /**< union */ -} TelPbUpdateRecord; - -/** - *These data structures defines the phone book record informations - */ -typedef struct { - TelPbType pb_type; /**< Type of Phone book */ - unsigned int index; /**< Index of phonebook memory */ -} TelPbRecordInfo; - -/** - * \defgroup TAPI_EVENT TAPI Event IDs - * @{ - */ - -/** - * \defgroup TEL_EVENT_PHONEBOOK Phonebook Event IDs - * @{ - */ - -/** - * @hideinitializer - * @brief Phonebook init status - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_PB_STATUS - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_PB_STATUS - * #retval data \ref TelPbInitInfo - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_PB_STATUS TELEPHONY_PB_INTERFACE":Status" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** @}*/ - -#endif /* __TEL_PHONEBOOK_H__ */ diff --git a/include/common/tel_return.h b/include/common/tel_return.h deleted file mode 100644 index 2dc87a6..0000000 --- a/include/common/tel_return.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_RETURN_H__ -#define __TEL_RETURN_H__ - -/** -* @addtogroup TAPI_COMMON -* @{ -* -* @file tel_return.h -* @brief TAPI return values -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @enum TelReturn - * TAPI return values - */ -typedef enum { - TEL_RETURN_SUCCESS, /**< Operation completed successfully */ - TEL_RETURN_FAILURE, /**< Operation Failed */ - TEL_RETURN_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_RETURN_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_RETURN_OPERATION_NOT_SUPPORTED, /**< Operation not supported */ - TEL_RETURN_UNKNOWN_FAILURE /**< Unknown failure */ -} TelReturn; - -#ifdef __cplusplus -} -#endif - -/** @}*/ - -#endif /* __TEL_RETURN_H__ */ diff --git a/include/common/tel_sap.h b/include/common/tel_sap.h deleted file mode 100644 index d22d363..0000000 --- a/include/common/tel_sap.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#ifndef __TEL_SAP_H__ -#define __TEL_SAP_H__ - -#include - -/** -* @addtogroup TAPI_SAP -* @{ -* -* @file tel_sap.h -* @brief TAPI SAP Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_SAP_INTERFACE TELEPHONY_SERVICE".Sap" - -#define TEL_SAP_APDU_LEN_MAX 261 /**< APDU max command length */ -#define TEL_SAP_APDU_RESP_LEN_MAX 258 /**< APDU max response length */ -#define TEL_SAP_ATR_LEN_MAX 33 /**< Answer to Reset data max length */ - -/** - * @enum TelSapResult - * This enum gives the SAP result information. - */ - -typedef enum { - TEL_SAP_RESULT_SUCCESS, /**< operation successfully completed*/ - TEL_SAP_RESULT_FAILURE_NO_REASON, /**< no reason*/ - TEL_SAP_RESULT_CARD_NOT_ACCESSIBLE, /**< not accessible*/ - TEL_SAP_RESULT_CARD_ALREADY_POWERED_OFF,/**< card already powered off*/ - TEL_SAP_RESULT_CARD_REMOVED, /**< card removed*/ - TEL_SAP_RESULT_CARD_ALREADY_POWERED_ON, /**< card already powered on*/ - TEL_SAP_RESULT_DATA_NOT_AVAILABLE, /**< data not available*/ - TEL_SAP_RESULT_NOT_SUPPORTED, /**< not supported*/ - TEL_SAP_RESULT_UNABLE_TO_ESTABLISH, /**< unable to establish connection*/ - TEL_SAP_RESULT_NOT_SUPPORT_MAX_SIZE, /**< server does not support message length that client want send*/ - TEL_SAP_RESULT_TOO_SMALL_MAX_SIZE, /**< client wants to connect with very small message length which is not supported by Server */ - TEL_SAP_RESULT_ONGOING_CALL, /**< server cannot reset the SIM due to an ongoing call */ - TEL_SAP_RESULT_OPERATION_NOT_PERMITTED /** Operation not permitted */ -} TelSapResult; - -/** - * @enum TelSapPowerMode - * This enum gives the SAP message Ids between SAP client and SAP server. - */ -typedef enum { - TEL_SAP_SIM_POWER_ON_REQ, /**< SAP Client request for Power ON SIM off in Server */ - TEL_SAP_SIM_POWER_OFF_REQ, /**< SAP Client request for Power OFF SIM off in Server */ - TEL_SAP_SIM_RESET_REQ, /**< SAP Client request for reset SIM in Server */ -} TelSapPowerMode; - -/** - * @enum TelSapDisconnectType - * This enum gives the SAP disconnect type information. - */ -typedef enum { - TEL_SAP_DISCONNECT_TYPE_GRACEFUL, /**< disconnection procedure ends after finishing current work */ - TEL_SAP_DISCONNECT_TYPE_IMMEDIATE /**< disconnection procedure ends immediately */ -} TelSapDisconnectType; - -/** - * @enum TelSapCardStatus - * This enum gives the SIM card status if server`s status changed about connection with subscription module - */ -typedef enum { - TEL_SAP_CARD_STATUS_UNKNOWN, /**< SAP server status - unknown*/ - TEL_SAP_CARD_STATUS_RESET, /**< SAP server status - reset*/ - TEL_SAP_CARD_STATUS_NOT_ACCESSIBLE, /**< SAP server status - not accessible*/ - TEL_SAP_CARD_STATUS_REMOVED, /**< SAP server status - removed*/ - TEL_SAP_CARD_STATUS_INSERTED, /**< SAP server status - inserted*/ - TEL_SAP_CARD_STATUS_RECOVERED /**< SAP server status - recovered*/ -} TelSapCardStatus; - -/** - * @enum TelSimSapProtocol - * This enum gives SAP transport protocol type - */ -typedef enum { - TEL_SIM_SAP_PROTOCOL_T0, /**< T = 0, character*/ - TEL_SIM_SAP_PROTOCOL_T1 /**< T = 1, block*/ -} TelSimSapProtocol; - -/** - * This data structure gives the SAP ATR response data information. - */ -typedef struct { - unsigned int atr_len; /**< SAP ATR response data length */ - unsigned char atr[TEL_SAP_ATR_LEN_MAX]; /**< SAP ATR response data */ -} TelSapAtr; - -/** - * This data structure is used to transfer the SAP APDU command. - */ -typedef struct { - unsigned int apdu_len; /**< SAP APDU length */ - unsigned char apdu[TEL_SAP_APDU_LEN_MAX]; /**< SAP APDU data */ -} TelSapApdu; - -/** - * This data structure gives the SAP APDU response. - */ -typedef struct { - unsigned int apdu_resp_len; /**< SAP APDU response data length */ - unsigned char apdu_resp[TEL_SAP_APDU_RESP_LEN_MAX]; /**< SAP APDU response data */ -} TelSapApduResp; - -/** - * \defgroup TAPI_EVENT TAPI Event IDs - * @{ - */ - -/** - * \defgroup TEL_EVENT_SAP SAP Event IDs - * @{ - */ - -/** - * @hideinitializer - * @brief SAP status - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_SAP_STATUS - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_SAP_STATUS - * @retval data \ref TelSapCardStatus - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_SAP_STATUS TELEPHONY_SAP_INTERFACE":Status" - -/** - * @hideinitializer - * @brief SAP disconnect type - * @section subscription Event Subscription - * @details Event can be subscribed with event id TEL_NOTI_SAP_DISCONNECT - * @sa tapi_register_event_id - * @section handling Event Handling - * @details TAPI will invoke the registered callback (\ref TapiEvtCb) and return the following data: - * @retval handle #TelHandle used for registering the event - * @retval evt_id TEL_NOTI_SAP_DISCONNECT - * @retval data \ref TelSapDisconnectType - * @retval user_data user data passed while registering the event - */ -#define TEL_NOTI_SAP_DISCONNECT TELEPHONY_SAP_INTERFACE":Disconnect" - -/** @}*/ -/** @}*/ - -#ifdef __cplusplus -} -#endif - -/** @}*/ - -#endif /* __TEL_SAP_H__ */ diff --git a/include/common/tel_sat.h b/include/common/tel_sat.h deleted file mode 100644 index 58e819c..0000000 --- a/include/common/tel_sat.h +++ /dev/null @@ -1,1813 +0,0 @@ -/* - * tel-headers - * - * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved. - * Copyright (c) 2013 Intel Corporation. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __TEL_SAT_H__ -#define __TEL_SAT_H__ - -#include -#include -#include -#include - -/** -* @addtogroup TAPI_SAT -* @{ -* -* @file tel_sat.h -* @brief TAPI sat Interface -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TELEPHONY_SAT_INTERFACE TELEPHONY_SERVICE".Sat" - -#define TEL_SAT_DEF_TEXT_STRING_LEN_MAX 500 /**< max length for Text String */ -#define TEL_SAT_DEF_TITLE_LEN_MAX 50 /**< max length for Menu Title */ -#define TEL_SAT_DEF_ITEM_STR_LEN_MAX 50 /**< max length for default item string */ -#define TEL_SAT_TEXT_STRING_LEN_MAX 500 /**< max length for text string */ -#define TEL_SAT_DEF_BIT_MASK_CONTACT 0x01 /**< Bit Mask for Contact */ -#define TEL_SAT_DEF_BIT_MASK_MSG 0x02 /**< Bit Mask for Msg */ -#define TEL_SAT_DEF_BIT_MASK_OTHER 0x04 /**< Bit Mask for Psh */ -#define TEL_SAT_REFRESH_FILE_LIST 20 /**< Refresh File List */ -#define TEL_SAT_DEF_SS_LEN_MAX 250 /**< max length for SS */ -#define TEL_SAT_DEF_USSD_LEN_MAX 250 /**< max length for USSD */ -#define TEL_SAT_DIALING_NUMBER_LEN_MAX 200 /**< max length for dailing number */ -#define TEL_SAT_ALPHA_ID_LEN_MAX 255 /**< max length of alpha identifier */ -#define TEL_SAT_SUB_ADDR_LEN_MAX 30 /**< max length for Sub address */ -#define TEL_SAT_CCP_DATA_LEN_MAX 30 /**< max length of ccp data */ -#define TEL_SAT_SS_STRING_LEN_MAX 160 /**< max length for SS string */ -#define TEL_SAT_USSD_STRING_LEN_MAX 255 /**< max length for USSD string */ -#define TEL_SAT_ITEM_TEXT_LEN_MAX 45 /**< max length of item text */ -#define TEL_SAT_SMS_TPDU_SMS_DATA_LEN_MAX 175 /**< max length for SMS TPDU SMS data */ -#define TEL_SAT_FILE_ID_LIST_MAX_COUNT 255 /**< max length for file id list */ -#define TEL_SAT_ITEMS_NEXT_ACTION_INDI_LIST_MAX_COUNT 50 /**< max count of items next action indication list */ -#define TEL_SAT_EVENT_LIST_MAX 17 /**< max count of event list */ -#define TEL_SAT_IMG_DATA_FILE_PATH_LEN_MAX 50 /**< max length of image data file name (Icon, CLUT) */ -#define TEL_SAT_ICON_LIST_MAX_COUNT 50 /**< max count of icon list */ -#define TEL_SAT_DTMF_STRING_LEN_MAX 30 /**< max length of dtmf string */ -#define TEL_SAT_URL_LEN_MAX 129 /**< max length of URL*/ -#define TEL_SAT_PROVISIONING_FILE_PATH_LEN_MAX 50 /**< max length of provisioning file path */ -#define TEL_SAT_CHANNEL_DATA_STRING_LEN_MAX 255 /**< max length for channel data string */ -#define TEL_SAT_OTHER_ADDR_LEN_MAX 30 /**< max length of other address */ -#define TEL_SAT_NET_ACC_NAM_LEN_MAX 30 /**< max length of net acc name */ -#define TEL_SAT_REMOTE_ENTITY_ADDR_LEN_MAX 50 /**< max length of remote entity address */ -#define TEL_SAT_ITEM_TEXT_ATTRIBUTES_LIST_MAX_COUNT 50 /**< max count of item text attributes list */ -#define TEL_SAT_MENU_ITEM_COUNT_MAX 40 /**< max count for Menu items */ - -/** - * @enum TelSatResult - * Response (Result) codes -*/ -typedef enum { - TEL_SAT_RESULT_SUCCESS, /**< Operation completed successfully */ - TEL_SAT_RESULT_FAILURE, /**< Operation Failed */ - TEL_SAT_RESULT_INVALID_PARAMETER, /**< Invalid input parameters */ - TEL_SAT_RESULT_MEMORY_FAILURE, /**< Memory allocation failed */ - TEL_SAT_RESULT_OPERATION_NOT_SUPPORTED, /**< Operation not supported */ - TEL_SAT_RESULT_UNKNOWN_FAILURE, /**< Unknown failure */ - - TEL_SAT_RESULT_REQUIRED_VALUE_MISSING, /**< Required value missing */ - TEL_SAT_RESULT_COMMAND_NOT_UNDERSTOOD, /**< Command not understood by ME */ - TEL_SAT_RESULT_BEYOND_ME_CAPABILITY /**< Beyond ME capability */ -} TelSatResult; - -/** - * @enum TelSatUiUserConfirmType - * This enumeration defines UI user confirm types -*/ -typedef enum { - TEL_SAT_USER_CONFIRM_YES, /**