#define STICKER_SEND_FACE_DATA "sticker-send-face-data"
#define STICKER_SEND_STOP_REQ "sticker-send-stop-req"
#define STICKER_SEND_STOP_RSP "sticker-send-stop-rsp"
+#define STICKER_SEND_DISCONNECT_REQ "sticker-send-disconnect-req"
#ifndef VCONFKEY_STICKER_SYNC_COMPLETE_DONE
#define VCONFKEY_STICKER_SYNC_COMPLETE_DONE 0x1
LOGE("Failed to create thumbnail directory");
}
+void send_disconnect_message()
+{
+ JsonObject *j_object = NULL;
+ j_object = json_object_new();
+ if (j_object == NULL) {
+ LOGE("json object create error");
+ return;
+ }
+
+ json_object_set_string_member(j_object, "msgId", STICKER_SEND_DISCONNECT_REQ);
+ json_object_set_int_member(j_object, "tID", t_id);
+
+ if (_send_json_data(j_object) == FALSE) {
+ LOGE("Failed to send STICKER_SEND_DISCONNECT_REQ");
+ }
+
+ json_object_unref(j_object);
+}
+
void reject_file()
{
int ret = sap_file_transfer_reject(priv_data.file_socket);
#endif
if (!process_request_queue()) {
+ send_disconnect_message();
service_app_exit();
}
} else if (msg_id == STICKER_SYNC_START_RSP) {
if (result_code != SYNC_START_RSP_SUCCESS) {
set_sync_progressing(FALSE);
if (!process_request_queue()) {
+ send_disconnect_message();
service_app_exit();
}
}
sync_success_cnt = 0;
+ send_disconnect_message();
service_app_exit();
}