#define API_NAMESPACE "MESSAGES_ITC"
#define TELEPHONY_FEATURE "http://tizen.org/feature/network.telephony.sms"
+#define TELEPHONY_FEATURE_TELEPHONY "http://tizen.org/feature/network.telephony"
#define TELEPHONY_FEATURE_MMS "http://tizen.org/feature/network.telephony.mms"
#define MESSAGES_IMAGE_FILE "Image.jpg"
GMainLoop *g_loop;
bool g_bIsTelephonyFeatureSupported;
+bool g_bIsTelephonyFeatureTelephonySupported;
bool g_bIsTelephonyFeatureMmsSupported;
char* MessagesGetError(int nRet);
const char *pMsgText = "Test Message Text 1";
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
- g_bIsTelephonyFeatureMmsSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_MMS, API_NAMESPACE);
+ g_bIsTelephonyFeatureTelephonySupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_TELEPHONY, API_NAMESPACE);
if ( true == GetValueFromConfigFile("MESSAGES_MOBILE_NUMBER", pszValue, API_NAMESPACE) )
{
int nRet = messages_add_address(g_pstHandleSMSMessage, pszValue, MESSAGES_RECIPIENT_TO);
- if ( !g_bIsTelephonyFeatureMmsSupported )
+ if ( !g_bIsTelephonyFeatureTelephonySupported )
{
if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
messages_message_box_e mbox = MESSAGES_MBOX_INBOX;
- g_bIsTelephonyFeatureMmsSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_MMS, API_NAMESPACE);
- //target API
+ g_bIsTelephonyFeatureTelephonySupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_TELEPHONY, API_NAMESPACE);
+ //target API
int nRet = messages_set_mbox_type(g_pstHandleSMSMessage,mbox);
- if ( !g_bIsTelephonyFeatureMmsSupported )
+ if ( !g_bIsTelephonyFeatureTelephonySupported )
{
if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
- g_bIsTelephonyFeatureMmsSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_MMS, API_NAMESPACE);
+ g_bIsTelephonyFeatureTelephonySupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE_TELEPHONY, API_NAMESPACE);
if ( true == GetValueFromConfigFile("MESSAGES_MOBILE_NUMBER", pszValue, API_NAMESPACE) )
{
int nRet = messages_add_address(g_pstHandleSMSMessage, pszValue, MESSAGES_RECIPIENT_TO);
- if ( !g_bIsTelephonyFeatureMmsSupported )
+ if ( !g_bIsTelephonyFeatureTelephonySupported )
{
if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
}
/** @} */ //end of itc-messages
-/** @} */ //end of itc-messages-testcases
\ No newline at end of file
+/** @} */ //end of itc-messages-testcases