T108 sim Voie data network sms 支持双卡 ql 接口第一版

Change-Id: If5a9fb81971258bb5a3d811f3e4562b2df351853
diff --git a/mbtk/include/ql_v2/ql_data_call.h b/mbtk/include/ql_v2/ql_data_call.h
index 978516b..e8eba55 100755
--- a/mbtk/include/ql_v2/ql_data_call.h
+++ b/mbtk/include/ql_v2/ql_data_call.h
@@ -33,6 +33,13 @@
 
 typedef void ql_data_call_param_t;
 
+typedef enum 
+{
+    QL_SIM_SLOT_INVALID = 0x000, /**< Invalid slot.  */   
+    QL_SIM_SLOT_1       = 0xB01, /**< Identify card in slot 1.  */
+    QL_SIM_SLOT_2       = 0xB02, /**< Identify card in slot 2.  */
+} QL_SIM_SLOT_E;
+
 typedef struct
 {
     int call_id;
@@ -520,6 +527,21 @@
 /*-----------------------------------------------------------------------------------------------*/
 int ql_data_call_deinit(void);
 
+
+/*-----------------------------------------------------------------------------------------------*/
+/** 
+  @brief  chose sim card to data call
+  @param[in] sub  Subscription type.
+  @return Whether the subscription was successfully bound.
+  @retval QL_ERR_OK successful.
+  @retval QL_ERR_INVALID_ARG invalid argument.
+  @retval QL_ERR_UNKNOWN unknown error, failed to connect to service.
+  @retval QL_ERR_SERVICE_NOT_READY service is not ready, need to retry.
+  @retval Other error code defined by ql_type.h.
+  */
+/*-----------------------------------------------------------------------------------------------*/
+int  ql_set_data_slot(QL_SIM_SLOT_E log_slot);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/mbtk/include/ql_v2/ql_nw.h b/mbtk/include/ql_v2/ql_nw.h
index d0504e0..7b6590a 100755
--- a/mbtk/include/ql_v2/ql_nw.h
+++ b/mbtk/include/ql_v2/ql_nw.h
@@ -62,6 +62,13 @@
 #define QL_NW_MAX_WEA_ALERT_LENGTH_V01  512
 #define QL_NW_MAX_ETWS_ALERT_LENGTH_V01 256
 
+typedef enum 
+{
+    QL_SIM_SLOT_INVALID = 0x000, /**< Invalid slot.  */   
+    QL_SIM_SLOT_1       = 0xB01, /**< Identify card in slot 1.  */
+    QL_SIM_SLOT_2       = 0xB02, /**< Identify card in slot 2.  */
+} QL_SIM_SLOT_E;
+
 typedef enum QL_NW_SIGNAL_STRENGTH_LEVEL_ENUM
 {
     QL_NW_SIGNAL_STRENGTH_LEVEL_MIN             = -1,
@@ -878,6 +885,20 @@
 /*-----------------------------------------------------------------------------------------------*/
 int ql_nw_set_service_error_cb(ql_nw_service_error_cb_f cb);
 
+/*-----------------------------------------------------------------------------------------------*/
+/** 
+  @brief  chose sim card to nw 
+  @param[in] sub  Subscription type.
+  @return Whether the subscription was successfully bound.
+  @retval QL_ERR_OK successful.
+  @retval QL_ERR_INVALID_ARG invalid argument.
+  @retval QL_ERR_UNKNOWN unknown error, failed to connect to service.
+  @retval QL_ERR_SERVICE_NOT_READY service is not ready, need to retry.
+  @retval Other error code defined by ql_type.h.
+  */
+/*-----------------------------------------------------------------------------------------------*/
+int  ql_set_nw_slot(QL_SIM_SLOT_E log_slot);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/mbtk/include/ql_v2/ql_sms.h b/mbtk/include/ql_v2/ql_sms.h
index df12ba8..529c0ac 100755
--- a/mbtk/include/ql_v2/ql_sms.h
+++ b/mbtk/include/ql_v2/ql_sms.h
@@ -32,6 +32,13 @@
 #define QL_SMS_MAX_RECV_MSG_LENGTH  160     /**<  Maximum length of an recv SMS. */
 #define QL_SMS_MAX_ADDR_LENGTH      252     /**<  Maximum length of SCA addr. */
 
+typedef enum 
+{
+    QL_SIM_SLOT_INVALID = 0x000, /**< Invalid slot.  */   
+    QL_SIM_SLOT_1       = 0xB01, /**< Identify card in slot 1.  */
+    QL_SIM_SLOT_2       = 0xB02, /**< Identify card in slot 2.  */
+} QL_SIM_SLOT_E;
+
 /** The SMS message format. */
 typedef enum 
 {
@@ -273,4 +280,18 @@
 /*-----------------------------------------------------------------------------------------------*/
 int ql_sms_bind_subscription(QL_SMS_SUBSCRIPTION_E sub);
 
+/*-----------------------------------------------------------------------------------------------*/
+/** 
+  @brief  chose sim card to send sms
+  @param[in] sub  Subscription type.
+  @return Whether the subscription was successfully bound.
+  @retval QL_ERR_OK successful.
+  @retval QL_ERR_INVALID_ARG invalid argument.
+  @retval QL_ERR_UNKNOWN unknown error, failed to connect to service.
+  @retval QL_ERR_SERVICE_NOT_READY service is not ready, need to retry.
+  @retval Other error code defined by ql_type.h.
+  */
+/*-----------------------------------------------------------------------------------------------*/
+int  ql_set_sms_slot(QL_SIM_SLOT_E log_slot);
+
 
diff --git a/mbtk/include/ql_v2/ql_voice.h b/mbtk/include/ql_v2/ql_voice.h
index 0882a66..909d8e9 100755
--- a/mbtk/include/ql_v2/ql_voice.h
+++ b/mbtk/include/ql_v2/ql_voice.h
@@ -38,6 +38,13 @@
 
 typedef enum 
 {
+    QL_SIM_SLOT_INVALID = 0x000, /**< Invalid slot.  */   
+    QL_SIM_SLOT_1       = 0xB01, /**< Identify card in slot 1.  */
+    QL_SIM_SLOT_2       = 0xB02, /**< Identify card in slot 2.  */
+} QL_SIM_SLOT_E;
+
+typedef enum 
+{
     QL_VOICE_STATE_INCOMING = 0x0000, /**< Call is incoming. */
     QL_VOICE_STATE_DIALING  = 0x0001, /**< Dialing state. */
     QL_VOICE_STATE_ALERTING = 0x0002, /**< Alterting. */
@@ -1067,3 +1074,18 @@
 /*-----------------------------------------------------------------------------------------------*/
 int ql_voice_bind_subscription(QL_VOICE_SUBSCRIPTION_E sub);
 
+/*-----------------------------------------------------------------------------------------------*/
+/** 
+  @brief  chose sim card to voice  
+  @param[in] sub  Subscription type.
+  @return Whether the subscription was successfully bound.
+  @retval QL_ERR_OK successful.
+  @retval QL_ERR_INVALID_ARG invalid argument.
+  @retval QL_ERR_UNKNOWN unknown error, failed to connect to service.
+  @retval QL_ERR_SERVICE_NOT_READY service is not ready, need to retry.
+  @retval Other error code defined by ql_type.h.
+  */
+/*-----------------------------------------------------------------------------------------------*/
+int  ql_set_voice_slot(QL_SIM_SLOT_E log_slot);
+
+