--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<push_auth>\r
+<appID>da58f09b7dcd898f</appID>\r
+<appSecret>E55A746761233098DDD1114F652AFE51</appSecret>\r
+<TestappID>00f829f1fd898590</TestappID>\r
+<TestappSecret>5eMue+osQCi4Pbhdw+bltGC8PbEAAA==</TestappSecret>\r
+<TestappRegID></TestappRegID>\r
+</push_auth>
\ No newline at end of file
#include "tbt_pushtestapp.h"
+#include <stdlib.h>
+#include <stdio.h>
#define PUSH_APP_ID "00f829f1fd898590"
#define PUSH_APP_SECRET "5eMue+osQCi4Pbhdw+bltGC8PbEAAA=="
int ret = storage_foreach_device_supported(_storage_device_supported_cb,NULL);
RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret));
- ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR);
- RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret));
+ //this->push_app_id_text = PUSH_APP_ID;
+
+ char * script = "cp /opt/usr/globalapps/org.tizen.tbt_pushtestapp/res/tbt_push_auth.xml /home/owner/media/Others/tbt_push_auth.xml";
+ system(script);
+
+
+ ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR);
+ RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret));
- init_xml_operation(this);
+ init_xml_operation(this);
this->push_app_id_text = get_xml_element_value(this->doc, this->root_node_ptr, "TestappID");
DBG("appID: %s", this->push_app_id_text);
#include "utils/app_module_config.h"
#ifdef TBT_MODULE_TTS
+#include <notification.h>
#include <Elementary.h>
#include <tts.h>
#include "utils/logger.h"
RETM_IF(NULL == this, "view is NULL");
this->is_tts_btn_pressed = true;
int ret;
+ bool is_tts_supported = false;
+ system_info_get_platform_bool("tizen.org/feature/speech.synthesis", &is_tts_supported);
ret = tts_create(&this->tts_handle);
- RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret));
+ if ( (is_tts_supported == false) && (ret == TTS_ERROR_NOT_SUPPORTED) )
+ {
+ notification_status_message_post("PASS the tc");
+ }
+ else
+ {
+ RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret));
+ }
ret = tts_set_state_changed_cb(this->tts_handle, _tts_state_changed_cb, this);
RETM_IF(ret != TTS_ERROR_NONE, "tts_set_state_changed_cb fail > Error = %s", get_tts_error(ret));
ret = tts_foreach_supported_voices(this->tts_handle, _tts_supported_voice_cb, this);