From 111748f3a1b29fd8354d49980b9e2bac7d1a761f Mon Sep 17 00:00:00 2001 From: Kim Kibum Date: Thu, 14 Jun 2012 15:08:25 +0900 Subject: [PATCH] apply FSL license --- LICENSE | 75 + SLP_MessagingFW_PG.h | 1753 ++++++++++---------- TC/msgTC/MapiControl/utc_msg_close_msg_handle.c | 134 +- TC/msgTC/MapiControl/utc_msg_close_msg_handle.h | 44 +- TC/msgTC/MapiControl/utc_msg_open_msg_handle.c | 136 +- TC/msgTC/MapiControl/utc_msg_open_msg_handle.h | 44 +- TC/msgTC/MapiMessage/utc_msg_add_address.c | 142 +- TC/msgTC/MapiMessage/utc_msg_add_address.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_address_count.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_address_count.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_dest_port.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_dest_port.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_direction_info.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_direction_info.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_encode_type.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_encode_type.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_folder_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_folder_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_ith_address.c | 150 +- TC/msgTC/MapiMessage/utc_msg_get_ith_address.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.c | 146 +- TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_ith_name.c | 150 +- TC/msgTC/MapiMessage/utc_msg_get_ith_name.h | 44 +- .../MapiMessage/utc_msg_get_ith_recipient_type.c | 146 +- .../MapiMessage/utc_msg_get_ith_recipient_type.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.c | 146 +- TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.h | 44 +- .../MapiMessage/utc_msg_get_message_body_size.c | 146 +- .../MapiMessage/utc_msg_get_message_body_size.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_message_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_message_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_message_type.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_message_type.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_network_status.c | 146 +- TC/msgTC/MapiMessage/utc_msg_get_network_status.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_priority_info.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_priority_info.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.c | 150 +- TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_src_port.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_src_port.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_storage_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_get_storage_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_subject.c | 150 +- TC/msgTC/MapiMessage/utc_msg_get_subject.h | 44 +- TC/msgTC/MapiMessage/utc_msg_get_time.c | 148 +- TC/msgTC/MapiMessage/utc_msg_get_time.h | 44 +- TC/msgTC/MapiMessage/utc_msg_is_in_sim.c | 146 +- TC/msgTC/MapiMessage/utc_msg_is_in_sim.h | 44 +- TC/msgTC/MapiMessage/utc_msg_is_mms.c | 146 +- TC/msgTC/MapiMessage/utc_msg_is_mms.h | 44 +- TC/msgTC/MapiMessage/utc_msg_is_protected.c | 142 +- TC/msgTC/MapiMessage/utc_msg_is_protected.h | 44 +- TC/msgTC/MapiMessage/utc_msg_is_read.c | 142 +- TC/msgTC/MapiMessage/utc_msg_is_read.h | 44 +- TC/msgTC/MapiMessage/utc_msg_is_sms.c | 142 +- TC/msgTC/MapiMessage/utc_msg_is_sms.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.c | 160 +- TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_add_media.c | 164 +- TC/msgTC/MapiMessage/utc_msg_mms_add_media.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_add_meta.c | 168 +- TC/msgTC/MapiMessage/utc_msg_mms_add_meta.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_add_page.c | 152 +- TC/msgTC/MapiMessage/utc_msg_mms_add_page.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_add_region.c | 160 +- TC/msgTC/MapiMessage/utc_msg_mms_add_region.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_add_transition.c | 168 +- TC/msgTC/MapiMessage/utc_msg_mms_add_transition.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_create_message.c | 154 +- TC/msgTC/MapiMessage/utc_msg_mms_create_message.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.c | 150 +- TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_media.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_media.h | 44 +- .../MapiMessage/utc_msg_mms_get_message_body.c | 44 +- .../MapiMessage/utc_msg_mms_get_message_body.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_meta.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_meta.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_get_page.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_page.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.h | 78 +- TC/msgTC/MapiMessage/utc_msg_mms_get_transition.c | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_get_transition.h | 78 +- .../MapiMessage/utc_msg_mms_set_message_body.c | 44 +- .../MapiMessage/utc_msg_mms_set_message_body.h | 44 +- TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.c | 152 +- TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.h | 78 +- TC/msgTC/MapiMessage/utc_msg_new_message.c | 138 +- TC/msgTC/MapiMessage/utc_msg_new_message.h | 82 +- TC/msgTC/MapiMessage/utc_msg_release_message.c | 142 +- TC/msgTC/MapiMessage/utc_msg_release_message.h | 44 +- TC/msgTC/MapiMessage/utc_msg_reset_address.c | 142 +- TC/msgTC/MapiMessage/utc_msg_reset_address.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_direction_info.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_direction_info.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_encode_type.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_encode_type.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_folder_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_folder_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_message_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_message_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_message_type.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_message_type.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_network_status.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_network_status.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_port.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_port.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_priority_info.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_priority_info.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_protect_status.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_protect_status.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_read_status.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_read_status.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.c | 154 +- TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_storage_id.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_storage_id.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_subject.c | 142 +- TC/msgTC/MapiMessage/utc_msg_set_subject.h | 44 +- TC/msgTC/MapiMessage/utc_msg_set_time.c | 150 +- TC/msgTC/MapiMessage/utc_msg_set_time.h | 44 +- .../MapiMessage/utc_msg_sms_get_message_body.c | 150 +- .../MapiMessage/utc_msg_sms_get_message_body.h | 44 +- .../MapiMessage/utc_msg_sms_set_message_body.c | 142 +- .../MapiMessage/utc_msg_sms_set_message_body.h | 44 +- TC/msgTC/MapiSetting/utc_msg_get_config.c | 144 +- TC/msgTC/MapiSetting/utc_msg_get_config.h | 78 +- TC/msgTC/MapiSetting/utc_msg_set_config.c | 148 +- TC/msgTC/MapiSetting/utc_msg_set_config.h | 78 +- TC/msgTC/MapiStorage/utc_msg_add_folder.c | 44 +- TC/msgTC/MapiStorage/utc_msg_add_folder.h | 84 +- TC/msgTC/MapiStorage/utc_msg_add_message.c | 156 +- TC/msgTC/MapiStorage/utc_msg_add_message.h | 84 +- TC/msgTC/MapiStorage/utc_msg_add_syncml_message.c | 180 +- TC/msgTC/MapiStorage/utc_msg_add_syncml_message.h | 84 +- TC/msgTC/MapiStorage/utc_msg_count_message.c | 164 +- TC/msgTC/MapiStorage/utc_msg_count_message.h | 84 +- .../MapiStorage/utc_msg_count_msg_by_contact.c | 182 +- .../MapiStorage/utc_msg_count_msg_by_contact.h | 84 +- TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.c | 164 +- TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.h | 84 +- .../utc_msg_delete_all_msgs_in_folder.c | 44 +- .../utc_msg_delete_all_msgs_in_folder.h | 84 +- TC/msgTC/MapiStorage/utc_msg_delete_folder.c | 160 +- TC/msgTC/MapiStorage/utc_msg_delete_folder.h | 84 +- TC/msgTC/MapiStorage/utc_msg_delete_message.c | 176 +- TC/msgTC/MapiStorage/utc_msg_delete_message.h | 84 +- .../utc_msg_delete_thread_message_list.c | 160 +- .../utc_msg_delete_thread_message_list.h | 84 +- TC/msgTC/MapiStorage/utc_msg_generate_message.c | 140 +- TC/msgTC/MapiStorage/utc_msg_generate_message.h | 84 +- .../utc_msg_get_conversation_view_list.c | 176 +- .../utc_msg_get_conversation_view_list.h | 84 +- TC/msgTC/MapiStorage/utc_msg_get_folder_list.c | 178 +- TC/msgTC/MapiStorage/utc_msg_get_folder_list.h | 84 +- .../MapiStorage/utc_msg_get_folder_view_list.c | 184 +- .../MapiStorage/utc_msg_get_folder_view_list.h | 84 +- TC/msgTC/MapiStorage/utc_msg_get_mem_size.c | 164 +- TC/msgTC/MapiStorage/utc_msg_get_mem_size.h | 84 +- TC/msgTC/MapiStorage/utc_msg_get_message.c | 176 +- TC/msgTC/MapiStorage/utc_msg_get_message.h | 84 +- .../MapiStorage/utc_msg_get_quick_panel_data.c | 162 +- .../MapiStorage/utc_msg_get_quick_panel_data.h | 84 +- .../MapiStorage/utc_msg_get_thread_view_list.c | 186 +-- .../MapiStorage/utc_msg_get_thread_view_list.h | 84 +- TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.c | 160 +- TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.h | 84 +- TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.c | 160 +- TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.h | 84 +- TC/msgTC/MapiStorage/utc_msg_release_folder_list.c | 178 +- TC/msgTC/MapiStorage/utc_msg_release_folder_list.h | 84 +- .../MapiStorage/utc_msg_release_thread_view_list.c | 178 +- .../MapiStorage/utc_msg_release_thread_view_list.h | 82 +- TC/msgTC/MapiStorage/utc_msg_reset_database.c | 160 +- TC/msgTC/MapiStorage/utc_msg_reset_database.h | 84 +- .../MapiStorage/utc_msg_thread_view_get_address.c | 194 +-- .../MapiStorage/utc_msg_thread_view_get_address.h | 84 +- .../utc_msg_thread_view_get_contact_id.c | 190 +-- .../utc_msg_thread_view_get_contact_id.h | 82 +- .../MapiStorage/utc_msg_thread_view_get_data.c | 194 +-- .../MapiStorage/utc_msg_thread_view_get_data.h | 84 +- .../utc_msg_thread_view_get_direction.c | 190 +-- .../utc_msg_thread_view_get_direction.h | 84 +- .../utc_msg_thread_view_get_image_path.c | 194 +-- .../utc_msg_thread_view_get_image_path.h | 84 +- .../MapiStorage/utc_msg_thread_view_get_mms_cnt.c | 190 +-- .../MapiStorage/utc_msg_thread_view_get_mms_cnt.h | 84 +- .../MapiStorage/utc_msg_thread_view_get_name.c | 194 +-- .../MapiStorage/utc_msg_thread_view_get_name.h | 84 +- .../MapiStorage/utc_msg_thread_view_get_sms_cnt.c | 190 +-- .../MapiStorage/utc_msg_thread_view_get_sms_cnt.h | 84 +- .../utc_msg_thread_view_get_thread_id.c | 190 +-- .../utc_msg_thread_view_get_thread_id.h | 84 +- .../MapiStorage/utc_msg_thread_view_get_time.c | 194 +-- .../MapiStorage/utc_msg_thread_view_get_time.h | 84 +- .../utc_msg_thread_view_get_unread_cnt.c | 190 +-- .../utc_msg_thread_view_get_unread_cnt.h | 84 +- TC/msgTC/MapiStorage/utc_msg_update_folder.c | 44 +- TC/msgTC/MapiStorage/utc_msg_update_folder.h | 84 +- TC/msgTC/MapiStorage/utc_msg_update_message.c | 160 +- TC/msgTC/MapiStorage/utc_msg_update_message.h | 84 +- .../MapiStorage/utc_msg_update_protected_status.c | 160 +- .../MapiStorage/utc_msg_update_protected_status.h | 84 +- TC/msgTC/MapiStorage/utc_msg_update_read_status.c | 180 +- TC/msgTC/MapiStorage/utc_msg_update_read_status.h | 84 +- .../MapiTransport/utc_msg_mms_forward_message.c | 44 +- .../MapiTransport/utc_msg_mms_forward_message.h | 86 +- .../MapiTransport/utc_msg_mms_reject_message.c | 44 +- .../MapiTransport/utc_msg_mms_reject_message.h | 86 +- .../MapiTransport/utc_msg_mms_retrieve_message.c | 44 +- .../MapiTransport/utc_msg_mms_retrieve_message.h | 86 +- TC/msgTC/MapiTransport/utc_msg_mms_send_message.c | 44 +- TC/msgTC/MapiTransport/utc_msg_mms_send_message.h | 86 +- .../MapiTransport/utc_msg_mms_send_read_report.c | 140 +- .../MapiTransport/utc_msg_mms_send_read_report.h | 84 +- .../utc_msg_reg_lbs_message_callback.c | 148 +- .../utc_msg_reg_lbs_message_callback.h | 86 +- .../utc_msg_reg_mms_conf_message_callback.c | 148 +- .../utc_msg_reg_mms_conf_message_callback.h | 86 +- .../utc_msg_reg_sent_status_callback.c | 148 +- .../utc_msg_reg_sent_status_callback.h | 86 +- .../utc_msg_reg_sms_message_callback.c | 150 +- .../utc_msg_reg_sms_message_callback.h | 86 +- .../utc_msg_reg_syncml_message_callback.c | 148 +- .../utc_msg_reg_syncml_message_callback.h | 86 +- TC/msgTC/MapiTransport/utc_msg_sms_send.c | 132 +- TC/msgTC/MapiTransport/utc_msg_sms_send.h | 86 +- TC/msgTC/MapiTransport/utc_msg_sms_send_message.c | 206 ++- TC/msgTC/MapiTransport/utc_msg_sms_send_message.h | 86 +- TC/msgTC/MapiTransport/utc_msg_submit_req.c | 208 ++- TC/msgTC/MapiTransport/utc_msg_submit_req.h | 86 +- debian/changelog | 51 +- debian/control | 2 +- framework/deliver-handler/MsgDeliverHandler.cpp | 44 +- framework/main.cpp | 44 +- framework/plugin-manager/MsgPluginConfig.cpp | 44 +- framework/plugin-manager/MsgPluginManager.cpp | 44 +- framework/setting-handler/MsgSettingHandler.cpp | 44 +- framework/storage-handler/MsgStorageFolder.cpp | 44 +- framework/storage-handler/MsgStorageManager.cpp | 44 +- framework/storage-handler/MsgStorageMessage.cpp | 44 +- framework/storage-handler/MsgStorageMms.cpp | 44 +- framework/storage-handler/MsgStorageSim.cpp | 44 +- framework/storage-handler/MsgStorageUtil.cpp | 44 +- framework/submit-handler/MsgSubmitHandler.cpp | 44 +- .../transaction-manager/MsgCmdHandlerSetting.cpp | 44 +- .../transaction-manager/MsgCmdHandlerStorage.cpp | 44 +- .../transaction-manager/MsgCmdHandlerTransport.cpp | 44 +- framework/transaction-manager/MsgTransManager.cpp | 44 +- include/common/MsgCmdTypes.h | 44 +- include/common/MsgCppTypes.h | 44 +- include/common/MsgInternalTypes.h | 44 +- include/common/MsgMmsTypes.h | 44 +- include/common/MsgPluginInterface.h | 44 +- include/common/MsgQueue.h | 44 +- include/common/MsgSettingTypes.h | 44 +- include/common/MsgStorageTypes.h | 44 +- include/common/MsgThread.h | 44 +- include/common/MsgTransportTypes.h | 44 +- include/common/MsgTypes.h | 44 +- include/framework/MsgCmdHandler.h | 44 +- include/framework/MsgDeliverHandler.h | 44 +- include/framework/MsgPluginConfig.h | 44 +- include/framework/MsgPluginManager.h | 44 +- include/framework/MsgSettingHandler.h | 44 +- include/framework/MsgStorageHandler.h | 44 +- include/framework/MsgSubmitHandler.h | 44 +- include/framework/MsgTransManager.h | 44 +- include/mapi/MapiControl.h | 44 +- include/mapi/MapiMessage.h | 44 +- include/mapi/MapiSetting.h | 44 +- include/mapi/MapiStorage.h | 44 +- include/mapi/MapiTransport.h | 44 +- include/msg_helper/MsgHelper.h | 44 +- include/proxy/MsgHandle.h | 44 +- include/proxy/MsgProxyListener.h | 44 +- include/utils/MsgContact.h | 44 +- include/utils/MsgDebug.h | 44 +- include/utils/MsgDrmWrapper.h | 74 +- include/utils/MsgException.h | 44 +- include/utils/MsgGconfWrapper.h | 44 +- include/utils/MsgIpcSocket.h | 44 +- include/utils/MsgMemory.h | 44 +- include/utils/MsgMmsMessage.h | 44 +- include/utils/MsgMutex.h | 44 +- include/utils/MsgNotificationWrapper.h | 44 +- include/utils/MsgSoundPlayer.h | 44 +- include/utils/MsgSqliteWrapper.h | 44 +- include/utils/MsgUtilFile.h | 44 +- include/utils/MsgUtilFunction.h | 44 +- include/utils/MsgUtilStorage.h | 44 +- mapi/MapiControl.cpp | 44 +- mapi/MapiMessage.cpp | 44 +- mapi/MapiSetting.cpp | 44 +- mapi/MapiStorage.cpp | 44 +- mapi/MapiTransport.cpp | 44 +- msg_helper/MsgSoundPlayer.cpp | 44 +- msg_helper/main.cpp | 44 +- plugin/mms_plugin/CMakeLists.txt | 2 +- .../LanguagePack/MmsPluginWmLngLatinUni.cpp | 44 +- .../LanguagePack/MmsPluginWmLngString.cpp | 44 +- .../LanguagePack/MmsPluginWmLngUTF8Uni.cpp | 44 +- .../LanguagePack/MmsPluginWmLngUniUTF8.cpp | 44 +- plugin/mms_plugin/MmsPluginAvCodec.cpp | 44 +- plugin/mms_plugin/MmsPluginCodec.cpp | 44 +- plugin/mms_plugin/MmsPluginConnManWrapper.cpp | 44 +- plugin/mms_plugin/MmsPluginContentCodec.cpp | 44 +- plugin/mms_plugin/MmsPluginDebug.cpp | 44 +- plugin/mms_plugin/MmsPluginDecode.cpp | 45 +- plugin/mms_plugin/MmsPluginDrm.cpp | 71 +- plugin/mms_plugin/MmsPluginEncode.cpp | 44 +- plugin/mms_plugin/MmsPluginEventHandler.cpp | 44 +- plugin/mms_plugin/MmsPluginHttp.cpp | 44 +- plugin/mms_plugin/MmsPluginInternal.cpp | 44 +- plugin/mms_plugin/MmsPluginMIME.cpp | 44 +- plugin/mms_plugin/MmsPluginMain.cpp | 44 +- plugin/mms_plugin/MmsPluginMessage.cpp | 44 +- plugin/mms_plugin/MmsPluginSMILValidate.cpp | 44 +- plugin/mms_plugin/MmsPluginSmil.cpp | 44 +- plugin/mms_plugin/MmsPluginStorage.cpp | 44 +- plugin/mms_plugin/MmsPluginTransport.cpp | 44 +- plugin/mms_plugin/MmsPluginUserAgent.cpp | 44 +- plugin/mms_plugin/include/MmsPluginAvCodec.h | 44 +- plugin/mms_plugin/include/MmsPluginCodec.h | 44 +- .../mms_plugin/include/MmsPluginConnManWrapper.h | 44 +- plugin/mms_plugin/include/MmsPluginData.h | 44 +- plugin/mms_plugin/include/MmsPluginDebug.h | 44 +- plugin/mms_plugin/include/MmsPluginDrm.h | 44 +- plugin/mms_plugin/include/MmsPluginEventHandler.h | 44 +- plugin/mms_plugin/include/MmsPluginHttp.h | 44 +- plugin/mms_plugin/include/MmsPluginInternal.h | 44 +- plugin/mms_plugin/include/MmsPluginMIME.h | 44 +- plugin/mms_plugin/include/MmsPluginMain.h | 44 +- plugin/mms_plugin/include/MmsPluginMessage.h | 44 +- plugin/mms_plugin/include/MmsPluginSMILValidate.h | 44 +- plugin/mms_plugin/include/MmsPluginSetup.h | 44 +- plugin/mms_plugin/include/MmsPluginSmil.h | 44 +- plugin/mms_plugin/include/MmsPluginStorage.h | 44 +- plugin/mms_plugin/include/MmsPluginTransport.h | 44 +- plugin/mms_plugin/include/MmsPluginTypes.h | 44 +- plugin/mms_plugin/include/MmsPluginUserAgent.h | 44 +- plugin/mms_plugin/include/MmsPluginWmLngPack.h | 44 +- plugin/sms_plugin/CMakeLists.txt | 2 +- plugin/sms_plugin/SmsPluginCallback.cpp | 44 +- plugin/sms_plugin/SmsPluginCbMsgHandler.cpp | 44 +- plugin/sms_plugin/SmsPluginConcatHandler.cpp | 44 +- plugin/sms_plugin/SmsPluginEventHandler.cpp | 44 +- plugin/sms_plugin/SmsPluginMain.cpp | 44 +- plugin/sms_plugin/SmsPluginParamCodec.cpp | 44 +- plugin/sms_plugin/SmsPluginSatHandler.cpp | 44 +- plugin/sms_plugin/SmsPluginSetting.cpp | 44 +- plugin/sms_plugin/SmsPluginSimMsg.cpp | 44 +- plugin/sms_plugin/SmsPluginStorage.cpp | 44 +- plugin/sms_plugin/SmsPluginTextConvert.cpp | 44 +- plugin/sms_plugin/SmsPluginTpduCodec.cpp | 44 +- plugin/sms_plugin/SmsPluginTransport.cpp | 44 +- plugin/sms_plugin/SmsPluginUAManager.cpp | 44 +- plugin/sms_plugin/SmsPluginUDCodec.cpp | 44 +- plugin/sms_plugin/SmsPluginWapPushHandler.cpp | 72 +- plugin/sms_plugin/include/SmsPluginCallback.h | 44 +- plugin/sms_plugin/include/SmsPluginCbMsgHandler.h | 44 +- plugin/sms_plugin/include/SmsPluginConcatHandler.h | 44 +- plugin/sms_plugin/include/SmsPluginEventHandler.h | 44 +- plugin/sms_plugin/include/SmsPluginMain.h | 44 +- plugin/sms_plugin/include/SmsPluginParamCodec.h | 44 +- plugin/sms_plugin/include/SmsPluginSatHandler.h | 44 +- plugin/sms_plugin/include/SmsPluginSetting.h | 44 +- plugin/sms_plugin/include/SmsPluginSimMsg.h | 44 +- plugin/sms_plugin/include/SmsPluginStorage.h | 44 +- plugin/sms_plugin/include/SmsPluginTextConvert.h | 44 +- plugin/sms_plugin/include/SmsPluginTpduCodec.h | 44 +- plugin/sms_plugin/include/SmsPluginTransport.h | 44 +- plugin/sms_plugin/include/SmsPluginTypes.h | 44 +- plugin/sms_plugin/include/SmsPluginUAManager.h | 44 +- plugin/sms_plugin/include/SmsPluginUDCodec.h | 44 +- .../sms_plugin/include/SmsPluginWapPushHandler.h | 44 +- proxy/MsgHandleControl.cpp | 44 +- proxy/MsgHandleSetting.cpp | 44 +- proxy/MsgHandleStorage.cpp | 44 +- proxy/MsgHandleTransport.cpp | 44 +- proxy/MsgProxyListener.cpp | 44 +- test_app/MsgTestConvert.cpp | 44 +- test_app/MsgTestConvert.h | 44 +- test_app/MsgTestSetting.cpp | 44 +- test_app/MsgTestSetting.h | 44 +- test_app/MsgTestStorage.cpp | 44 +- test_app/MsgTestStorage.h | 44 +- test_app/MsgTestThreadView.cpp | 44 +- test_app/MsgTestThreadView.h | 44 +- test_app/MsgTestTransport.cpp | 44 +- test_app/MsgTestTransport.h | 44 +- test_app/main.cpp | 44 +- test_app/main.h | 44 +- utils/CMakeLists.txt | 2 +- utils/MsgContact.cpp | 44 +- utils/MsgDebug.cpp | 44 +- utils/MsgDrmWrapper.cpp | 494 ++---- utils/MsgException.cpp | 44 +- utils/MsgGconfWrapper.cpp | 44 +- utils/MsgIpcSocket.cpp | 44 +- utils/MsgMemory.cpp | 44 +- utils/MsgMmsMessage.cpp | 44 +- utils/MsgMutex.cpp | 44 +- utils/MsgNotificationWrapper.cpp | 44 +- utils/MsgSoundPlayer.cpp | 44 +- utils/MsgSqliteWrapper.cpp | 44 +- utils/MsgUtilFile.cpp | 44 +- utils/MsgUtilFunction.cpp | 44 +- utils/MsgUtilStorage.cpp | 44 +- 414 files changed, 14193 insertions(+), 20140 deletions(-) create mode 100755 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..7ccb5b5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,75 @@ +Flora License + +Version 1.0, May, 2012 + +http://www.tizenopensource.org/license + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +"Tizen Certified Platform" shall mean a software platform that complies with the standards set forth in the Compatibility Definition Document and passes the Compatibility Test Suite as defined from time to time by the Tizen Technical Steering Group and certified by the Tizen Association or its designated agent. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work solely as incorporated into a Tizen Certified Platform, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work solely as incorporated into a Tizen Certified Platform to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof pursuant to the copyright license above, in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and + + 2. You must cause any modified files to carry prominent notices stating that You changed the files; and + + 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + 4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Flora License to your work + +To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Flora License, Version 1.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.tizenopensource.org/license + + 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. diff --git a/SLP_MessagingFW_PG.h b/SLP_MessagingFW_PG.h index 25a0c04..fababac 100755 --- a/SLP_MessagingFW_PG.h +++ b/SLP_MessagingFW_PG.h @@ -1,869 +1,884 @@ -/** - * - * @ingroup SLP_PG - * @defgroup MESSAGE MessagingFW -@{ -

Introduction

-

Purpose

-The purpose of this document is to describe how applications can use the Messaging Framework APIs to send and receive SMS and MMS messages. This document gives programming guidelines to application engineers. - -

Scope

-The scope of this document is limited to Messaging Framework APIs usage. - -

Abbreviations

- - -
APIApplication Programming Interface
-@} - -@defgroup Message_Architecture 1.Archtecture -@ingroup MESSAGE -@{ -

Messaging Framework Architecture

-The Messaging framework supports various messaging services such as SMS, MMS, Cell Broadcast, WAP Push, and Provisioning message. The Messaging framework architecture consists of a Messaging daemon and a library. The messaging library works on application process and provides various APIs to support transport, control, storage, filter and setting services for application. The messaging daemon has three components (transaction manager, transaction handler, and plug-in manager) to provide message services. The socket IPC is used to communicate (request & event) between Messaging daemon and library. -@image html messaging_image001.png - -- Transaction Manager - - Receive the IPC message (request) on socket. - - Manage list of pairs (request ID, transaction proxy) for synchronous return. - - Determine the transaction flow based on request/event information. (Mapping the request to one of the handlers) - - Store the transaction information for asynchronous events (Find which transaction proxy want to receive SMS) -- Transaction Handler - - Submit handler deals with submit requests. - - Deliver handler deals with the incoming message from plug-ins. - - Storage handler deals with the messages, accounts and folder requests - - Filter handler deals with the filter requests - - Setting handler deals with the service-specific attributes -- Plug-in Manager - - Initialize all plug-ins after loading plug-in configuration files - - Holding the list of plug-ins and the state of plug-ins - - Providing the interface between handlers and plug-ins -- Transaction Handlers - - Initialize all plug-ins after loading plug-in configuration files - - Receiving IPC messages from messaging daemon. - - Handling synchronous calls - - Condition variable is used for waiting the return from msg. server) - - Handling asynchronous calls or events - - Proxy listener is a component of transaction proxy - - Proxy listener is waiting for the event - - Invoking callback function in the msg. handle list - - i.e. calling incoming callback function of MSG APP handle, when incoming msg - - Holding list of message handles - - Message handle is created by MsgOpenMsgHandle(msgHandle) - - Message handle holds some info such as callback func -- Message API - - Transport & control API - - Storage API - - Filter API - - Setting API -@} - -@defgroup Message_Feature 2.Feature -@ingroup MESSAGE -@{ -

Messaging Framework Features

--# Message Control Features: - -# Open/Close message handle --# Message Transport Features: - -# Submit request to send, forward, reply, retrieve message. - -# Register callback functions to listen to invoked events from messaging daemon. (message status callback, incoming message callback) --# Message Storage Features: - -# Add / Update / Move / Delete / Count / Get message or message list. - -# Add / Update / Delete / Get folder or folder list. --# Message Filter Features: - -# Add / Update / Delete filter or filter list. --# Message Setting Features: - -# Set / Get various message setting (i.e. whether to send read/delivery report or not) -@} - -@defgroup MESSAGE_USECASES_1 Initialize/Finalization -@ingroup MESSAGE_USECASES -@{ -

Messaging Framework Functions

- -

Initialization / Finalization to use Messaging Service

-- int msg_open_msg_handle(MSG_HANDLE_T *handle); -@n msg_open_msg_handle() should be called before using the messaging service. This function opens a channel between the application and the messaging framework. -- int msg_close_msg_handle(MSG_HANDLE_T *handle); -@n msg_close_msg_handle() should be called after using the messaging service. This function closes a channel between the application and the messaging framework. -- int msg_reg_sent_status_callback(MSG_HANDLE_T handle, msg_sent_status_cb cb); -@n Application should implement a msg_sent_status_cb function and register it into message handle. If the application sends a message, this callback function will be called to report its sending status. msg_reg_set_status_callback function should be called after creation of message handle. -- int msg_reg_sms_message_callback(MSG_HANDLE_T handle, msg_sms_incoming_cb cb, unsigned short port); -@n Application should implement a msg_sms_incoming_cb function and register it into message handle. It?™s used to listen to the SMS incoming event invoked by messaging daemon. The incoming message information structure (MSG_MESSAGE_S) can be delivered as a parameter of the callback function. -- int msg_reg_mms_conf_message_callback(MSG_HANDLE_T handle, msg_mms_conf_msg_incoming_cb cb, char *app_id); -@n Application should implement a msg_mms_conf_msg_incoming_cb function and register it into message handle. It?™s used to listen to the MMS incoming event invoked by messaging daemon. The incoming message information structure (MSG_MESSAGE_S) can be delivered as a parameter of the callback function. -@code -#include -#include -#include -#include - -void sentStatusCB(MSG_HANDLE_T hMsgHandle, MSG_SENT_STATUS_S *pMsgStatus, void *user_param) -{ - // Application can handle message sent status event -} - -void incomingSmsMessageCB (MSG_HANDLE_T hMsgHandle, msg_message_t msg, void *user_param) -{ - // Application can handle SMS incoming message. -} - -void incomingMmsConfMessageCB(MSG_HANDLE_T hMsgHandle, msg_message_t msg, void *user_param) -{ - // Application can handle MMS incoming message. -} - -int main(void) -{ - MSG_HANDLE_T msgHandle = NULL; - - err = msg_open_msg_handle(&msgHandle); - - if (err != MSG_SUCCESS) - { - printf("msg_open_msg_handle() Fail [%d]", err); - return err; - } - - // Register sent status handler - err = msg_reg_sent_status_callback(msgHandle, &sentStatusCB, NULL); - - if (err != MSG_SUCCESS) - { - printf("msg_reg_sent_status_callback() Fail [%d]", err); - return err; - } - - // Register SMS incoming message handler - err = msg_reg_sms_message_callback(msgHandle, &incomingSmsMessageCB, 0, NULL); - - if (err != MSG_SUCCESS) - { - printf("msg_reg_sms_message_callback() Fail [%d]", err); - return err; - } - - // Register MMS incoming message handler - err = msg_reg_mms_conf_message_callback(msgHandle, &incomingMmsConfMessageCB, NULL, NULL); - - if (err != MSG_SUCCESS) - { - printf("msg_reg_mms_conf_message_callback() Fail [%d]", err); - return err; - } - - // g_main_loop should be used to listen CB event from messaging daemon - mainloop = g_main_loop_new(NULL, FALSE); - g_main_loop_run(mainloop); - - msg_close_msg_handle(&msgHandle); - - return err; -} -@endcode -@} - -@defgroup MESSAGE_USECASES_2 Adding a SMS Message -@ingroup MESSAGE_USECASES -@{ -

Adding a SMS Message

-- msg_message_t msg_new_message(); -@n msg_new_message() is a function to create a message object which can store the message information. You should call this function to set the message that you want to add or send. -- int msg_set_message_type(msg_message_t msg, MSG_MESSAGE_TYPE_T msg_type); -@n msg_set_message_type() is a function to set the message type such as SMS or MMS. The first parameter is the message object which is created by msg_new_message(). The second parameter is the message type you want to set. It should be one of enum type ( _MSG_MESSAGE_TYPE_E). If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -- int msg_sms_set_message_body(msg_message_t msg, const char* mdata, int size); -@n msg_sms_set_message_body() is a function to set the SMS body data. The first parameter is the message object which is created by msg_new_message(). The second parameter is the SMS body data you want to set. The third parameter is the length of SMS body data. If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -- int msg_add_address(msg_message_t msg, const char* phone_num_list, MSG_RECIPIENT_TYPE_T to_type); -@n msg_add_address() is a function to add the phone numbers for the message. The first parameter is the message object which is created by msg_new_message(). The second parameter is the list of phone number you want to set. You can add several phone numbers at once. The phone numbers should be separated by ','. The third parameter is the recipient type of phone number. It should be one of enum type (_MSG_RECIPIENT_TYPE_E). If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -- int msg_add_message(MSG_HANDLE_T handle, const msg_message_t msg, const MSG_SENDINGOPT_S *send_opt); -@n msg_add_message() is a function to add a composed message into the database of messaging framework. Before calling this function, the application should set the message object and the sending option structure and then pass them as parameters. If you don't want to change the current sending option, set the variable 'bSetting' to false. If saving a message is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -- int msg_release_message(msg_message_t *msg); -@n msg_release_message() is a function to free the memory of a message object which is create by msg_new_message(). If freeing the memory is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -@code -#include -#include -#include - -void test_add_sms_message(MSG_HANDLE_T hMsgHandle) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - MSG_SENDINGOPT_S sendOpt = {0, }; - sendOpt.bSetting = false; - - msg_message_t msgInfo = msg_new_message(); - - // Set Message Type - err = msg_set_message_type(msgInfo, MSG_TYPE_SMS); - - if (err != MSG_SUCCESS) goto free_memory; - - char msgText[1024]; - - memset(msgText, 0x00, 1024); - strncpy(msgText, "Test SMS Message", sizeof(msgText)-1); - int dataSize = strlen(msgText); - - // Set SMS text - err = msg_sms_set_message_body(msgInfo, msgText, dataSize); - - if (err != MSG_SUCCESS) goto free_memory; - - char number[MAX_ADDRESS_VAL_LEN]; - - memset(number, 0x00, MAX_ADDRESS_VAL_LEN); - strncpy(number, "+821030011234", sizeof(number)-1); - - // Set Recipient Address - err = msg_add_address(msgInfo, number, MSG_RECIPIENTS_TYPE_TO); - - if (err != MSG_SUCCESS) goto free_memory; - - err = msg_add_message(hMsgHandle, msgInfo, &sendOpt); - - if (err == MSG_SUCCESS) - printf("Saving Message is OK!"); - else - printf("Saving Message is failed!"); - -free_memory: - msg_release_message(&msgInfo); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_3 Adding a MMS Message -@ingroup MESSAGE_USECASES -@{ -

Adding a MMS Message

-- int msg_set_subject(msg_message_t msg, const char* subject); -@n msg_set_subject() is a function to set the subject of MMS. The first parameter is the message object which is created by msg_new_message(). The second parameter is the subject you want to set. If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- MMS_MESSAGE_DATA_S* msg_mms_create_message(void); -@n msg_mms_create_message() allocates a MMS_MESSAGE_DATA_S structure and returns it?™s address. MMS_MESSAGE_DATA_S is needed to represent mms specific data and transfer it to the messaging daemon in the pData parameter of the MSG_MESSAGE_S structure. - -- MMS_SMIL_ROOTLAYOUT* msg_mms_set_rootlayout(MMS_MESSAGE_DATA_S* msg, const int width, const int height, const int bgcolor); -@n msg_mms_set_rootlayout() is a function to set smil root layout. The parameters representing the size and background color of smil root layout should be set. - -- MMS_SMIL_REGION* msg_mms_add_region(MMS_MESSAGE_DATA_S *msg_data, const char* szID, const int x, const int y, const int width, const int height, const int bgcolor); -@n msg_mms_add_region() is a function to add a smil region. Smil region is needed to display text message, image, and video data (Each content has its own region). This function is called to allocate a region for each contents. - -- MMS_PAGE_S* msg_mms_add_page(MMS_MESSAGE_DATA_S *msg_data, const int duration); -@n msg_mms_add_page() is a function to add a smil page. - -- MMS_MEDIA_S* msg_mms_add_media(MMS_PAGE_S *page, const MmsSmilMediaType mediatype, const char* regionid, char* filepath); -@n msg_mms_add_media() is a function to add multimedia content to a mms message. If some content should be played with smil player, this function can be used. - -- MMS_ATTACH_S* msg_mms_add_attachment(MMS_MESSAGE_DATA_S *msg_data, char *filepath); -@n msg_mms_add_attachment() is a function to add a content as an attached file. With this function a content might be attached as a multipart mixed type. - -- int msg_mms_set_message_body(msg_message_t msg, const MMS_MESSAGE_DATA_S *msg_data); -@n msg_mms_set_message_body() is a function to set the MMS body data. The first parameter is the message object which is created by msg_new_message(). The second parameter is the structure which is allocated by msg_mms_create_message() and is set by the APIs for MMS. - -- int msg_mms_destroy_message(MMS_MESSAGE_DATA_S* msg); -@n msg_mms_destroy_message() should be called to deallocate the MMS_MESSAGE_DATA_S structure and internal region, page, media, and attach list. -@code -#include -#include -#include - -void test_add_mms_message(MSG_HANDLE_T hMsgHandle) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - MSG_SENDINGOPT_S sendOpt = {0, }; - sendOpt.bSetting = false; - - msg_message_t msgInfo = msg_new_message(); - - // Set Message Type - err = msg_set_message_type(msgInfo, MSG_TYPE_MMS); - - if (err != MSG_SUCCESS) goto free_memory; - - MMS_MESSAGE_DATA_S* data; - MMS_PAGE_S* page; - MMS_MEDIA_S* media[3]; - MMS_ATTACH_S* attach; - int nSize = 0; - - // Set MMS subject - char subject[MAX_SUBJECT_LEN]; - - memset(subject, 0x00, MAX_SUBJECT_LEN); - strncpy(subject, "hello mms", sizeof(subject)-1); - - err = msg_set_subject(msgInfo, subject); - - if (err != MSG_SUCCESS) goto free_memory; - - // Set MMS Body data - data = msg_mms_create_message(); - msg_mms_set_rootlayout(data, 100, 100, 0xffffff); - msg_mms_add_region(data, "Image", 0, 50, 100, 50, 0xffffff); - msg_mms_add_region(data, "Text", 0, 0, 100, 50, 0xffffff); - page = msg_mms_add_page(data, 5000); - media[0] = msg_mms_add_media(page, MMS_SMIL_MEDIA_IMG, "Image", "/tmp/image.jpg"); - media[1] = msg_mms_add_media(page, MMS_SMIL_MEDIA_AUDIO, NULL, "/tmp/audio.amr"); - media[2] = msg_mms_add_media(page, MMS_SMIL_MEDIA_TEXT, "Text", "/tmp/message.txt"); - attach = msg_mms_add_attachment(data, "attachment.3gp"); - - err = msg_mms_set_message_body(msgInfo, data); - - if (err != MSG_SUCCESS) - { - msg_mms_destroy_message(data); - goto free_memory; - } - - msg_mms_destroy_message(data); - - // Set Recipient Address - char number[MAX_ADDRESS_VAL_LEN]; - - memset(number, 0x00, MAX_ADDRESS_VAL_LEN); - strncpy(number, "+821030011234", sizeof(number)-1); - - err = msg_add_address(msgInfo, number, MSG_RECIPIENTS_TYPE_TO); - - if (err != MSG_SUCCESS) goto free_memory; - - err = msg_add_message(hMsgHandle, msgInfo, &sendOpt); - - if (err == MSG_SUCCESS) - printf("Saving Message is OK!"); - else - printf("Saving Message is failed!"); - -free_memory: - msg_release_message(&msgInfo); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_4 Sending a SMS/MMS Message -@ingroup MESSAGE_USECASES -@{ -

Sending a SMS/MMS Message

- -- bool msg_is_sms(msg_message_t msg); -@n msg_is_sms() is a function to check whether the message type of message object is SMS or not. The first parameter is the message object which is created by msg_new_message(). The function returns true if the message object is a SMS message. Otherwise, it returns false. - -- bool msg_is_mms(msg_message_t msg); -@n msg_is_mms() is a function to check whether the message type of message object is MMS or not. The first parameter is the message object which is created by msg_new_message(). The function returns true if the message object is a MMS message. Otherwise, it returns false. - -- int msg_sms_send_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); -@n msg_sms_send_message() is a function to send SMS through messaging framework. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the structure that includes the message information to send. You can get the result of sending on sent status callback. - -- int msg_mms_send_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); -@n msg_sms_send_message() is a function to send SMS through messaging framework. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the structure that includes the message information to send. You can get the result of sending on sent status callback. -@code -#include -#include - -int MsgTestSendMsg(MSG_HANDLE_T hMsgHandle, msg_message_t pMsg) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL\n"); - return MSG_ERR_NULL_MSGHANDLE; - } - - MSG_ERROR_T err = MSG_SUCCESS; - - MSG_REQUEST_S req = {0}; - - if (pMsg == NULL) - { - printf("Message is NULL\n"); - return MSG_ERR_NULL_MESSAGE; - } - - req.msg = pMsg; - - if (msg_is_sms(req.msg)) - err = msg_sms_send_message(hMsgHandle, &req); - else if (msg_is_mms(req.msg)) - err = msg_mms_send_message(hMsgHandle, &req); - - if (err == MSG_SUCCESS) - printf("Request to Send Message is successful!!!"); - else - printf("Request to Send Message is failed!!!"); - - return err; -} -@endcode -@} - -@defgroup MESSAGE_USECASES_5 Sending Simple SMS Message -@ingroup MESSAGE_USECASES -@{ -

Simple SMS Sending

-- int msg_sms_send(const char *phone_num_list, const char *sms_text, msg_simple_sent_status_cb cb, void *user_param); -@n msg_sms_send() is a simple function to send an SMS message. Without this API, in order to send a message the application should allocate a channel with messaging daemon for IPC, register sent-status callback function to monitor the sending result, and fulfill many member variables of MSG_MESSAGE_S. This function implicitly makes a connection with messaging daemon and registers the callback function. In addition, member variables of the MSG_MESSAGE_S structure are filled with default values except for the recipient phone_number and sms_text. -@code -#include -#include -#include -#include - -GMainLoop *mainloop; - -typedef struct { - char number[256]; - char text[256]; - char userdata[256]; -} send_data; - -void sent_status_cb(MSG_SENT_STATUS_S *pMsgStatus, void *userData) -{ - if (pMsgStatus->status == MSG_NETWORK_SEND_SUCCESS) - printf("reqId : %d MSG SENT SUCCESS !!!\n", pMsgStatus->reqId); - else - printf("reqId : %d MSG SENT FAIL !!! [%d]\n", pMsgStatus->reqId, pMsgStatus->status); -} - -// count from here -gboolean send_func(gpointer data) -{ - send_data* sms_input = (send_data*)data; - - printf("Begin to send [%s] to [%s]\n", sms_input->number, sms_input->text); - MSG_ERROR_T err = msg_sms_send(sms_input->number, sms_input->text, &sent_status_cb, (void*)sms_input->userdata); - - if (err != MSG_SUCCESS) - printf("Send failed [%d]\n", err); - - return FALSE; -} -// end - -int main(int argc, char* argv[]) -{ - if (argc != 3 && argc != 4) - { - printf("Usage: %s {phone_num_list} {sms_text} [user_data]\n", argv[0]); - printf("phone_num_list: phone_num1, phone_num2, ..., phone_numN\n"); - return 0; - } - - // Set sms input parameters : phone numbers and text - send_data sms_input = {}; - strncpy(sms_input.number, argv[1], sizeof(sms_input.number)-1); - strncpy(sms_input.text, argv[2], sizeof(sms_input.text)-1); - if (argc == 4) - strncpy(sms_input.userdata, argv[3], sizeof(sms_input.userdata)-1); - - // Add Sending Function to GMainLoop - g_idle_add(&send_func, (gpointer) &sms_input); - - // start GMainLoop - mainloop = g_main_loop_new(NULL, FALSE); - - printf("Entering GMain Loop to Receive Notifications in Thread...\n"); - - g_main_loop_run(mainloop); - - printf("==== End Test App. Bye...===\n"); - - return 0; -} -@endcode -@} - -@defgroup MESSAGE_USECASES_6 Retrieving a MMS Message -@ingroup MESSAGE_USECASES -@{ -

Retrieving a MMS Message

-- int msg_mms_retrieve_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); -@n msg_mms_retrieve_message() is a function to submit a retrieve MMS request. -@code -void MsgTestRetrieveMessage(MSG_HANDLE_T hMsgHandle, MSG_MESSAGE_ID_T nMsgId) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL"); - return; - } - - MSG_ERROR_T err = MSG_SUCCESS; - - msg_message_t msg = msg_new_message(); - MSG_SENDINGOPT_S sendOpt = {0, }; - - err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)nMsgId, msg, &sendOpt); - - if (err != MSG_SUCCESS) - printf("Get Message Failed!"); - - MSG_REQUEST_S req = {0, msg, sendOpt}; - - err = msg_mms_retrieve_message(hMsgHandle, &req); - - if (err != MSG_SUCCESS) - printf("Retrieve MMS Message Failed!"); - - msg_release_message(&msg); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_7 Getting a SMS Message -@ingroup MESSAGE_USECASES -@{ -

Getting a SMS Message

-- int msg_get_message(MSG_HANDLE_T handle, MSG_MESSAGE_ID_T msg_id, msg_message_t msg, MSG_SENDINGOPT_S *send_opt); -@n msg_get_message() is a function to get a message. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the message ID you want to get. The third parameter is the message object to receive the message information. The last parameter is the structure to receive the message sending options. - -- int msg_get_message_id(msg_message_t msg); -@n msg_get_message_id() is a function to get the message ID. The parameter is the message object. If the function is successful, it returns the message ID. Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- int msg_get_folder_id(msg_message_t msg); -@n msg_get_folder_id() is a function to get the ID of the folder that the message is saved within. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_FOLDER_ID_E) . Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- int msg_get_message_type(msg_message_t msg); -@n msg_get_message_type() is a function to get the message type. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_MESSAGE_TYPE_E). Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- int msg_get_address_count(msg_message_t msg); -@n msg_get_address_count() is a function to get the number of addresses. The parameter is the message object. If the function is successful, it returns the number of addresses. Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- const char* msg_get_ith_address(msg_message_t msg, int ith); -@n msg_get_ith_address() is a function to get the ith address of message. The first parameter is the message object. The second parameter is the index of address you want to get. If the function is successful, it returns the address string. Otherwise it returns NULL. - -- time_t* msg_get_time(msg_message_t msg); -@n msg_get_time() is a function to get the time value of message. The parameter is the message object. If the function is successful, it returns the time value. Otherwise it returns NULL. - -- int msg_get_network_status(msg_message_t msg); -@n msg_get_network_status() is a function to get the network status of message. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_NETWORK_STATUS_E). Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- bool msg_is_read(msg_message_t msg); -@n msg_is_read() is a function to check whether the message was read or not. The parameter is the message object. If the message was read, it returns true. Otherwise it returns false. - -- bool msg_is_protected(msg_message_t msg); -@n msg_is_protected() is a function to check whether the message is protected or not. The parameter is the message object. If the the message was protected, it returns true. Otherwise it returns false. - -- int msg_get_message_body_size(msg_message_t msg); -@n msg_get_message_body_size() is a function to get the byte size of message. The parameter is the message object. If the function is successful, it returns the byte size of message. Otherwise it returns an error in enum type (_MSG_ERROR_E). - -- const char* msg_sms_get_message_body(msg_message_t msg); -@n msg_sms_get_message_body() is a function to get the body data of message. The first parameter is the message object. If the function is successful, it returns the body data. Otherwise it returns NULL. -@code -void MsgTestGetSmsMessage(MSG_HANDLE_T hMsgHandle, int MsgId) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL\n"); - return; - } - - MSG_ERROR_T err = MSG_SUCCESS; - - msg_message_t msg = msg_new_message(); - MSG_SENDINGOPT_S sendOpt = {0, }; - - // Get Message - err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)MsgId, msg, &sendOpt); - - if (err != MSG_SUCCESS) goto free_memory; - - printf("msgId = %d\n", msg_get_message_id(msg)); - printf("folderId = %d\n", msg_get_folder_id(msg)); - printf("msgType = %d\n", msg_get_message_type(msg)); - printf("phone number = %s\n", msg_get_ith_address(msg, 0)); - printf("displayTime = %s\n", ctime(msg_get_time(msg))); - printf("networkStatus = %d\n", msg_get_network_status(msg)); - printf("bRead = %d\n", msg_is_read(msg)); - printf("bProtected = %d\n", msg_is_protected(msg)); - printf("dataSize = %d\n", msg_get_message_body_size(msg)); - printf("msgData = %s\n", msg_sms_get_message_body(msg)); - -free_memory: - msg_release_message(&msg); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_8 Getting a MMS Message -@ingroup MESSAGE_USECASES -@{ -

Getting a MMS Message

-- int msg_mms_get_message_body(msg_message_t msg, MMS_MESSAGE_DATA_S *body); -@n msg_get_address_count. The parameter is the message object. The second parameter is the structure to receive MMS data as output. If the function is successful, it returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). -- MMS_SMIL_REGION* msg_mms_get_smil_region(MMS_MESSAGE_DATA_S msgBody, int region_idx); -@n msg_mms_get_smil_region() is a function to get a SMIL region information. The first parameter is the structure of MMS data. The second parameter is the index of SMIL region you want to get. If the function is successful, it returns the structure which contains the SMIL region information. Otherwise it returns NULL. -- MMS_PAGE_S* msg_mms_get_page(MMS_MESSAGE_DATA_S msgBody, int page_idx); -@n msg_mms_get_page() is a function to get a SMIL page information. The first parameter is the structure of MMS data. The second parameter is the index of SMIL page you want to get. If the function is successful, it returns the structure which contains the SMIL page information. Otherwise it returns NULL. -- MMS_MEDIA_S* msg_mms_get_media(MMS_PAGE_S *page, int media_idx); -@n msg_mms_get_media() is a function to get a media information in a SMIL page. The first parameter is the structure of SMIL page you want to get the media from. The second parameter is the index of media you want to get. If the function is successful, it returns the structure which contains the media information. Otherwise it returns NULL. -- MMS_ATTACH_S* msg_mms_get_attachment(MMS_MESSAGE_DATA_S msgBody, int attach_idx); -@n msg_mms_get_attachment() is a function to get the file information of an attachment. The first parameter is the structure of MMS data. The second parameter is the index of attachment you want to get. If the function is successful, it returns the structure which contains the attachment file information. Otherwise it returns NULL. -- const char* msg_get_subject(msg_message_t msg); -@n msg_get_subject() is a function to get the subject of MMS. The parameter is the message object. If the function is successful, it returns the subject string. Otherwise it returns NULL. -@code -void MsgTestGetMmsMessage(MSG_HANDLE_T hMsgHandle, int MsgId) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL\n"); - return; - } - - MSG_ERROR_T err = MSG_SUCCESS; - - msg_message_t msg = msg_new_message(); - MSG_SENDINGOPT_S sendOpt = {0, }; - - // Get Message - err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)MsgId, msg, &sendOpt); - - if (err != MSG_SUCCESS) goto free_memory; - - if (msg_is_mms(msg) == false) - { - printf("It is not MMS Message!"); - goto free_memory; - } - - MMS_MESSAGE_DATA_S* msgBody = msg_mms_create_message(); - - // Get MMS Body Data - msg_mms_get_message_body(msg, msgBody); - - //Print root-layout info - printf("width: %d \n - height: %d \n - nbgColor:%x \n", - msgBody->rootlayout.width.value, - msgBody->rootlayout.height.value, - msgBody->rootlayout.bgColor); - - // Print Region Info - for (int i = 0; i < msgBody->regionCnt; ++i) - { - MMS_SMIL_REGION* pRegion = msg_mms_get_smil_region(msgBody, i); - - printf("region id: %s\n - region left : %d\n - region top : %d\n - region width : %d\n - region height : %d\n - region bgColor : %x\n - region fit : %d\n", - pRegion->szID,pRegion->nLeft.value, - pRegion->nTop.value,pRegion->width.value, - pRegion->height.value, pRegion->bgColor, - pRegion->fit); - } - - // Print Page info - for (int i = 0; i< msgBody->pageCnt; ++i) - { - MMS_PAGE_S* pPage = msg_mms_get_page(msgBody, i); - - printf("page's duration: %d msec\n - page's media count: %d\n", - pPage->nDur, pPage->mediaCnt); - - // Print Contents Info - for(int j = 0; j < pPage->mediaCnt; ++j) - { - MMS_MEDIA_S* pMedia = msg_mms_get_media(pPage, j); - printf("media's filename: %s\n - media's filepath: %s\n - media's regionId: %s\n - Bold: %d Italic: %d\n", - pMedia->szFileName, - pMedia->szFilePath, - pMedia->regionId, - pMedia->sMedia.sText.bBold, - pMedia->sMedia.sText.bItalic); - - if(pMedia->drmType != MSG_DRM_TYPE_NONE) - { - printf("media's drmtype: %d\n - media's drmpath: %s\n", - pMedia->drmType, pMedia->szDrm2FullPath); - } - } - } - - for (int i = 0; i < msgBody->attachCnt; ++i) - { - MMS_ATTACH_S* pAttach = msg_mms_get_attachment(msgBody, i); - - printf("Attachment file Name: %s\n - Attachment file Path: %s\n - Attached file size: %d\n", - pAttach->szFileName, - pAttach->szFilePath, - pAttach->fileSize); - - if(pAttach->drmType != MSG_DRM_TYPE_NONE) - printf("media's drmtype: %d\n - media's drmpath: %s\n", - pAttach->drmType, pAttach->szDrm2FullPath); - } - - printf("Subject: %s\n", msg_get_subject(pMsg)); - - printf("msgId = %d", msg_get_message_id(msg)); - printf("folderId = %d", msg_get_folder_id(msg)); - printf("phone number = %s", msg_get_ith_address(msg, 0)); - printf("displayTime = %s", ctime(msg_get_time(msg))); - printf("networkStatus = %d", msg_get_network_status(msg)); - printf("bRead = %d", msg_is_read(msg)); - printf("bProtected = %d", msg_is_protected(msg)); - -free_memory: - msg_mms_destroy_message(msgBody); - - msg_release_message(&msg); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_9 Delete a Message -@ingroup MESSAGE_USECASES -@{ -

Delete a Message

-- int msg_delete_message(MSG_HANDLE_T handle, MSG_MESSAGE_ID_T msg_id); -@n msg_delete_message() is a function to delete a message from message box by msg_id. -@code -void MsgTestDeleteMessage(MSG_HANDLE_T hMsgHandle, MSG_MESSAGE_ID_T nMsgId) -{ - MSG_ERROR_T err; - - if (msg_delete_message(hMsgHandle, nMsgId) != MSG_SUCCESS) - printf("Failed to delete Message"); - -} -@endcode -@} - -@defgroup MESSAGE_USECASES_10 Set/Get Message Setting -@ingroup MESSAGE_USECASES -@{ -

Set / Get Message setting

-msg_set_config() and msg_get_cofig() is used to set or to get the message setting options. MSG_SETTING_S structure includes various setting information and is shared between message application and messaging daemon. - -- int msg_set_config(MSG_HANDLE_T handle, const MSG_SETTING_S *setting); -@n msg_set_config() sets a message option. -- int msg_get_config(MSG_HANDLE_T handle, MSG_SETTING_S *setting); -@n msg_get_config() gets a message option. -@code -void MsgTestSetGeneralOpt(MSG_HANDLE_T hMsgHandle) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SETTING_S setting = {0, }; - - setting.type = MSG_GENERAL_OPT; - - setting.option.generalOpt.bKeepCopy = true; - setting.option.generalOpt.alertTone = MSG_ALERT_TONE_ONCE; - - err = msg_set_config(hMsgHandle, &setting); - - if (err == MSG_SUCCESS) - printf("Setting Config Data is OK!"); - else - printf("Setting Config Data is failed!"); -} - -void MsgTestGetGeneralOpt(MSG_HANDLE_T hMsgHandle) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SETTING_S setting = {0, }; - - err = msg_get_config(hMsgHandle, &setting); - - if (err == MSG_SUCCESS) - { - printf("Setting Config Data is OK!\n"); - printf("bKeepCopy : [%d], AlertTone : [%d]\n", setting.option.generalOpt.bKeepCopy, setting.option.generalOpt.alertTone); - } - else - printf("Setting Config Data is failed!\n"); -} -@endcode -@} - -@defgroup MESSAGE_USECASES_11 Filtering a Message -@ingroup MESSAGE_USECASES -@{ -

Filtering a Message

-Messaging framework provides a filtering function for incoming message. New incoming message can be blocked (Move to spam-box or discard) by adding a filtering rule. A incoming message can be blocked by its originating address or by subject matching. If address matching filter rule is applied, only messages with exactly the same phone number can be blocked. Whereas, if a subject matching filter rule is applied, all messages that include the registered subject string might be blocked. An application can add or remove a filtering rule by calling msg_add_filter() or msg_delete_filter(). - -- int msg_add_filter(MSG_HANDLE_T handle, const MSG_FILTER_S *filter); -@n msg_add_filter() inserts a filtering rule to filter list and returns filter id. -- int msg_delete_filter(MSG_HANDLE_T handle, MSG_FILTER_ID_T filter_id); -@n msg_delete_filter()removes a filtering rule from filter list by filter id -@code -void MsgTestAddFilter(MSG_HANDLE_T hMsgHandle) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL"); - return; - } - - MSG_ERROR_T err = MSG_SUCCESS; - MSG_FILTER_S filter[2]= {0, }; - - // Add filter by address - filter[0].filterType = MSG_FILTER_BY_ADDRESS; - strncpy(filter[0].filterValue, "+821234567890", MAX_FILTER_VALUE_LEN); - - err = msg_add_filter(hMsgHandle, &filter[0]); - - if (err == MSG_SUCCESS) - printf("msg_add_filter success"); - else - printf("msg_add_filter fail - err [%d]", err); - - // Add filter by subject - filter[1].filterType = MSG_FILTER_BY_SUBJECT; - strncpy(filter[1].filterValue, "test filter", MAX_FILTER_VALUE_LEN); - - err = msg_add_filter(hMsgHandle, &filter[1]); - - if (err == MSG_SUCCESS) - printf("msg_add_filter success"); - else - printf("msg_add_filter fail - err [%d]", err); - - return; -} - -void MsgTestDeleteFilter(MSG_HANDLE_T hMsgHandle, MSG_FILTER_ID_T filterId) -{ - if (hMsgHandle == NULL) - { - printf("Handle is NULL"); - return; - } - - MSG_ERROR_T err = MSG_SUCCESS; - err = msg_delete_filter(hMsgHandle, filterId); - - if (MSG_SUCCESS == err) - { - printf("msg_delete_filter success"); - } - else - { - printf("msg_delete_filter fail - err [%d]", err); - } - - return; -} -@endcode -@} -*/ - -/** -@addtogroup MESSAGE -@{ - @defgroup MESSAGE_USECASES Use Cases -@} -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ +/** + * + * @ingroup SLP_PG + * @defgroup MESSAGE MessagingFW +@{ +

Introduction

+

Purpose

+The purpose of this document is to describe how applications can use the Messaging Framework APIs to send and receive SMS and MMS messages. This document gives programming guidelines to application engineers. + +

Scope

+The scope of this document is limited to Messaging Framework APIs usage. + +

Abbreviations

+ + +
APIApplication Programming Interface
+@} + +@defgroup Message_Architecture 1.Archtecture +@ingroup MESSAGE +@{ +

Messaging Framework Architecture

+The Messaging framework supports various messaging services such as SMS, MMS, Cell Broadcast, WAP Push, and Provisioning message. The Messaging framework architecture consists of a Messaging daemon and a library. The messaging library works on application process and provides various APIs to support transport, control, storage, filter and setting services for application. The messaging daemon has three components (transaction manager, transaction handler, and plug-in manager) to provide message services. The socket IPC is used to communicate (request & event) between Messaging daemon and library. +@image html messaging_image001.png + +- Transaction Manager + - Receive the IPC message (request) on socket. + - Manage list of pairs (request ID, transaction proxy) for synchronous return. + - Determine the transaction flow based on request/event information. (Mapping the request to one of the handlers) + - Store the transaction information for asynchronous events (Find which transaction proxy want to receive SMS) +- Transaction Handler + - Submit handler deals with submit requests. + - Deliver handler deals with the incoming message from plug-ins. + - Storage handler deals with the messages, accounts and folder requests + - Filter handler deals with the filter requests + - Setting handler deals with the service-specific attributes +- Plug-in Manager + - Initialize all plug-ins after loading plug-in configuration files + - Holding the list of plug-ins and the state of plug-ins + - Providing the interface between handlers and plug-ins +- Transaction Handlers + - Initialize all plug-ins after loading plug-in configuration files + - Receiving IPC messages from messaging daemon. + - Handling synchronous calls + - Condition variable is used for waiting the return from msg. server) + - Handling asynchronous calls or events + - Proxy listener is a component of transaction proxy + - Proxy listener is waiting for the event + - Invoking callback function in the msg. handle list + - i.e. calling incoming callback function of MSG APP handle, when incoming msg + - Holding list of message handles + - Message handle is created by MsgOpenMsgHandle(msgHandle) + - Message handle holds some info such as callback func +- Message API + - Transport & control API + - Storage API + - Filter API + - Setting API +@} + +@defgroup Message_Feature 2.Feature +@ingroup MESSAGE +@{ +

Messaging Framework Features

+-# Message Control Features: + -# Open/Close message handle +-# Message Transport Features: + -# Submit request to send, forward, reply, retrieve message. + -# Register callback functions to listen to invoked events from messaging daemon. (message status callback, incoming message callback) +-# Message Storage Features: + -# Add / Update / Move / Delete / Count / Get message or message list. + -# Add / Update / Delete / Get folder or folder list. +-# Message Filter Features: + -# Add / Update / Delete filter or filter list. +-# Message Setting Features: + -# Set / Get various message setting (i.e. whether to send read/delivery report or not) +@} + +@defgroup MESSAGE_USECASES_1 Initialize/Finalization +@ingroup MESSAGE_USECASES +@{ +

Messaging Framework Functions

+ +

Initialization / Finalization to use Messaging Service

+- int msg_open_msg_handle(MSG_HANDLE_T *handle); +@n msg_open_msg_handle() should be called before using the messaging service. This function opens a channel between the application and the messaging framework. +- int msg_close_msg_handle(MSG_HANDLE_T *handle); +@n msg_close_msg_handle() should be called after using the messaging service. This function closes a channel between the application and the messaging framework. +- int msg_reg_sent_status_callback(MSG_HANDLE_T handle, msg_sent_status_cb cb); +@n Application should implement a msg_sent_status_cb function and register it into message handle. If the application sends a message, this callback function will be called to report its sending status. msg_reg_set_status_callback function should be called after creation of message handle. +- int msg_reg_sms_message_callback(MSG_HANDLE_T handle, msg_sms_incoming_cb cb, unsigned short port); +@n Application should implement a msg_sms_incoming_cb function and register it into message handle. It’s used to listen to the SMS incoming event invoked by messaging daemon. The incoming message information structure (MSG_MESSAGE_S) can be delivered as a parameter of the callback function. +- int msg_reg_mms_conf_message_callback(MSG_HANDLE_T handle, msg_mms_conf_msg_incoming_cb cb, char *app_id); +@n Application should implement a msg_mms_conf_msg_incoming_cb function and register it into message handle. It’s used to listen to the MMS incoming event invoked by messaging daemon. The incoming message information structure (MSG_MESSAGE_S) can be delivered as a parameter of the callback function. +@code +#include +#include +#include +#include + +void sentStatusCB(MSG_HANDLE_T hMsgHandle, MSG_SENT_STATUS_S *pMsgStatus, void *user_param) +{ + // Application can handle message sent status event +} + +void incomingSmsMessageCB (MSG_HANDLE_T hMsgHandle, msg_message_t msg, void *user_param) +{ + // Application can handle SMS incoming message. +} + +void incomingMmsConfMessageCB(MSG_HANDLE_T hMsgHandle, msg_message_t msg, void *user_param) +{ + // Application can handle MMS incoming message. +} + +int main(void) +{ + MSG_HANDLE_T msgHandle = NULL; + + err = msg_open_msg_handle(&msgHandle); + + if (err != MSG_SUCCESS) + { + printf("msg_open_msg_handle() Fail [%d]", err); + return err; + } + + // Register sent status handler + err = msg_reg_sent_status_callback(msgHandle, &sentStatusCB, NULL); + + if (err != MSG_SUCCESS) + { + printf("msg_reg_sent_status_callback() Fail [%d]", err); + return err; + } + + // Register SMS incoming message handler + err = msg_reg_sms_message_callback(msgHandle, &incomingSmsMessageCB, 0, NULL); + + if (err != MSG_SUCCESS) + { + printf("msg_reg_sms_message_callback() Fail [%d]", err); + return err; + } + + // Register MMS incoming message handler + err = msg_reg_mms_conf_message_callback(msgHandle, &incomingMmsConfMessageCB, NULL, NULL); + + if (err != MSG_SUCCESS) + { + printf("msg_reg_mms_conf_message_callback() Fail [%d]", err); + return err; + } + + // g_main_loop should be used to listen CB event from messaging daemon + mainloop = g_main_loop_new(NULL, FALSE); + g_main_loop_run(mainloop); + + msg_close_msg_handle(&msgHandle); + + return err; +} +@endcode +@} + +@defgroup MESSAGE_USECASES_2 Adding a SMS Message +@ingroup MESSAGE_USECASES +@{ +

Adding a SMS Message

+- msg_message_t msg_new_message(); +@n msg_new_message() is a function to create a message object which can store the message information. You should call this function to set the message that you want to add or send. +- int msg_set_message_type(msg_message_t msg, MSG_MESSAGE_TYPE_T msg_type); +@n msg_set_message_type() is a function to set the message type such as SMS or MMS. The first parameter is the message object which is created by msg_new_message(). The second parameter is the message type you want to set. It should be one of enum type ( _MSG_MESSAGE_TYPE_E). If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +- int msg_sms_set_message_body(msg_message_t msg, const char* mdata, int size); +@n msg_sms_set_message_body() is a function to set the SMS body data. The first parameter is the message object which is created by msg_new_message(). The second parameter is the SMS body data you want to set. The third parameter is the length of SMS body data. If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +- int msg_add_address(msg_message_t msg, const char* phone_num_list, MSG_RECIPIENT_TYPE_T to_type); +@n msg_add_address() is a function to add the phone numbers for the message. The first parameter is the message object which is created by msg_new_message(). The second parameter is the list of phone number you want to set. You can add several phone numbers at once. The phone numbers should be separated by ','. The third parameter is the recipient type of phone number. It should be one of enum type (_MSG_RECIPIENT_TYPE_E). If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +- int msg_add_message(MSG_HANDLE_T handle, const msg_message_t msg, const MSG_SENDINGOPT_S *send_opt); +@n msg_add_message() is a function to add a composed message into the database of messaging framework. Before calling this function, the application should set the message object and the sending option structure and then pass them as parameters. If you don't want to change the current sending option, set the variable 'bSetting' to false. If saving a message is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +- int msg_release_message(msg_message_t *msg); +@n msg_release_message() is a function to free the memory of a message object which is create by msg_new_message(). If freeing the memory is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +@code +#include +#include +#include + +void test_add_sms_message(MSG_HANDLE_T hMsgHandle) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + MSG_SENDINGOPT_S sendOpt = {0, }; + sendOpt.bSetting = false; + + msg_message_t msgInfo = msg_new_message(); + + // Set Message Type + err = msg_set_message_type(msgInfo, MSG_TYPE_SMS); + + if (err != MSG_SUCCESS) goto free_memory; + + char msgText[1024]; + + memset(msgText, 0x00, 1024); + strncpy(msgText, "Test SMS Message", sizeof(msgText)-1); + int dataSize = strlen(msgText); + + // Set SMS text + err = msg_sms_set_message_body(msgInfo, msgText, dataSize); + + if (err != MSG_SUCCESS) goto free_memory; + + char number[MAX_ADDRESS_VAL_LEN]; + + memset(number, 0x00, MAX_ADDRESS_VAL_LEN); + strncpy(number, "+821030011234", sizeof(number)-1); + + // Set Recipient Address + err = msg_add_address(msgInfo, number, MSG_RECIPIENTS_TYPE_TO); + + if (err != MSG_SUCCESS) goto free_memory; + + err = msg_add_message(hMsgHandle, msgInfo, &sendOpt); + + if (err == MSG_SUCCESS) + printf("Saving Message is OK!"); + else + printf("Saving Message is failed!"); + +free_memory: + msg_release_message(&msgInfo); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_3 Adding a MMS Message +@ingroup MESSAGE_USECASES +@{ +

Adding a MMS Message

+- int msg_set_subject(msg_message_t msg, const char* subject); +@n msg_set_subject() is a function to set the subject of MMS. The first parameter is the message object which is created by msg_new_message(). The second parameter is the subject you want to set. If setting is successful, the function returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- MMS_MESSAGE_DATA_S* msg_mms_create_message(void); +@n msg_mms_create_message() allocates a MMS_MESSAGE_DATA_S structure and returns it’s address. MMS_MESSAGE_DATA_S is needed to represent mms specific data and transfer it to the messaging daemon in the pData parameter of the MSG_MESSAGE_S structure. + +- MMS_SMIL_ROOTLAYOUT* msg_mms_set_rootlayout(MMS_MESSAGE_DATA_S* msg, const int width, const int height, const int bgcolor); +@n msg_mms_set_rootlayout() is a function to set smil root layout. The parameters representing the size and background color of smil root layout should be set. + +- MMS_SMIL_REGION* msg_mms_add_region(MMS_MESSAGE_DATA_S *msg_data, const char* szID, const int x, const int y, const int width, const int height, const int bgcolor); +@n msg_mms_add_region() is a function to add a smil region. Smil region is needed to display text message, image, and video data (Each content has its own region). This function is called to allocate a region for each contents. + +- MMS_PAGE_S* msg_mms_add_page(MMS_MESSAGE_DATA_S *msg_data, const int duration); +@n msg_mms_add_page() is a function to add a smil page. + +- MMS_MEDIA_S* msg_mms_add_media(MMS_PAGE_S *page, const MmsSmilMediaType mediatype, const char* regionid, char* filepath); +@n msg_mms_add_media() is a function to add multimedia content to a mms message. If some content should be played with smil player, this function can be used. + +- MMS_ATTACH_S* msg_mms_add_attachment(MMS_MESSAGE_DATA_S *msg_data, char *filepath); +@n msg_mms_add_attachment() is a function to add a content as an attached file. With this function a content might be attached as a multipart mixed type. + +- int msg_mms_set_message_body(msg_message_t msg, const MMS_MESSAGE_DATA_S *msg_data); +@n msg_mms_set_message_body() is a function to set the MMS body data. The first parameter is the message object which is created by msg_new_message(). The second parameter is the structure which is allocated by msg_mms_create_message() and is set by the APIs for MMS. + +- int msg_mms_destroy_message(MMS_MESSAGE_DATA_S* msg); +@n msg_mms_destroy_message() should be called to deallocate the MMS_MESSAGE_DATA_S structure and internal region, page, media, and attach list. +@code +#include +#include +#include + +void test_add_mms_message(MSG_HANDLE_T hMsgHandle) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + MSG_SENDINGOPT_S sendOpt = {0, }; + sendOpt.bSetting = false; + + msg_message_t msgInfo = msg_new_message(); + + // Set Message Type + err = msg_set_message_type(msgInfo, MSG_TYPE_MMS); + + if (err != MSG_SUCCESS) goto free_memory; + + MMS_MESSAGE_DATA_S* data; + MMS_PAGE_S* page; + MMS_MEDIA_S* media[3]; + MMS_ATTACH_S* attach; + int nSize = 0; + + // Set MMS subject + char subject[MAX_SUBJECT_LEN]; + + memset(subject, 0x00, MAX_SUBJECT_LEN); + strncpy(subject, "hello mms", sizeof(subject)-1); + + err = msg_set_subject(msgInfo, subject); + + if (err != MSG_SUCCESS) goto free_memory; + + // Set MMS Body data + data = msg_mms_create_message(); + msg_mms_set_rootlayout(data, 100, 100, 0xffffff); + msg_mms_add_region(data, "Image", 0, 50, 100, 50, 0xffffff); + msg_mms_add_region(data, "Text", 0, 0, 100, 50, 0xffffff); + page = msg_mms_add_page(data, 5000); + media[0] = msg_mms_add_media(page, MMS_SMIL_MEDIA_IMG, "Image", "/tmp/image.jpg"); + media[1] = msg_mms_add_media(page, MMS_SMIL_MEDIA_AUDIO, NULL, "/tmp/audio.amr"); + media[2] = msg_mms_add_media(page, MMS_SMIL_MEDIA_TEXT, "Text", "/tmp/message.txt"); + attach = msg_mms_add_attachment(data, "attachment.3gp"); + + err = msg_mms_set_message_body(msgInfo, data); + + if (err != MSG_SUCCESS) + { + msg_mms_destroy_message(data); + goto free_memory; + } + + msg_mms_destroy_message(data); + + // Set Recipient Address + char number[MAX_ADDRESS_VAL_LEN]; + + memset(number, 0x00, MAX_ADDRESS_VAL_LEN); + strncpy(number, "+821030011234", sizeof(number)-1); + + err = msg_add_address(msgInfo, number, MSG_RECIPIENTS_TYPE_TO); + + if (err != MSG_SUCCESS) goto free_memory; + + err = msg_add_message(hMsgHandle, msgInfo, &sendOpt); + + if (err == MSG_SUCCESS) + printf("Saving Message is OK!"); + else + printf("Saving Message is failed!"); + +free_memory: + msg_release_message(&msgInfo); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_4 Sending a SMS/MMS Message +@ingroup MESSAGE_USECASES +@{ +

Sending a SMS/MMS Message

+ +- bool msg_is_sms(msg_message_t msg); +@n msg_is_sms() is a function to check whether the message type of message object is SMS or not. The first parameter is the message object which is created by msg_new_message(). The function returns true if the message object is a SMS message. Otherwise, it returns false. + +- bool msg_is_mms(msg_message_t msg); +@n msg_is_mms() is a function to check whether the message type of message object is MMS or not. The first parameter is the message object which is created by msg_new_message(). The function returns true if the message object is a MMS message. Otherwise, it returns false. + +- int msg_sms_send_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); +@n msg_sms_send_message() is a function to send SMS through messaging framework. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the structure that includes the message information to send. You can get the result of sending on sent status callback. + +- int msg_mms_send_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); +@n msg_sms_send_message() is a function to send SMS through messaging framework. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the structure that includes the message information to send. You can get the result of sending on sent status callback. +@code +#include +#include + +int MsgTestSendMsg(MSG_HANDLE_T hMsgHandle, msg_message_t pMsg) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL\n"); + return MSG_ERR_NULL_MSGHANDLE; + } + + MSG_ERROR_T err = MSG_SUCCESS; + + MSG_REQUEST_S req = {0}; + + if (pMsg == NULL) + { + printf("Message is NULL\n"); + return MSG_ERR_NULL_MESSAGE; + } + + req.msg = pMsg; + + if (msg_is_sms(req.msg)) + err = msg_sms_send_message(hMsgHandle, &req); + else if (msg_is_mms(req.msg)) + err = msg_mms_send_message(hMsgHandle, &req); + + if (err == MSG_SUCCESS) + printf("Request to Send Message is successful!!!"); + else + printf("Request to Send Message is failed!!!"); + + return err; +} +@endcode +@} + +@defgroup MESSAGE_USECASES_5 Sending Simple SMS Message +@ingroup MESSAGE_USECASES +@{ +

Simple SMS Sending

+- int msg_sms_send(const char *phone_num_list, const char *sms_text, msg_simple_sent_status_cb cb, void *user_param); +@n msg_sms_send() is a simple function to send an SMS message. Without this API, in order to send a message the application should allocate a channel with messaging daemon for IPC, register sent-status callback function to monitor the sending result, and fulfill many member variables of MSG_MESSAGE_S. This function implicitly makes a connection with messaging daemon and registers the callback function. In addition, member variables of the MSG_MESSAGE_S structure are filled with default values except for the recipient phone_number and sms_text. +@code +#include +#include +#include +#include + +GMainLoop *mainloop; + +typedef struct { + char number[256]; + char text[256]; + char userdata[256]; +} send_data; + +void sent_status_cb(MSG_SENT_STATUS_S *pMsgStatus, void *userData) +{ + if (pMsgStatus->status == MSG_NETWORK_SEND_SUCCESS) + printf("reqId : %d MSG SENT SUCCESS !!!\n", pMsgStatus->reqId); + else + printf("reqId : %d MSG SENT FAIL !!! [%d]\n", pMsgStatus->reqId, pMsgStatus->status); +} + +// count from here +gboolean send_func(gpointer data) +{ + send_data* sms_input = (send_data*)data; + + printf("Begin to send [%s] to [%s]\n", sms_input->number, sms_input->text); + MSG_ERROR_T err = msg_sms_send(sms_input->number, sms_input->text, &sent_status_cb, (void*)sms_input->userdata); + + if (err != MSG_SUCCESS) + printf("Send failed [%d]\n", err); + + return FALSE; +} +// end + +int main(int argc, char* argv[]) +{ + if (argc != 3 && argc != 4) + { + printf("Usage: %s {phone_num_list} {sms_text} [user_data]\n", argv[0]); + printf("phone_num_list: phone_num1, phone_num2, ..., phone_numN\n"); + return 0; + } + + // Set sms input parameters : phone numbers and text + send_data sms_input = {}; + strncpy(sms_input.number, argv[1], sizeof(sms_input.number)-1); + strncpy(sms_input.text, argv[2], sizeof(sms_input.text)-1); + if (argc == 4) + strncpy(sms_input.userdata, argv[3], sizeof(sms_input.userdata)-1); + + // Add Sending Function to GMainLoop + g_idle_add(&send_func, (gpointer) &sms_input); + + // start GMainLoop + mainloop = g_main_loop_new(NULL, FALSE); + + printf("Entering GMain Loop to Receive Notifications in Thread...\n"); + + g_main_loop_run(mainloop); + + printf("==== End Test App. Bye...===\n"); + + return 0; +} +@endcode +@} + +@defgroup MESSAGE_USECASES_6 Retrieving a MMS Message +@ingroup MESSAGE_USECASES +@{ +

Retrieving a MMS Message

+- int msg_mms_retrieve_message(MSG_HANDLE_T handle, MSG_REQUEST_S* req); +@n msg_mms_retrieve_message() is a function to submit a retrieve MMS request. +@code +void MsgTestRetrieveMessage(MSG_HANDLE_T hMsgHandle, MSG_MESSAGE_ID_T nMsgId) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL"); + return; + } + + MSG_ERROR_T err = MSG_SUCCESS; + + msg_message_t msg = msg_new_message(); + MSG_SENDINGOPT_S sendOpt = {0, }; + + err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)nMsgId, msg, &sendOpt); + + if (err != MSG_SUCCESS) + printf("Get Message Failed!"); + + MSG_REQUEST_S req = {0, msg, sendOpt}; + + err = msg_mms_retrieve_message(hMsgHandle, &req); + + if (err != MSG_SUCCESS) + printf("Retrieve MMS Message Failed!"); + + msg_release_message(&msg); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_7 Getting a SMS Message +@ingroup MESSAGE_USECASES +@{ +

Getting a SMS Message

+- int msg_get_message(MSG_HANDLE_T handle, MSG_MESSAGE_ID_T msg_id, msg_message_t msg, MSG_SENDINGOPT_S *send_opt); +@n msg_get_message() is a function to get a message. The first parameter is the handle which is created by msg_open_msg_handle (). The second parameter is the message ID you want to get. The third parameter is the message object to receive the message information. The last parameter is the structure to receive the message sending options. + +- int msg_get_message_id(msg_message_t msg); +@n msg_get_message_id() is a function to get the message ID. The parameter is the message object. If the function is successful, it returns the message ID. Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- int msg_get_folder_id(msg_message_t msg); +@n msg_get_folder_id() is a function to get the ID of the folder that the message is saved within. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_FOLDER_ID_E) . Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- int msg_get_message_type(msg_message_t msg); +@n msg_get_message_type() is a function to get the message type. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_MESSAGE_TYPE_E). Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- int msg_get_address_count(msg_message_t msg); +@n msg_get_address_count() is a function to get the number of addresses. The parameter is the message object. If the function is successful, it returns the number of addresses. Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- const char* msg_get_ith_address(msg_message_t msg, int ith); +@n msg_get_ith_address() is a function to get the ith address of message. The first parameter is the message object. The second parameter is the index of address you want to get. If the function is successful, it returns the address string. Otherwise it returns NULL. + +- time_t* msg_get_time(msg_message_t msg); +@n msg_get_time() is a function to get the time value of message. The parameter is the message object. If the function is successful, it returns the time value. Otherwise it returns NULL. + +- int msg_get_network_status(msg_message_t msg); +@n msg_get_network_status() is a function to get the network status of message. The parameter is the message object. If the function is successful, it returns one of the enum type in (_MSG_NETWORK_STATUS_E). Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- bool msg_is_read(msg_message_t msg); +@n msg_is_read() is a function to check whether the message was read or not. The parameter is the message object. If the message was read, it returns true. Otherwise it returns false. + +- bool msg_is_protected(msg_message_t msg); +@n msg_is_protected() is a function to check whether the message is protected or not. The parameter is the message object. If the the message was protected, it returns true. Otherwise it returns false. + +- int msg_get_message_body_size(msg_message_t msg); +@n msg_get_message_body_size() is a function to get the byte size of message. The parameter is the message object. If the function is successful, it returns the byte size of message. Otherwise it returns an error in enum type (_MSG_ERROR_E). + +- const char* msg_sms_get_message_body(msg_message_t msg); +@n msg_sms_get_message_body() is a function to get the body data of message. The first parameter is the message object. If the function is successful, it returns the body data. Otherwise it returns NULL. +@code +void MsgTestGetSmsMessage(MSG_HANDLE_T hMsgHandle, int MsgId) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL\n"); + return; + } + + MSG_ERROR_T err = MSG_SUCCESS; + + msg_message_t msg = msg_new_message(); + MSG_SENDINGOPT_S sendOpt = {0, }; + + // Get Message + err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)MsgId, msg, &sendOpt); + + if (err != MSG_SUCCESS) goto free_memory; + + printf("msgId = %d\n", msg_get_message_id(msg)); + printf("folderId = %d\n", msg_get_folder_id(msg)); + printf("msgType = %d\n", msg_get_message_type(msg)); + printf("phone number = %s\n", msg_get_ith_address(msg, 0)); + printf("displayTime = %s\n", ctime(msg_get_time(msg))); + printf("networkStatus = %d\n", msg_get_network_status(msg)); + printf("bRead = %d\n", msg_is_read(msg)); + printf("bProtected = %d\n", msg_is_protected(msg)); + printf("dataSize = %d\n", msg_get_message_body_size(msg)); + printf("msgData = %s\n", msg_sms_get_message_body(msg)); + +free_memory: + msg_release_message(&msg); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_8 Getting a MMS Message +@ingroup MESSAGE_USECASES +@{ +

Getting a MMS Message

+- int msg_mms_get_message_body(msg_message_t msg, MMS_MESSAGE_DATA_S *body); +@n msg_get_address_count. The parameter is the message object. The second parameter is the structure to receive MMS data as output. If the function is successful, it returns MSG_SUCCESS. Otherwise it returns an error in enum type (_MSG_ERROR_E). +- MMS_SMIL_REGION* msg_mms_get_smil_region(MMS_MESSAGE_DATA_S msgBody, int region_idx); +@n msg_mms_get_smil_region() is a function to get a SMIL region information. The first parameter is the structure of MMS data. The second parameter is the index of SMIL region you want to get. If the function is successful, it returns the structure which contains the SMIL region information. Otherwise it returns NULL. +- MMS_PAGE_S* msg_mms_get_page(MMS_MESSAGE_DATA_S msgBody, int page_idx); +@n msg_mms_get_page() is a function to get a SMIL page information. The first parameter is the structure of MMS data. The second parameter is the index of SMIL page you want to get. If the function is successful, it returns the structure which contains the SMIL page information. Otherwise it returns NULL. +- MMS_MEDIA_S* msg_mms_get_media(MMS_PAGE_S *page, int media_idx); +@n msg_mms_get_media() is a function to get a media information in a SMIL page. The first parameter is the structure of SMIL page you want to get the media from. The second parameter is the index of media you want to get. If the function is successful, it returns the structure which contains the media information. Otherwise it returns NULL. +- MMS_ATTACH_S* msg_mms_get_attachment(MMS_MESSAGE_DATA_S msgBody, int attach_idx); +@n msg_mms_get_attachment() is a function to get the file information of an attachment. The first parameter is the structure of MMS data. The second parameter is the index of attachment you want to get. If the function is successful, it returns the structure which contains the attachment file information. Otherwise it returns NULL. +- const char* msg_get_subject(msg_message_t msg); +@n msg_get_subject() is a function to get the subject of MMS. The parameter is the message object. If the function is successful, it returns the subject string. Otherwise it returns NULL. +@code +void MsgTestGetMmsMessage(MSG_HANDLE_T hMsgHandle, int MsgId) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL\n"); + return; + } + + MSG_ERROR_T err = MSG_SUCCESS; + + msg_message_t msg = msg_new_message(); + MSG_SENDINGOPT_S sendOpt = {0, }; + + // Get Message + err = msg_get_message(hMsgHandle, (MSG_MESSAGE_ID_T)MsgId, msg, &sendOpt); + + if (err != MSG_SUCCESS) goto free_memory; + + if (msg_is_mms(msg) == false) + { + printf("It is not MMS Message!"); + goto free_memory; + } + + MMS_MESSAGE_DATA_S* msgBody = msg_mms_create_message(); + + // Get MMS Body Data + msg_mms_get_message_body(msg, msgBody); + + //Print root-layout info + printf("width: %d \n + height: %d \n + nbgColor:%x \n", + msgBody->rootlayout.width.value, + msgBody->rootlayout.height.value, + msgBody->rootlayout.bgColor); + + // Print Region Info + for (int i = 0; i < msgBody->regionCnt; ++i) + { + MMS_SMIL_REGION* pRegion = msg_mms_get_smil_region(msgBody, i); + + printf("region id: %s\n + region left : %d\n + region top : %d\n + region width : %d\n + region height : %d\n + region bgColor : %x\n + region fit : %d\n", + pRegion->szID,pRegion->nLeft.value, + pRegion->nTop.value,pRegion->width.value, + pRegion->height.value, pRegion->bgColor, + pRegion->fit); + } + + // Print Page info + for (int i = 0; i< msgBody->pageCnt; ++i) + { + MMS_PAGE_S* pPage = msg_mms_get_page(msgBody, i); + + printf("page's duration: %d msec\n + page's media count: %d\n", + pPage->nDur, pPage->mediaCnt); + + // Print Contents Info + for(int j = 0; j < pPage->mediaCnt; ++j) + { + MMS_MEDIA_S* pMedia = msg_mms_get_media(pPage, j); + printf("media's filename: %s\n + media's filepath: %s\n + media's regionId: %s\n + Bold: %d Italic: %d\n", + pMedia->szFileName, + pMedia->szFilePath, + pMedia->regionId, + pMedia->sMedia.sText.bBold, + pMedia->sMedia.sText.bItalic); + + if(pMedia->drmType != MSG_DRM_TYPE_NONE) + { + printf("media's drmtype: %d\n + media's drmpath: %s\n", + pMedia->drmType, pMedia->szDrm2FullPath); + } + } + } + + for (int i = 0; i < msgBody->attachCnt; ++i) + { + MMS_ATTACH_S* pAttach = msg_mms_get_attachment(msgBody, i); + + printf("Attachment file Name: %s\n + Attachment file Path: %s\n + Attached file size: %d\n", + pAttach->szFileName, + pAttach->szFilePath, + pAttach->fileSize); + + if(pAttach->drmType != MSG_DRM_TYPE_NONE) + printf("media's drmtype: %d\n + media's drmpath: %s\n", + pAttach->drmType, pAttach->szDrm2FullPath); + } + + printf("Subject: %s\n", msg_get_subject(pMsg)); + + printf("msgId = %d", msg_get_message_id(msg)); + printf("folderId = %d", msg_get_folder_id(msg)); + printf("phone number = %s", msg_get_ith_address(msg, 0)); + printf("displayTime = %s", ctime(msg_get_time(msg))); + printf("networkStatus = %d", msg_get_network_status(msg)); + printf("bRead = %d", msg_is_read(msg)); + printf("bProtected = %d", msg_is_protected(msg)); + +free_memory: + msg_mms_destroy_message(msgBody); + + msg_release_message(&msg); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_9 Delete a Message +@ingroup MESSAGE_USECASES +@{ +

Delete a Message

+- int msg_delete_message(MSG_HANDLE_T handle, MSG_MESSAGE_ID_T msg_id); +@n msg_delete_message() is a function to delete a message from message box by msg_id. +@code +void MsgTestDeleteMessage(MSG_HANDLE_T hMsgHandle, MSG_MESSAGE_ID_T nMsgId) +{ + MSG_ERROR_T err; + + if (msg_delete_message(hMsgHandle, nMsgId) != MSG_SUCCESS) + printf("Failed to delete Message"); + +} +@endcode +@} + +@defgroup MESSAGE_USECASES_10 Set/Get Message Setting +@ingroup MESSAGE_USECASES +@{ +

Set / Get Message setting

+msg_set_config() and msg_get_cofig() is used to set or to get the message setting options. MSG_SETTING_S structure includes various setting information and is shared between message application and messaging daemon. + +- int msg_set_config(MSG_HANDLE_T handle, const MSG_SETTING_S *setting); +@n msg_set_config() sets a message option. +- int msg_get_config(MSG_HANDLE_T handle, MSG_SETTING_S *setting); +@n msg_get_config() gets a message option. +@code +void MsgTestSetGeneralOpt(MSG_HANDLE_T hMsgHandle) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SETTING_S setting = {0, }; + + setting.type = MSG_GENERAL_OPT; + + setting.option.generalOpt.bKeepCopy = true; + setting.option.generalOpt.alertTone = MSG_ALERT_TONE_ONCE; + + err = msg_set_config(hMsgHandle, &setting); + + if (err == MSG_SUCCESS) + printf("Setting Config Data is OK!"); + else + printf("Setting Config Data is failed!"); +} + +void MsgTestGetGeneralOpt(MSG_HANDLE_T hMsgHandle) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SETTING_S setting = {0, }; + + err = msg_get_config(hMsgHandle, &setting); + + if (err == MSG_SUCCESS) + { + printf("Setting Config Data is OK!\n"); + printf("bKeepCopy : [%d], AlertTone : [%d]\n", setting.option.generalOpt.bKeepCopy, setting.option.generalOpt.alertTone); + } + else + printf("Setting Config Data is failed!\n"); +} +@endcode +@} + +@defgroup MESSAGE_USECASES_11 Filtering a Message +@ingroup MESSAGE_USECASES +@{ +

Filtering a Message

+Messaging framework provides a filtering function for incoming message. New incoming message can be blocked (Move to spam-box or discard) by adding a filtering rule. A incoming message can be blocked by its originating address or by subject matching. If address matching filter rule is applied, only messages with exactly the same phone number can be blocked. Whereas, if a subject matching filter rule is applied, all messages that include the registered subject string might be blocked. An application can add or remove a filtering rule by calling msg_add_filter() or msg_delete_filter(). + +- int msg_add_filter(MSG_HANDLE_T handle, const MSG_FILTER_S *filter); +@n msg_add_filter() inserts a filtering rule to filter list and returns filter id. +- int msg_delete_filter(MSG_HANDLE_T handle, MSG_FILTER_ID_T filter_id); +@n msg_delete_filter()removes a filtering rule from filter list by filter id +@code +void MsgTestAddFilter(MSG_HANDLE_T hMsgHandle) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL"); + return; + } + + MSG_ERROR_T err = MSG_SUCCESS; + MSG_FILTER_S filter[2]= {0, }; + + // Add filter by address + filter[0].filterType = MSG_FILTER_BY_ADDRESS; + strncpy(filter[0].filterValue, "+821234567890", MAX_FILTER_VALUE_LEN); + + err = msg_add_filter(hMsgHandle, &filter[0]); + + if (err == MSG_SUCCESS) + printf("msg_add_filter success"); + else + printf("msg_add_filter fail - err [%d]", err); + + // Add filter by subject + filter[1].filterType = MSG_FILTER_BY_SUBJECT; + strncpy(filter[1].filterValue, "test filter", MAX_FILTER_VALUE_LEN); + + err = msg_add_filter(hMsgHandle, &filter[1]); + + if (err == MSG_SUCCESS) + printf("msg_add_filter success"); + else + printf("msg_add_filter fail - err [%d]", err); + + return; +} + +void MsgTestDeleteFilter(MSG_HANDLE_T hMsgHandle, MSG_FILTER_ID_T filterId) +{ + if (hMsgHandle == NULL) + { + printf("Handle is NULL"); + return; + } + + MSG_ERROR_T err = MSG_SUCCESS; + err = msg_delete_filter(hMsgHandle, filterId); + + if (MSG_SUCCESS == err) + { + printf("msg_delete_filter success"); + } + else + { + printf("msg_delete_filter fail - err [%d]", err); + } + + return; +} +@endcode +@} +*/ + +/** +@addtogroup MESSAGE +@{ + @defgroup MESSAGE_USECASES Use Cases +@} +*/ diff --git a/TC/msgTC/MapiControl/utc_msg_close_msg_handle.c b/TC/msgTC/MapiControl/utc_msg_close_msg_handle.c index 9ca71f1..61a43de 100755 --- a/TC/msgTC/MapiControl/utc_msg_close_msg_handle.c +++ b/TC/msgTC/MapiControl/utc_msg_close_msg_handle.c @@ -1,76 +1,62 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ - -#include "utc_msg_close_msg_handle.h" - -void startup(void) -{ -} -void cleanup(void) -{ -} - -void utc_msg_close_msg_handle_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_HANDLE_T msgHandle = NULL; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - err = msg_close_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_close_msg_handle_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_HANDLE_T msgHandle = NULL; - - err = msg_close_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + +#include "utc_msg_close_msg_handle.h" + +void startup(void) +{ +} +void cleanup(void) +{ +} + +void utc_msg_close_msg_handle_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_HANDLE_T msgHandle = NULL; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + err = msg_close_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_close_msg_handle_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_HANDLE_T msgHandle = NULL; + + err = msg_close_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiControl/utc_msg_close_msg_handle.h b/TC/msgTC/MapiControl/utc_msg_close_msg_handle.h index 67705ce..0349166 100755 --- a/TC/msgTC/MapiControl/utc_msg_close_msg_handle.h +++ b/TC/msgTC/MapiControl/utc_msg_close_msg_handle.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiControl/utc_msg_open_msg_handle.c b/TC/msgTC/MapiControl/utc_msg_open_msg_handle.c index 4ba35f4..c1169b8 100755 --- a/TC/msgTC/MapiControl/utc_msg_open_msg_handle.c +++ b/TC/msgTC/MapiControl/utc_msg_open_msg_handle.c @@ -1,77 +1,63 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + + +#include "utc_msg_open_msg_handle.h" + +void startup(void) +{ +} +void cleanup(void) +{ +} + +void utc_msg_open_msg_handle_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_HANDLE_T msgHandle = NULL; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_printf("utc_msg_open_msg_handle_001 failed"); + tet_result(TET_FAIL); + } + else + { + tet_printf("utc_msg_open_msg_handle_001 passed"); + tet_result(TET_PASS); + } + + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_open_msg_handle_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(NULL); + if (err != MSG_SUCCESS) + { + tet_printf("utc_msg_open_msg_handle_001 passed"); + tet_result(TET_PASS); + } + else + { + tet_printf("utc_msg_open_msg_handle_001 failed"); + tet_result(TET_FAIL); + } - -#include "utc_msg_open_msg_handle.h" - -void startup(void) -{ -} -void cleanup(void) -{ -} - -void utc_msg_open_msg_handle_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_HANDLE_T msgHandle = NULL; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_printf("utc_msg_open_msg_handle_001 failed"); - tet_result(TET_FAIL); - } - else - { - tet_printf("utc_msg_open_msg_handle_001 passed"); - tet_result(TET_PASS); - } - - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_open_msg_handle_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(NULL); - if (err != MSG_SUCCESS) - { - tet_printf("utc_msg_open_msg_handle_001 passed"); - tet_result(TET_PASS); - } - else - { - tet_printf("utc_msg_open_msg_handle_001 failed"); - tet_result(TET_FAIL); - } - } diff --git a/TC/msgTC/MapiControl/utc_msg_open_msg_handle.h b/TC/msgTC/MapiControl/utc_msg_open_msg_handle.h index 255eb62..45dc31a 100755 --- a/TC/msgTC/MapiControl/utc_msg_open_msg_handle.h +++ b/TC/msgTC/MapiControl/utc_msg_open_msg_handle.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_add_address.c b/TC/msgTC/MapiMessage/utc_msg_add_address.c index 610086e..2b26c61 100755 --- a/TC/msgTC/MapiMessage/utc_msg_add_address.c +++ b/TC/msgTC/MapiMessage/utc_msg_add_address.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_add_address.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_add_address_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_add_address_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_address(NULL, "01030015078", MSG_RECIPIENTS_TYPE_TO); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_add_address.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_add_address_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_add_address_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_address(NULL, "01030015078", MSG_RECIPIENTS_TYPE_TO); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_add_address.h b/TC/msgTC/MapiMessage/utc_msg_add_address.h index 54d2db3..26e274b 100755 --- a/TC/msgTC/MapiMessage/utc_msg_add_address.h +++ b/TC/msgTC/MapiMessage/utc_msg_add_address.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_address_count.c b/TC/msgTC/MapiMessage/utc_msg_get_address_count.c index 4d1fc90..e4bdf2d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_address_count.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_address_count.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_address_count.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_address_count_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_address_count(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_address_count_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_address_count(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_address_count.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_address_count_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_address_count(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_address_count_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_address_count(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_address_count.h b/TC/msgTC/MapiMessage/utc_msg_get_address_count.h index 2ff3779..2a4a5d1 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_address_count.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_address_count.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_dest_port.c b/TC/msgTC/MapiMessage/utc_msg_get_dest_port.c index 58dd84b..f062abc 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_dest_port.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_dest_port.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_dest_port.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_dest_port_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_dest_port(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_dest_port_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_dest_port(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_dest_port.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_dest_port_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_dest_port(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_dest_port_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_dest_port(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_dest_port.h b/TC/msgTC/MapiMessage/utc_msg_get_dest_port.h index 2accabb..9370812 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_dest_port.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_dest_port.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_direction_info.c b/TC/msgTC/MapiMessage/utc_msg_get_direction_info.c index ee2d6ba..4a26aeb 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_direction_info.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_direction_info.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_direction_info.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_direction_info_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_direction_info(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_direction_info_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_direction_info(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_direction_info.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_direction_info_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_direction_info(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_direction_info_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_direction_info(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_direction_info.h b/TC/msgTC/MapiMessage/utc_msg_get_direction_info.h index 94652c3..2326c3d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_direction_info.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_direction_info.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_encode_type.c b/TC/msgTC/MapiMessage/utc_msg_get_encode_type.c index b40aad9..20d2743 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_encode_type.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_encode_type.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_encode_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_encode_type_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_encode_type(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_encode_type_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_encode_type(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_encode_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_encode_type_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_encode_type(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_encode_type_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_encode_type(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_encode_type.h b/TC/msgTC/MapiMessage/utc_msg_get_encode_type.h index a125603..463c5ee 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_encode_type.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_encode_type.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_folder_id.c b/TC/msgTC/MapiMessage/utc_msg_get_folder_id.c index de8eea4..8e3f605 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_folder_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_folder_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_folder_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_folder_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_folder_id(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_folder_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_folder_id(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_folder_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_folder_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_folder_id(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_folder_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_folder_id(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_folder_id.h b/TC/msgTC/MapiMessage/utc_msg_get_folder_id.h index 558a9e7..4dd61cc 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_folder_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_folder_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_address.c b/TC/msgTC/MapiMessage/utc_msg_get_ith_address.c index bb631d8..c088bd9 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_address.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_address.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_ith_address.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_ith_address_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_get_ith_address(msgInfo, 0); - if (address == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_ith_address_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_get_ith_address(NULL, 0); - if (address == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_ith_address.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_ith_address_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_get_ith_address(msgInfo, 0); + if (address == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_ith_address_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_get_ith_address(NULL, 0); + if (address == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_address.h b/TC/msgTC/MapiMessage/utc_msg_get_ith_address.h index 546f0a5..2528b9c 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_address.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_address.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.c b/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.c index 2f55b23..d067bbb 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_ith_contact_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_ith_contact_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_contact_id(msgInfo, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_ith_contact_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_contact_id(NULL, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_ith_contact_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_ith_contact_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_contact_id(msgInfo, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_ith_contact_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_contact_id(NULL, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.h b/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.h index 5aafbc4..dfd8302 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_contact_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_name.c b/TC/msgTC/MapiMessage/utc_msg_get_ith_name.c index fcad32f..5878f21 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_name.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_name.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_ith_name.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_ith_name_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_get_ith_name(msgInfo, 0); - if (address == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_ith_name_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_get_ith_name(NULL, 0); - if (address == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_ith_name.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_ith_name_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_get_ith_name(msgInfo, 0); + if (address == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_ith_name_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_get_ith_name(NULL, 0); + if (address == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_name.h b/TC/msgTC/MapiMessage/utc_msg_get_ith_name.h index af733ec..00c2dee 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_name.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_name.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.c b/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.c index f274333..e607fe3 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_ith_recipient_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_ith_recipient_type_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_recipient_type(msgInfo, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_ith_recipient_type_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_recipient_type(NULL, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_ith_recipient_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_ith_recipient_type_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_recipient_type(msgInfo, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_ith_recipient_type_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_recipient_type(NULL, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.h b/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.h index 9c58153..6c01dae 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_recipient_type.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.c b/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.c index 2a81bc8..ccb0e7c 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_ith_thread_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_ith_thread_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_thread_id(msgInfo, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_ith_thread_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_ith_thread_id(NULL, 0); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_ith_thread_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_add_address(msgInfo, "01030015078", MSG_RECIPIENTS_TYPE_TO); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_ith_thread_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_thread_id(msgInfo, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_ith_thread_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_ith_thread_id(NULL, 0); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.h b/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.h index fb409e4..fae0136 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_ith_thread_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.c b/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.c index 1d06131..6c4cd75 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_message_body_size.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_sms_set_message_body(msgInfo, "test message", 12); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_message_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_body_size(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_message_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_body_size(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_message_body_size.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_sms_set_message_body(msgInfo, "test message", 12); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_message_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_body_size(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_message_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_body_size(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.h b/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.h index 6ebd6a1..a9de554 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_body_size.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_id.c b/TC/msgTC/MapiMessage/utc_msg_get_message_id.c index 1415a61..d8501e6 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_message_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_message_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_id(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_message_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_id(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_message_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_message_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_id(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_message_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_id(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_id.h b/TC/msgTC/MapiMessage/utc_msg_get_message_id.h index c088520..f8aa1b0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_type.c b/TC/msgTC/MapiMessage/utc_msg_get_message_type.c index 11a8937..37d81e1 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_type.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_type.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_message_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_message_type_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_type(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_message_type_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message_type(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_message_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_message_type_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_type(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_message_type_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message_type(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_message_type.h b/TC/msgTC/MapiMessage/utc_msg_get_message_type.h index 40fe75d..3bc88dc 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_message_type.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_message_type.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_network_status.c b/TC/msgTC/MapiMessage/utc_msg_get_network_status.c index b8d3133..e066953 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_network_status.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_network_status.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_network_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_set_network_status(msgInfo, MSG_NETWORK_SEND_SUCCESS); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_network_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_network_status(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_network_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_network_status(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_network_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_set_network_status(msgInfo, MSG_NETWORK_SEND_SUCCESS); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_network_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_network_status(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_network_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_network_status(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_network_status.h b/TC/msgTC/MapiMessage/utc_msg_get_network_status.h index d4b94ea..65a3baf 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_network_status.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_network_status.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_priority_info.c b/TC/msgTC/MapiMessage/utc_msg_get_priority_info.c index 0136a6e..2d86631 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_priority_info.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_priority_info.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_priority_info.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_priority_info_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_priority_info(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_priority_info_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_priority_info(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_priority_info.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_priority_info_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_priority_info(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_priority_info_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_priority_info(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_priority_info.h b/TC/msgTC/MapiMessage/utc_msg_get_priority_info.h index 9717aee..3739886 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_priority_info.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_priority_info.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.c b/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.c index 0d71356..6bc65fa 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_scheduled_time.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_scheduled_time_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t scheduledTime = NULL; - - scheduledTime = msg_get_scheduled_time(msgInfo); - if (scheduledTime == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_scheduled_time_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t scheduledTime = NULL; - - scheduledTime = msg_get_scheduled_time(NULL); - if (scheduledTime == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_scheduled_time.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_scheduled_time_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t scheduledTime = NULL; + + scheduledTime = msg_get_scheduled_time(msgInfo); + if (scheduledTime == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_scheduled_time_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t scheduledTime = NULL; + + scheduledTime = msg_get_scheduled_time(NULL); + if (scheduledTime == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.h b/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.h index 61cb602..d9a6530 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_scheduled_time.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_src_port.c b/TC/msgTC/MapiMessage/utc_msg_get_src_port.c index 6e5d0f2..9b58f14 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_src_port.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_src_port.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_src_port.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_src_port_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_src_port(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_src_port_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_src_port(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_src_port.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_src_port_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_src_port(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_src_port_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_src_port(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_src_port.h b/TC/msgTC/MapiMessage/utc_msg_get_src_port.h index 64a6356..fdaa744 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_src_port.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_src_port.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_storage_id.c b/TC/msgTC/MapiMessage/utc_msg_get_storage_id.c index 8d54110..a581125 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_storage_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_storage_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_storage_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_storage_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_storage_id(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_storage_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_storage_id(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_storage_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_storage_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_storage_id(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_storage_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_storage_id(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_storage_id.h b/TC/msgTC/MapiMessage/utc_msg_get_storage_id.h index c53bd1f..06f9aa9 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_storage_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_storage_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_subject.c b/TC/msgTC/MapiMessage/utc_msg_get_subject.c index 8fe6bf1..47b6963 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_subject.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_subject.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_subject.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_set_subject(msgInfo, "test subject"); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_subject_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char* subject = NULL; - - subject = msg_get_subject(msgInfo); - if (subject == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_subject_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char* subject = NULL; - - subject = msg_get_subject(NULL); - if (subject == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_subject.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_set_subject(msgInfo, "test subject"); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_subject_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char* subject = NULL; + + subject = msg_get_subject(msgInfo); + if (subject == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_subject_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char* subject = NULL; + + subject = msg_get_subject(NULL); + if (subject == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_subject.h b/TC/msgTC/MapiMessage/utc_msg_get_subject.h index 3b27c53..32e738b 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_subject.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_subject.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_get_time.c b/TC/msgTC/MapiMessage/utc_msg_get_time.c index 7dcd92c..7030168 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_time.c +++ b/TC/msgTC/MapiMessage/utc_msg_get_time.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_time.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - time_t curTime = time(NULL); - msg_set_time(msgInfo, curTime); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_time_001() -{ - time_t* curTime; - - curTime = msg_get_time(msgInfo); - if (curTime == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_time_002() -{ - time_t* curTime; - - curTime = msg_get_time(NULL); - if (curTime == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_time.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + time_t curTime = time(NULL); + msg_set_time(msgInfo, curTime); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_time_001() +{ + time_t* curTime; + + curTime = msg_get_time(msgInfo); + if (curTime == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_time_002() +{ + time_t* curTime; + + curTime = msg_get_time(NULL); + if (curTime == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_get_time.h b/TC/msgTC/MapiMessage/utc_msg_get_time.h index dbba3fd..847115d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_get_time.h +++ b/TC/msgTC/MapiMessage/utc_msg_get_time.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_is_in_sim.c b/TC/msgTC/MapiMessage/utc_msg_is_in_sim.c index 632e1a8..c52189d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_in_sim.c +++ b/TC/msgTC/MapiMessage/utc_msg_is_in_sim.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_is_in_sim.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_is_in_sim_001() -{ - bool bIsInSim = false; - - msg_set_storage_id(msgInfo, MSG_STORAGE_SIM); - - bIsInSim = msg_is_in_sim(msgInfo); - if (!bIsInSim) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_is_in_sim_002() -{ - bool bIsInSim = false; - - bIsInSim = msg_is_in_sim(NULL); - if (!bIsInSim) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_is_in_sim.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_is_in_sim_001() +{ + bool bIsInSim = false; + + msg_set_storage_id(msgInfo, MSG_STORAGE_SIM); + + bIsInSim = msg_is_in_sim(msgInfo); + if (!bIsInSim) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_is_in_sim_002() +{ + bool bIsInSim = false; + + bIsInSim = msg_is_in_sim(NULL); + if (!bIsInSim) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_is_in_sim.h b/TC/msgTC/MapiMessage/utc_msg_is_in_sim.h index 76b9211..c7b01c1 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_in_sim.h +++ b/TC/msgTC/MapiMessage/utc_msg_is_in_sim.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_is_mms.c b/TC/msgTC/MapiMessage/utc_msg_is_mms.c index 93a2dcb..757479f 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_mms.c +++ b/TC/msgTC/MapiMessage/utc_msg_is_mms.c @@ -1,82 +1,68 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_is_mms.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_set_message_type(msgInfo, MSG_TYPE_MMS); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_is_mms_001() -{ - bool bIsMMS = true; - - bIsMMS = msg_is_mms(msgInfo); - if (!bIsMMS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_is_mms_002() -{ - bool bIsMMS = true; - - bIsMMS = msg_is_mms(NULL); - if (!bIsMMS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_is_mms.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_set_message_type(msgInfo, MSG_TYPE_MMS); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_is_mms_001() +{ + bool bIsMMS = true; + + bIsMMS = msg_is_mms(msgInfo); + if (!bIsMMS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_is_mms_002() +{ + bool bIsMMS = true; + + bIsMMS = msg_is_mms(NULL); + if (!bIsMMS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_is_mms.h b/TC/msgTC/MapiMessage/utc_msg_is_mms.h index fae0dad..0085d3a 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_mms.h +++ b/TC/msgTC/MapiMessage/utc_msg_is_mms.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_is_protected.c b/TC/msgTC/MapiMessage/utc_msg_is_protected.c index 2152ccc..8a2a007 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_protected.c +++ b/TC/msgTC/MapiMessage/utc_msg_is_protected.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_is_protected.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_is_protected_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_is_protected(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_is_protected_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_is_protected(NULL); - if (err <= MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_is_protected.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_is_protected_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_is_protected(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_is_protected_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_is_protected(NULL); + if (err <= MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_is_protected.h b/TC/msgTC/MapiMessage/utc_msg_is_protected.h index aabc00f..3d1c896 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_protected.h +++ b/TC/msgTC/MapiMessage/utc_msg_is_protected.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_is_read.c b/TC/msgTC/MapiMessage/utc_msg_is_read.c index a216306..3825c17 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_read.c +++ b/TC/msgTC/MapiMessage/utc_msg_is_read.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_is_read.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_is_read_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_is_read(msgInfo); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_is_read_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_is_read(NULL); - if (err <= MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_is_read.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_is_read_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_is_read(msgInfo); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_is_read_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_is_read(NULL); + if (err <= MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_is_read.h b/TC/msgTC/MapiMessage/utc_msg_is_read.h index c81cbfd..4dadde5 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_read.h +++ b/TC/msgTC/MapiMessage/utc_msg_is_read.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_is_sms.c b/TC/msgTC/MapiMessage/utc_msg_is_sms.c index b79ea1e..3b87c40 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_sms.c +++ b/TC/msgTC/MapiMessage/utc_msg_is_sms.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_is_sms.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_is_sms_001() -{ - bool bIsSMS = false; - - bIsSMS = msg_is_sms(msgInfo); - if (!bIsSMS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_is_sms_002() -{ - bool bIsSMS = false; - - bIsSMS = msg_is_sms(NULL); - if (!bIsSMS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_is_sms.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_is_sms_001() +{ + bool bIsSMS = false; + + bIsSMS = msg_is_sms(msgInfo); + if (!bIsSMS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_is_sms_002() +{ + bool bIsSMS = false; + + bIsSMS = msg_is_sms(NULL); + if (!bIsSMS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_is_sms.h b/TC/msgTC/MapiMessage/utc_msg_is_sms.h index ef0e98c..bb45a0f 100755 --- a/TC/msgTC/MapiMessage/utc_msg_is_sms.h +++ b/TC/msgTC/MapiMessage/utc_msg_is_sms.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.c index 92d1416..43f4c50 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_attachment.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - MMS_ATTACH_S* attachment[5]; - int nSize; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_add_attachment_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_ATTACH_S* attach = NULL; - - attach = msg_mms_add_attachment(mms_data, (char*)"/opt/etc/msg-service/P091120_104633.jpg"); - if (attach == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_add_attachment_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_ATTACH_S* attach = NULL; - - attach = msg_mms_add_attachment(NULL, (char*)"/opt/etc/msg-service/P091120_104633.jpg"); - if (attach == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_attachment.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + MMS_ATTACH_S* attachment[5]; + int nSize; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_add_attachment_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_ATTACH_S* attach = NULL; + + attach = msg_mms_add_attachment(mms_data, (char*)"/opt/etc/msg-service/P091120_104633.jpg"); + if (attach == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_add_attachment_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_ATTACH_S* attach = NULL; + + attach = msg_mms_add_attachment(NULL, (char*)"/opt/etc/msg-service/P091120_104633.jpg"); + if (attach == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.h index 619c190..d7f95a0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_attachment.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_media.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_media.c index ba48385..7716fb9 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_media.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_media.c @@ -1,91 +1,77 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_media.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; -MMS_PAGE_S* page = NULL; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MEDIA_S* media[5]; - MMS_ATTACH_S* attachment[5]; - int nSize; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); - - page = msg_mms_add_page(mms_data, 5440); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_add_media_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MEDIA_S* media = NULL; - - media = msg_mms_add_media(page, MMS_SMIL_MEDIA_IMG, "Image", (char*)"/opt/etc/msg-service/P091120_104633.jpg"); - if (media == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_add_media_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MEDIA_S* media = NULL; - - media = msg_mms_add_media(NULL, MMS_SMIL_MEDIA_IMG, "Image", (char*)"/opt/etc/msg-service/P091120_104633.jpg"); - if (media == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_media.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; +MMS_PAGE_S* page = NULL; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MEDIA_S* media[5]; + MMS_ATTACH_S* attachment[5]; + int nSize; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); + + page = msg_mms_add_page(mms_data, 5440); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_add_media_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MEDIA_S* media = NULL; + + media = msg_mms_add_media(page, MMS_SMIL_MEDIA_IMG, "Image", (char*)"/opt/etc/msg-service/P091120_104633.jpg"); + if (media == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_add_media_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MEDIA_S* media = NULL; + + media = msg_mms_add_media(NULL, MMS_SMIL_MEDIA_IMG, "Image", (char*)"/opt/etc/msg-service/P091120_104633.jpg"); + if (media == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_media.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_media.h index be83629..4fdbedc 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_media.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_media.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.c index 4dd7198..48955e0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.c @@ -1,93 +1,79 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_meta.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; -MMS_SMIL_META meta; -MMS_PAGE_S* page = NULL; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MEDIA_S* media[5]; - MMS_ATTACH_S* attachment[5]; - int nSize; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); - - memset(&meta, 0x00, sizeof(MMS_SMIL_META)); - - page = msg_mms_add_page(mms_data, 5440); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_add_meta_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_mms_add_meta(mms_data, &meta); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_add_meta_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MEDIA_S* media = NULL; - - err = msg_mms_add_meta(NULL, &meta); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_meta.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; +MMS_SMIL_META meta; +MMS_PAGE_S* page = NULL; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MEDIA_S* media[5]; + MMS_ATTACH_S* attachment[5]; + int nSize; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); + + memset(&meta, 0x00, sizeof(MMS_SMIL_META)); + + page = msg_mms_add_page(mms_data, 5440); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_add_meta_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_mms_add_meta(mms_data, &meta); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_add_meta_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MEDIA_S* media = NULL; + + err = msg_mms_add_meta(NULL, &meta); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.h index a5cc624..0043839 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_meta.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_add_meta_001(void); - static void utc_msg_mms_add_meta_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_add_meta_001,1}, - { utc_msg_mms_add_meta_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_add_meta_001(void); + static void utc_msg_mms_add_meta_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_add_meta_001,1}, + { utc_msg_mms_add_meta_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_page.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_page.c index 30e7af3..80b1427 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_page.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_page.c @@ -1,85 +1,71 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_page.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_set_message_body_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page; - - page = msg_mms_add_page(mms_data, 5440); - if (page == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_set_message_body_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page; - - page = msg_mms_add_page(NULL, 5440); - if (page == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_page.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_set_message_body_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page; + + page = msg_mms_add_page(mms_data, 5440); + if (page == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_set_message_body_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page; + + page = msg_mms_add_page(NULL, 5440); + if (page == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_page.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_page.h index d5bba90..8c2da09 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_page.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_page.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_region.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_region.c index e0b8c8c..ac744e9 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_region.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_region.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_region.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - MMS_ATTACH_S* attachment[5]; - int nSize; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_add_region_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_SMIL_REGION* region = NULL; - - region = msg_mms_add_region(mms_data, "Image", 0, 50, 100, 50, 0xffffff); - if (region == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_add_region_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_SMIL_REGION* region = NULL; - - region = msg_mms_add_region(NULL, "Image", 0, 50, 100, 50, 0xffffff); - if (region == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_region.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + MMS_ATTACH_S* attachment[5]; + int nSize; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_add_region_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_SMIL_REGION* region = NULL; + + region = msg_mms_add_region(mms_data, "Image", 0, 50, 100, 50, 0xffffff); + if (region == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_add_region_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_SMIL_REGION* region = NULL; + + region = msg_mms_add_region(NULL, "Image", 0, 50, 100, 50, 0xffffff); + if (region == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_region.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_region.h index 48cbccf..5d7f49f 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_region.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_region.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.c b/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.c index 1d5ae10..11eeae6 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.c @@ -1,93 +1,79 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_add_transition.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - MMS_ATTACH_S* attachment[5]; - int nSize; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_add_transition_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_SMIL_TRANSITION transition; - - memset(&transition, 0x00, sizeof(transition)); - - err = msg_mms_add_transition(mms_data, &transition); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_add_transition_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_SMIL_TRANSITION transition; - - memset(&transition, 0x00, sizeof(transition)); - - err = msg_mms_add_transition(NULL, &transition); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_add_transition.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + MMS_ATTACH_S* attachment[5]; + int nSize; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_add_transition_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_SMIL_TRANSITION transition; + + memset(&transition, 0x00, sizeof(transition)); + + err = msg_mms_add_transition(mms_data, &transition); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_add_transition_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_SMIL_TRANSITION transition; + + memset(&transition, 0x00, sizeof(transition)); + + err = msg_mms_add_transition(NULL, &transition); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.h b/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.h index ef97fdb..12d547e 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_add_transition.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_add_transition_001(void); - static void utc_msg_mms_add_transition_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_add_transition_001,1}, - { utc_msg_mms_add_transition_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_add_transition_001(void); + static void utc_msg_mms_add_transition_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_add_transition_001,1}, + { utc_msg_mms_add_transition_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_create_message.c b/TC/msgTC/MapiMessage/utc_msg_mms_create_message.c index 492fe02..74360e0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_create_message.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_create_message.c @@ -1,86 +1,72 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_create_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_create_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MESSAGE_DATA_S* mms_data = NULL; - - mms_data = msg_mms_create_message(); - if (mms_data == NULL) - { - tet_result(TET_FAIL); - msg_mms_destroy_message(mms_data); - return; - } - - tet_result(TET_PASS); - msg_mms_destroy_message(mms_data); -} - -void utc_msg_mms_create_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_MESSAGE_DATA_S* mms_data = NULL; - - //mms_data = msg_mms_create_message(); - if (mms_data == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_create_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_create_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MESSAGE_DATA_S* mms_data = NULL; + + mms_data = msg_mms_create_message(); + if (mms_data == NULL) + { + tet_result(TET_FAIL); + msg_mms_destroy_message(mms_data); + return; + } + + tet_result(TET_PASS); + msg_mms_destroy_message(mms_data); +} + +void utc_msg_mms_create_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_MESSAGE_DATA_S* mms_data = NULL; + + //mms_data = msg_mms_create_message(); + if (mms_data == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_create_message.h b/TC/msgTC/MapiMessage/utc_msg_mms_create_message.h index c11080f..4f776f3 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_create_message.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_create_message.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_create_message_001(void); - static void utc_msg_mms_create_message_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_create_message_001,1}, - { utc_msg_mms_create_message_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_create_message_001(void); + static void utc_msg_mms_create_message_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_create_message_001,1}, + { utc_msg_mms_create_message_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.c b/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.c index cd2ad1c..a399ad3 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_destroy_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_destroy_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_mms_destroy_message(mms_data); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_destroy_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_mms_destroy_message(NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_destroy_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_destroy_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_mms_destroy_message(mms_data); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_destroy_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_mms_destroy_message(NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.h b/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.h index 5e8bba4..c36cda2 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_destroy_message.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_destroy_message_001(void); - static void utc_msg_mms_destroy_message_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_destroy_message_001,1}, - { utc_msg_mms_destroy_message_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_destroy_message_001(void); + static void utc_msg_mms_destroy_message_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_destroy_message_001,1}, + { utc_msg_mms_destroy_message_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.c index f6e9b3e..e02d7ba 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_attachment.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.h index ae6908d..f8d658a 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_attachment.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_media.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_media.c index 95c44f7..806a988 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_media.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_media.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_media.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_media.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_media.h index dec60f3..fc3f338 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_media.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_media.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.c index abe80a5..e159279 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_message_body.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.h index c088520..f8aa1b0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_message_body.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.c index 70ae054..5baaf29 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_meta.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.h index 0868d97..caba6d9 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_meta.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_get_meta_001(void); - static void utc_msg_mms_get_meta_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_get_meta_001,1}, - { utc_msg_mms_get_meta_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_get_meta_001(void); + static void utc_msg_mms_get_meta_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_get_meta_001,1}, + { utc_msg_mms_get_meta_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_page.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_page.c index dd6a5ae..f5924a4 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_page.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_page.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_page.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_page.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_page.h index a6c6065..045196c 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_page.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_page.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.c index 843f9f4..c799a8b 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_smil_region.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.h index c5c4d49..f7dbd19 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_smil_region.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_get_smil_region_001(void); - static void utc_msg_mms_get_smil_region_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_get_smil_region_001,1}, - { utc_msg_mms_get_smil_region_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_get_smil_region_001(void); + static void utc_msg_mms_get_smil_region_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_get_smil_region_001,1}, + { utc_msg_mms_get_smil_region_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.c b/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.c index 86a41ea..7c03eeb 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_get_transition.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.h b/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.h index e256a92..440f77a 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_get_transition.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_get_transition_001(void); - static void utc_msg_mms_get_transition_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_get_transition_001,1}, - { utc_msg_mms_get_transition_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_get_transition_001(void); + static void utc_msg_mms_get_transition_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_get_transition_001,1}, + { utc_msg_mms_get_transition_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.c b/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.c index 626c52d..b1637e6 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_set_message_body.h" diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.h b/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.h index cd00f1f..4c8201b 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_set_message_body.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.c b/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.c index dc0a002..f4c9372 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.c +++ b/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.c @@ -1,85 +1,71 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_set_rootlayout.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MMS_MESSAGE_DATA_S* mms_data; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MMS_PAGE_S* page[2]; - MMS_MEDIA_S* media[5]; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - mms_data = msg_mms_create_message(); -} -void cleanup(void) -{ - msg_mms_destroy_message(mms_data); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_set_rootlayout_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - MMS_SMIL_ROOTLAYOUT* pLayout = msg_mms_set_rootlayout(mms_data, 100, 100, 0xffffff); - if (pLayout == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_set_rootlayout_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - MMS_SMIL_ROOTLAYOUT* pLayout = msg_mms_set_rootlayout(NULL, 100, 100, 0xffffff); - if (pLayout == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_set_rootlayout.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MMS_MESSAGE_DATA_S* mms_data; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MMS_PAGE_S* page[2]; + MMS_MEDIA_S* media[5]; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + mms_data = msg_mms_create_message(); +} +void cleanup(void) +{ + msg_mms_destroy_message(mms_data); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_set_rootlayout_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + MMS_SMIL_ROOTLAYOUT* pLayout = msg_mms_set_rootlayout(mms_data, 100, 100, 0xffffff); + if (pLayout == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_set_rootlayout_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + MMS_SMIL_ROOTLAYOUT* pLayout = msg_mms_set_rootlayout(NULL, 100, 100, 0xffffff); + if (pLayout == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.h b/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.h index 91491fe..9bd5632 100755 --- a/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.h +++ b/TC/msgTC/MapiMessage/utc_msg_mms_set_rootlayout.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_mms_set_rootlayout_001(void); - static void utc_msg_mms_set_rootlayout_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_mms_set_rootlayout_001,1}, - { utc_msg_mms_set_rootlayout_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_mms_set_rootlayout_001(void); + static void utc_msg_mms_set_rootlayout_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_mms_set_rootlayout_001,1}, + { utc_msg_mms_set_rootlayout_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiMessage/utc_msg_new_message.c b/TC/msgTC/MapiMessage/utc_msg_new_message.c index a58bd39..c233775 100755 --- a/TC/msgTC/MapiMessage/utc_msg_new_message.c +++ b/TC/msgTC/MapiMessage/utc_msg_new_message.c @@ -1,78 +1,64 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_new_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_new_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - msgInfo = msg_new_message(); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_new_message_002() -{ - MSG_ERROR_T err = -1; - - msgInfo = msg_new_message(); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_new_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_new_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + msgInfo = msg_new_message(); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_new_message_002() +{ + MSG_ERROR_T err = -1; + + msgInfo = msg_new_message(); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_new_message.h b/TC/msgTC/MapiMessage/utc_msg_new_message.h index 7e1fe12..9a9c81f 100755 --- a/TC/msgTC/MapiMessage/utc_msg_new_message.h +++ b/TC/msgTC/MapiMessage/utc_msg_new_message.h @@ -1,49 +1,35 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_new_message_001(void); -static void utc_msg_new_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_new_message_001,1}, - { utc_msg_new_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_new_message_001(void); +static void utc_msg_new_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_new_message_001,1}, + { utc_msg_new_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiMessage/utc_msg_release_message.c b/TC/msgTC/MapiMessage/utc_msg_release_message.c index ebbb6c9..af43669 100755 --- a/TC/msgTC/MapiMessage/utc_msg_release_message.c +++ b/TC/msgTC/MapiMessage/utc_msg_release_message.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_release_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_release_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_release_message(msgInfo); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_release_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_release_message(NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_release_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_release_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_release_message(msgInfo); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_release_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_release_message(NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_release_message.h b/TC/msgTC/MapiMessage/utc_msg_release_message.h index 615ae3e..f4d9a63 100755 --- a/TC/msgTC/MapiMessage/utc_msg_release_message.h +++ b/TC/msgTC/MapiMessage/utc_msg_release_message.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_reset_address.c b/TC/msgTC/MapiMessage/utc_msg_reset_address.c index d66849a..a2cc4c2 100755 --- a/TC/msgTC/MapiMessage/utc_msg_reset_address.c +++ b/TC/msgTC/MapiMessage/utc_msg_reset_address.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reset_address.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reset_address_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_reset_address(msgInfo); - if (err) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reset_address_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_reset_address(NULL); - if (err) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reset_address.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reset_address_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_reset_address(msgInfo); + if (err) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reset_address_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_reset_address(NULL); + if (err) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_reset_address.h b/TC/msgTC/MapiMessage/utc_msg_reset_address.h index e9adf38..ba7d677 100755 --- a/TC/msgTC/MapiMessage/utc_msg_reset_address.h +++ b/TC/msgTC/MapiMessage/utc_msg_reset_address.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_direction_info.c b/TC/msgTC/MapiMessage/utc_msg_set_direction_info.c index 92c1608..56e1c50 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_direction_info.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_direction_info.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_direction_info.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_direction_info_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_direction_info(msgInfo, MSG_DIRECTION_TYPE_MT); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_direction_info_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_direction_info(NULL, MSG_DIRECTION_TYPE_MT); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_direction_info.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_direction_info_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_direction_info(msgInfo, MSG_DIRECTION_TYPE_MT); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_direction_info_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_direction_info(NULL, MSG_DIRECTION_TYPE_MT); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_direction_info.h b/TC/msgTC/MapiMessage/utc_msg_set_direction_info.h index 2aa0c70..9e337bd 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_direction_info.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_direction_info.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_encode_type.c b/TC/msgTC/MapiMessage/utc_msg_set_encode_type.c index f55961e..235136e 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_encode_type.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_encode_type.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_encode_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_encode_type_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_encode_type(msgInfo, MSG_ENCODE_GSM7BIT); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_encode_type_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_encode_type(NULL, MSG_ENCODE_GSM7BIT); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_encode_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_encode_type_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_encode_type(msgInfo, MSG_ENCODE_GSM7BIT); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_encode_type_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_encode_type(NULL, MSG_ENCODE_GSM7BIT); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_encode_type.h b/TC/msgTC/MapiMessage/utc_msg_set_encode_type.h index 0b3ce66..78ca9f6 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_encode_type.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_encode_type.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_folder_id.c b/TC/msgTC/MapiMessage/utc_msg_set_folder_id.c index cd83ecc..4477be0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_folder_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_folder_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_folder_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_folder_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_folder_id(msgInfo, MSG_INBOX_ID); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_folder_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_folder_id(NULL, MSG_INBOX_ID); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_folder_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_folder_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_folder_id(msgInfo, MSG_INBOX_ID); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_folder_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_folder_id(NULL, MSG_INBOX_ID); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_folder_id.h b/TC/msgTC/MapiMessage/utc_msg_set_folder_id.h index 27d3db3..141ad03 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_folder_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_folder_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_message_id.c b/TC/msgTC/MapiMessage/utc_msg_set_message_id.c index 2ec05e6..c57a5c4 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_message_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_message_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_message_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_message_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_message_id(msgInfo, 1); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_message_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_message_id(NULL, 1); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_message_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_message_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_message_id(msgInfo, 1); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_message_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_message_id(NULL, 1); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_message_id.h b/TC/msgTC/MapiMessage/utc_msg_set_message_id.h index 49f888e..5fc1f6f 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_message_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_message_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_message_type.c b/TC/msgTC/MapiMessage/utc_msg_set_message_type.c index 0ef00e3..6fcf782 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_message_type.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_message_type.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_message_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_message_type_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_message_type(msgInfo, MSG_TYPE_SMS); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_message_type_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_message_type(NULL, MSG_TYPE_SMS); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_message_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_message_type_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_message_type(msgInfo, MSG_TYPE_SMS); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_message_type_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_message_type(NULL, MSG_TYPE_SMS); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_message_type.h b/TC/msgTC/MapiMessage/utc_msg_set_message_type.h index daad3b0..1b400d6 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_message_type.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_message_type.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_network_status.c b/TC/msgTC/MapiMessage/utc_msg_set_network_status.c index fb66092..5cab121 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_network_status.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_network_status.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_network_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_network_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_network_status(msgInfo, MSG_NETWORK_SEND_SUCCESS); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_network_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_network_status(NULL, MSG_NETWORK_SEND_SUCCESS); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_network_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_network_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_network_status(msgInfo, MSG_NETWORK_SEND_SUCCESS); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_network_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_network_status(NULL, MSG_NETWORK_SEND_SUCCESS); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_network_status.h b/TC/msgTC/MapiMessage/utc_msg_set_network_status.h index 36a7ce4..7418f95 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_network_status.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_network_status.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_port.c b/TC/msgTC/MapiMessage/utc_msg_set_port.c index 91faa0d..4c90148 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_port.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_port.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_port.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_port_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_port(msgInfo, 656, 656); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_port_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_port(NULL, 656, 656); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_port.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_port_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_port(msgInfo, 656, 656); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_port_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_port(NULL, 656, 656); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_port.h b/TC/msgTC/MapiMessage/utc_msg_set_port.h index 7465602..3d71a1c 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_port.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_port.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_priority_info.c b/TC/msgTC/MapiMessage/utc_msg_set_priority_info.c index 457196f..8d01de0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_priority_info.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_priority_info.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_priority_info.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_priority_info_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_priority_info(msgInfo, MSG_MESSAGE_PRIORITY_NORMAL); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_priority_info_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_priority_info(NULL, MSG_MESSAGE_PRIORITY_NORMAL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_priority_info.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_priority_info_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_priority_info(msgInfo, MSG_MESSAGE_PRIORITY_NORMAL); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_priority_info_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_priority_info(NULL, MSG_MESSAGE_PRIORITY_NORMAL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_priority_info.h b/TC/msgTC/MapiMessage/utc_msg_set_priority_info.h index 2909137..b95c18d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_priority_info.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_priority_info.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_protect_status.c b/TC/msgTC/MapiMessage/utc_msg_set_protect_status.c index af73c10..e69d84d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_protect_status.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_protect_status.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_protect_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_protect_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_protect_status(msgInfo, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_protect_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_protect_status(NULL, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_protect_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_protect_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_protect_status(msgInfo, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_protect_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_protect_status(NULL, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_protect_status.h b/TC/msgTC/MapiMessage/utc_msg_set_protect_status.h index 41dbc58..b6e797a 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_protect_status.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_protect_status.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_read_status.c b/TC/msgTC/MapiMessage/utc_msg_set_read_status.c index 3b70692..cd92d34 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_read_status.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_read_status.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_read_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_read_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_read_status(msgInfo, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_read_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_read_status(NULL, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_read_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_read_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_read_status(msgInfo, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_read_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_read_status(NULL, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_read_status.h b/TC/msgTC/MapiMessage/utc_msg_set_read_status.h index 590f483..89c9392 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_read_status.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_read_status.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.c b/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.c index 0ab09f2..77c4b6e 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.c @@ -1,86 +1,72 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_scheduled_time.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_scheduled_time_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t scheduledTime; - time(&scheduledTime); - - err = msg_set_scheduled_time(msgInfo, scheduledTime); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_scheduled_time_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t scheduledTime; - time(&scheduledTime); - - err = msg_set_scheduled_time(NULL, scheduledTime); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_scheduled_time.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_scheduled_time_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t scheduledTime; + time(&scheduledTime); + + err = msg_set_scheduled_time(msgInfo, scheduledTime); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_scheduled_time_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t scheduledTime; + time(&scheduledTime); + + err = msg_set_scheduled_time(NULL, scheduledTime); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.h b/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.h index 8431c4d..8e0051c 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_scheduled_time.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_storage_id.c b/TC/msgTC/MapiMessage/utc_msg_set_storage_id.c index 5e9b4cf..f835cbc 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_storage_id.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_storage_id.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_storage_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_storage_id_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_storage_id(msgInfo, MSG_STORAGE_PHONE); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_storage_id_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_storage_id(NULL, MSG_STORAGE_PHONE); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_storage_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_storage_id_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_storage_id(msgInfo, MSG_STORAGE_PHONE); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_storage_id_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_storage_id(NULL, MSG_STORAGE_PHONE); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_storage_id.h b/TC/msgTC/MapiMessage/utc_msg_set_storage_id.h index ddbd2d8..5942c72 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_storage_id.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_storage_id.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_subject.c b/TC/msgTC/MapiMessage/utc_msg_set_subject.c index fed3eb0..66eaac1 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_subject.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_subject.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_subject.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_subject_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_subject(msgInfo, "test subject"); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_subject_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_subject(NULL, "test subject"); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_subject.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_subject_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_subject(msgInfo, "test subject"); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_subject_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_subject(NULL, "test subject"); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_subject.h b/TC/msgTC/MapiMessage/utc_msg_set_subject.h index a69c2fa..7485c75 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_subject.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_subject.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_set_time.c b/TC/msgTC/MapiMessage/utc_msg_set_time.c index 988278e..884e4df 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_time.c +++ b/TC/msgTC/MapiMessage/utc_msg_set_time.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_time.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_time_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t curTime = time(NULL); - - err = msg_set_time(msgInfo, curTime); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_time_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - time_t curTime = time(NULL); - - err = msg_set_time(NULL, curTime); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_time.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_time_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t curTime = time(NULL); + + err = msg_set_time(msgInfo, curTime); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_time_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + time_t curTime = time(NULL); + + err = msg_set_time(NULL, curTime); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_set_time.h b/TC/msgTC/MapiMessage/utc_msg_set_time.h index 7d4c014..1a6f132 100755 --- a/TC/msgTC/MapiMessage/utc_msg_set_time.h +++ b/TC/msgTC/MapiMessage/utc_msg_set_time.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.c b/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.c index f955d79..bdb5e5d 100755 --- a/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.c +++ b/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_sms_get_message_body.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - msg_sms_set_message_body(msgInfo, "test message", 12); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_sms_get_message_body_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_sms_get_message_body(msgInfo); - if (address == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_sms_get_message_body_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - char * address = NULL; - - address = msg_sms_get_message_body(NULL); - if (address == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_sms_get_message_body.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + msg_sms_set_message_body(msgInfo, "test message", 12); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_sms_get_message_body_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_sms_get_message_body(msgInfo); + if (address == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_sms_get_message_body_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + char * address = NULL; + + address = msg_sms_get_message_body(NULL); + if (address == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.h b/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.h index f1e18f6..8756de0 100755 --- a/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.h +++ b/TC/msgTC/MapiMessage/utc_msg_sms_get_message_body.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.c b/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.c index 3dfb799..4169921 100755 --- a/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.c +++ b/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.c @@ -1,80 +1,66 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_sms_set_message_body.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_sms_set_message_body_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_sms_set_message_body(msgInfo, "test message", 12); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_sms_set_message_body_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_sms_set_message_body(NULL, "test message", 12); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_sms_set_message_body.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_sms_set_message_body_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_sms_set_message_body(msgInfo, "test message", 12); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_sms_set_message_body_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_sms_set_message_body(NULL, "test message", 12); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.h b/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.h index 0314b23..f2fdb2b 100755 --- a/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.h +++ b/TC/msgTC/MapiMessage/utc_msg_sms_set_message_body.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/TC/msgTC/MapiSetting/utc_msg_get_config.c b/TC/msgTC/MapiSetting/utc_msg_get_config.c index 10959c1..b431a2c 100755 --- a/TC/msgTC/MapiSetting/utc_msg_get_config.c +++ b/TC/msgTC/MapiSetting/utc_msg_get_config.c @@ -1,81 +1,67 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_config.h" - -static MSG_HANDLE_T msgHandle = NULL; -MSG_SETTING_S setting; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - memset(&setting, 0x00, sizeof(MSG_OPTION_TYPE_T)+sizeof(MSG_GENERAL_OPT_S)); - - setting.type = MSG_GENERAL_OPT; -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_config_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_config(msgHandle, &setting); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_config_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_config(NULL, &setting); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_config.h" + +static MSG_HANDLE_T msgHandle = NULL; +MSG_SETTING_S setting; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + memset(&setting, 0x00, sizeof(MSG_OPTION_TYPE_T)+sizeof(MSG_GENERAL_OPT_S)); + + setting.type = MSG_GENERAL_OPT; +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_config_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_config(msgHandle, &setting); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_config_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_config(NULL, &setting); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiSetting/utc_msg_get_config.h b/TC/msgTC/MapiSetting/utc_msg_get_config.h index 4139674..30acbcf 100755 --- a/TC/msgTC/MapiSetting/utc_msg_get_config.h +++ b/TC/msgTC/MapiSetting/utc_msg_get_config.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiSetting.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_get_config_001(void); - static void utc_msg_get_config_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_get_config_001,1}, - { utc_msg_get_config_002,2}, - {NULL,0} +#include + +#include "MapiSetting.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_get_config_001(void); + static void utc_msg_get_config_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_get_config_001,1}, + { utc_msg_get_config_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiSetting/utc_msg_set_config.c b/TC/msgTC/MapiSetting/utc_msg_set_config.c index 111c61d..1b1ab5d 100755 --- a/TC/msgTC/MapiSetting/utc_msg_set_config.c +++ b/TC/msgTC/MapiSetting/utc_msg_set_config.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_set_config.h" - -static MSG_HANDLE_T msgHandle = NULL; -MSG_SETTING_S setting; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - memset(&setting, 0x00, sizeof(MSG_OPTION_TYPE_T)+sizeof(MSG_GENERAL_OPT_S)); - - setting.type = MSG_GENERAL_OPT; - - msg_get_config(msgHandle, &setting); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_set_config_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_config(msgHandle, &setting); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_set_config_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_set_config(NULL, &setting); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_set_config.h" + +static MSG_HANDLE_T msgHandle = NULL; +MSG_SETTING_S setting; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + memset(&setting, 0x00, sizeof(MSG_OPTION_TYPE_T)+sizeof(MSG_GENERAL_OPT_S)); + + setting.type = MSG_GENERAL_OPT; + + msg_get_config(msgHandle, &setting); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_set_config_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_config(msgHandle, &setting); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_set_config_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_set_config(NULL, &setting); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiSetting/utc_msg_set_config.h b/TC/msgTC/MapiSetting/utc_msg_set_config.h index 399ec01..71560ce 100755 --- a/TC/msgTC/MapiSetting/utc_msg_set_config.h +++ b/TC/msgTC/MapiSetting/utc_msg_set_config.h @@ -1,48 +1,34 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiSetting.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - - static void utc_msg_set_config_001(void); - static void utc_msg_set_config_002(void); - - - - struct tet_testlist tet_testlist[] = { - { utc_msg_set_config_001,1}, - { utc_msg_set_config_002,2}, - {NULL,0} +#include + +#include "MapiSetting.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + + static void utc_msg_set_config_001(void); + static void utc_msg_set_config_002(void); + + + + struct tet_testlist tet_testlist[] = { + { utc_msg_set_config_001,1}, + { utc_msg_set_config_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiStorage/utc_msg_add_folder.c b/TC/msgTC/MapiStorage/utc_msg_add_folder.c index 92b3469..0fd5791 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_folder.c +++ b/TC/msgTC/MapiStorage/utc_msg_add_folder.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_add_folder.h" diff --git a/TC/msgTC/MapiStorage/utc_msg_add_folder.h b/TC/msgTC/MapiStorage/utc_msg_add_folder.h index 7510aba..0859539 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_folder.h +++ b/TC/msgTC/MapiStorage/utc_msg_add_folder.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_add_folder_001(void); -static void utc_msg_add_folder_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_add_folder_001,1}, - { utc_msg_add_folder_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_add_folder_001(void); +static void utc_msg_add_folder_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_add_folder_001,1}, + { utc_msg_add_folder_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_add_message.c b/TC/msgTC/MapiStorage/utc_msg_add_message.c index c7e0c8e..ab6bebf 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_add_message.c @@ -1,87 +1,73 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_add_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_add_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_message(msgHandle, msgInfo, &sendOpt); - if (err < MSG_SUCCESS) - { - tet_printf("msg_add_message fail [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_add_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_message(NULL, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_printf("msg_add_message success [%d]", err); - tet_result(TET_FAIL); +#include "utc_msg_add_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_add_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_message(msgHandle, msgInfo, &sendOpt); + if (err < MSG_SUCCESS) + { + tet_printf("msg_add_message fail [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_add_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_message(NULL, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_printf("msg_add_message success [%d]", err); + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_add_message.h b/TC/msgTC/MapiStorage/utc_msg_add_message.h index f751385..2ce5083 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_add_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_add_message_001(void); -static void utc_msg_add_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_add_message_001,1}, - { utc_msg_add_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_add_message_001(void); +static void utc_msg_add_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_add_message_001,1}, + { utc_msg_add_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.c b/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.c index b94409a..8fc5131 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.c @@ -1,98 +1,84 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_add_syncml_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SYNCML_MESSAGE_S syncMLMsg; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&syncMLMsg, 0x00, sizeof(MSG_SYNCML_MESSAGE_S)); - - syncMLMsg.extId = 11; - syncMLMsg.pinCode = 1111; - - syncMLMsg.msg = msg_new_message(); - - msg_set_folder_id(syncMLMsg.msg, MSG_INBOX_ID); - msg_set_message_type(syncMLMsg.msg, MSG_TYPE_SMS_SYNCML); - msg_set_network_status(syncMLMsg.msg, MSG_NETWORK_RECEIVED); - msg_set_direction_info(syncMLMsg.msg, MSG_DIRECTION_TYPE_MT); - - msg_add_address(syncMLMsg.msg, "+1004", MSG_RECIPIENTS_TYPE_TO); - - char msg_body[]="SyncML Message"; - msg_sms_set_message_body(syncMLMsg.msg, msg_body, strlen(msg_body)); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_add_syncml_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_syncml_message(msgHandle, &syncMLMsg); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_add_syncml_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_add_syncml_message(NULL, &syncMLMsg); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_add_syncml_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SYNCML_MESSAGE_S syncMLMsg; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&syncMLMsg, 0x00, sizeof(MSG_SYNCML_MESSAGE_S)); + + syncMLMsg.extId = 11; + syncMLMsg.pinCode = 1111; + + syncMLMsg.msg = msg_new_message(); + + msg_set_folder_id(syncMLMsg.msg, MSG_INBOX_ID); + msg_set_message_type(syncMLMsg.msg, MSG_TYPE_SMS_SYNCML); + msg_set_network_status(syncMLMsg.msg, MSG_NETWORK_RECEIVED); + msg_set_direction_info(syncMLMsg.msg, MSG_DIRECTION_TYPE_MT); + + msg_add_address(syncMLMsg.msg, "+1004", MSG_RECIPIENTS_TYPE_TO); + + char msg_body[]="SyncML Message"; + msg_sms_set_message_body(syncMLMsg.msg, msg_body, strlen(msg_body)); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_add_syncml_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_syncml_message(msgHandle, &syncMLMsg); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_add_syncml_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_add_syncml_message(NULL, &syncMLMsg); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.h b/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.h index 38c578a..ab23564 100755 --- a/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_add_syncml_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_add_syncml_message_001(void); -static void utc_msg_add_syncml_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_add_syncml_message_001,1}, - { utc_msg_add_syncml_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_add_syncml_message_001(void); +static void utc_msg_add_syncml_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_add_syncml_message_001,1}, + { utc_msg_add_syncml_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_count_message.c b/TC/msgTC/MapiStorage/utc_msg_count_message.c index 8d9f868..31eb04a 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_count_message.c @@ -1,91 +1,77 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_count_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_COUNT_INFO_S count_info; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - memset(&count_info, 0x00, sizeof(count_info)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_count_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_count_message(msgHandle, MSG_DRAFT_ID, &count_info); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_count_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_count_message(NULL, MSG_DRAFT_ID, &count_info); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_count_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_COUNT_INFO_S count_info; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + memset(&count_info, 0x00, sizeof(count_info)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_count_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_count_message(msgHandle, MSG_DRAFT_ID, &count_info); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_count_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_count_message(NULL, MSG_DRAFT_ID, &count_info); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_count_message.h b/TC/msgTC/MapiStorage/utc_msg_count_message.h index ddb5d6c..f2ec68a 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_count_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_count_message_001(void); -static void utc_msg_count_message_001(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_count_message_001,1}, - { utc_msg_count_message_001,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_count_message_001(void); +static void utc_msg_count_message_001(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_count_message_001,1}, + { utc_msg_count_message_001,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.c b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.c index 25683f3..0ef1233 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.c +++ b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.c @@ -1,99 +1,85 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_count_msg_by_contact.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_count_msg_by_contact_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_THREAD_LIST_INDEX_S addr_info; - MSG_THREAD_COUNT_INFO_S msg_thread_count_list; - - memset(&addr_info, 0x00, sizeof(addr_info)); - memset(&msg_thread_count_list, 0x00, sizeof(msg_thread_count_list)); - - err = msg_count_msg_by_contact(msgHandle, &addr_info, &msg_thread_count_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_count_msg_by_contact_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_THREAD_LIST_INDEX_S addr_info; - MSG_THREAD_COUNT_INFO_S msg_thread_count_list; - - memset(&addr_info, 0x00, sizeof(addr_info)); - memset(&msg_thread_count_list, 0x00, sizeof(msg_thread_count_list)); - - err = msg_count_msg_by_contact(NULL, &addr_info, &msg_thread_count_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_count_msg_by_contact.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_count_msg_by_contact_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_THREAD_LIST_INDEX_S addr_info; + MSG_THREAD_COUNT_INFO_S msg_thread_count_list; + + memset(&addr_info, 0x00, sizeof(addr_info)); + memset(&msg_thread_count_list, 0x00, sizeof(msg_thread_count_list)); + + err = msg_count_msg_by_contact(msgHandle, &addr_info, &msg_thread_count_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_count_msg_by_contact_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_THREAD_LIST_INDEX_S addr_info; + MSG_THREAD_COUNT_INFO_S msg_thread_count_list; + + memset(&addr_info, 0x00, sizeof(addr_info)); + memset(&msg_thread_count_list, 0x00, sizeof(msg_thread_count_list)); + + err = msg_count_msg_by_contact(NULL, &addr_info, &msg_thread_count_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.h b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.h index 268d67c..24d8c97 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.h +++ b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_contact.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_count_msg_by_contact_001(void); -static void utc_msg_count_msg_by_contact_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_count_msg_by_contact_001,1}, - { utc_msg_count_msg_by_contact_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_count_msg_by_contact_001(void); +static void utc_msg_count_msg_by_contact_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_count_msg_by_contact_001,1}, + { utc_msg_count_msg_by_contact_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.c b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.c index 8a65965..8fff138 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.c +++ b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.c @@ -1,91 +1,77 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_count_msg_by_type.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_update_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - int count = 0; - - err = msg_count_msg_by_type(msgHandle, MSG_TYPE_SMS, &count); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_update_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - int count = 0; - - err = msg_count_msg_by_type(NULL, MSG_TYPE_SMS, &count); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_count_msg_by_type.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_update_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + int count = 0; + + err = msg_count_msg_by_type(msgHandle, MSG_TYPE_SMS, &count); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_update_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + int count = 0; + + err = msg_count_msg_by_type(NULL, MSG_TYPE_SMS, &count); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.h b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.h index bad318b..2eb70cc 100755 --- a/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.h +++ b/TC/msgTC/MapiStorage/utc_msg_count_msg_by_type.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_update_message_001(void); -static void utc_msg_update_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_update_message_001,1}, - { utc_msg_update_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_update_message_001(void); +static void utc_msg_update_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_update_message_001,1}, + { utc_msg_update_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.c b/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.c index 43179cc..92e4931 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.c +++ b/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_delete_all_msgs_in_folder.h" diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.h b/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.h index b1aaaff..13a43bb 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.h +++ b/TC/msgTC/MapiStorage/utc_msg_delete_all_msgs_in_folder.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_delete_all_msgs_in_folder_001(void); -static void utc_msg_delete_all_msgs_in_folder_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_delete_all_msgs_in_folder_001,1}, - { utc_msg_delete_all_msgs_in_folder_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_delete_all_msgs_in_folder_001(void); +static void utc_msg_delete_all_msgs_in_folder_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_delete_all_msgs_in_folder_001,1}, + { utc_msg_delete_all_msgs_in_folder_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_folder.c b/TC/msgTC/MapiStorage/utc_msg_delete_folder.c index a656d23..342308f 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_folder.c +++ b/TC/msgTC/MapiStorage/utc_msg_delete_folder.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_delete_folder.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_delete_folder_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_folder(msgHandle, 10); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_delete_folder_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_folder(NULL, 10); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_delete_folder.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_delete_folder_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_folder(msgHandle, 10); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_delete_folder_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_folder(NULL, 10); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_folder.h b/TC/msgTC/MapiStorage/utc_msg_delete_folder.h index 00dbbae..315faf2 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_folder.h +++ b/TC/msgTC/MapiStorage/utc_msg_delete_folder.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_delete_folder_001(void); -static void utc_msg_delete_folder_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_delete_folder_001,1}, - { utc_msg_delete_folder_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_delete_folder_001(void); +static void utc_msg_delete_folder_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_delete_folder_001,1}, + { utc_msg_delete_folder_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_message.c b/TC/msgTC/MapiStorage/utc_msg_delete_message.c index 5e21311..c0acaa5 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_delete_message.c @@ -1,96 +1,82 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_delete_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -int msgId = 0; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_LIST_S folder_list; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); - - msgId = msg_get_message_id(folder_list.msgInfo[0]); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_delete_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_message(msgHandle, msgId); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_delete_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_message(NULL, msgId); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_delete_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +int msgId = 0; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_LIST_S folder_list; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); + + msgId = msg_get_message_id(folder_list.msgInfo[0]); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_delete_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_message(msgHandle, msgId); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_delete_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_message(NULL, msgId); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_message.h b/TC/msgTC/MapiStorage/utc_msg_delete_message.h index 963a268..7c473a9 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_delete_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_delete_message_001(void); -static void utc_msg_delete_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_delete_message_001,1}, - { utc_msg_delete_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_delete_message_001(void); +static void utc_msg_delete_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_delete_message_001,1}, + { utc_msg_delete_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.c b/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.c index d4f0456..e3030bd 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_delete_thread_message_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_delete_thread_message_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_thread_message_list(msgHandle, 0); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_delete_thread_message_list_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_delete_thread_message_list(NULL, 0); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_delete_thread_message_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_delete_thread_message_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_thread_message_list(msgHandle, 0); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_delete_thread_message_list_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_delete_thread_message_list(NULL, 0); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.h b/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.h index ff4a17c..882be33 100755 --- a/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_delete_thread_message_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_delete_thread_message_list_001(void); -static void utc_msg_delete_thread_message_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_delete_thread_message_list_001,1}, - { utc_msg_delete_thread_message_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_delete_thread_message_list_001(void); +static void utc_msg_delete_thread_message_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_delete_thread_message_list_001,1}, + { utc_msg_delete_thread_message_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_generate_message.c b/TC/msgTC/MapiStorage/utc_msg_generate_message.c index db15d2d..4a11c7e 100755 --- a/TC/msgTC/MapiStorage/utc_msg_generate_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_generate_message.c @@ -1,79 +1,65 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_generate_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_generate_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_generate_message(msgHandle, MSG_TYPE_SMS, MSG_DRAFT_ID, 10); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_generate_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_generate_message(NULL, MSG_TYPE_SMS, MSG_DRAFT_ID, 10); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_generate_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_generate_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_generate_message(msgHandle, MSG_TYPE_SMS, MSG_DRAFT_ID, 10); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_generate_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_generate_message(NULL, MSG_TYPE_SMS, MSG_DRAFT_ID, 10); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_generate_message.h b/TC/msgTC/MapiStorage/utc_msg_generate_message.h index 199b484..a155a78 100755 --- a/TC/msgTC/MapiStorage/utc_msg_generate_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_generate_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_generate_message_001(void); -static void utc_msg_generate_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_generate_message_001,1}, - { utc_msg_generate_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_generate_message_001(void); +static void utc_msg_generate_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_generate_message_001,1}, + { utc_msg_generate_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.c b/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.c index 5acdeb4..5d3ebe8 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.c @@ -1,96 +1,82 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_get_conversation_view_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_conversation_view_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_LIST_S msg_conv_view_list; - - memset(&msg_conv_view_list, 0x00, sizeof(msg_conv_view_list)); - - err = msg_get_conversation_view_list(msgHandle, 0, &msg_conv_view_list); - msg_release_message_list(&msg_conv_view_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_conversation_view_list_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_LIST_S msg_conv_view_list; - - memset(&msg_conv_view_list, 0x00, sizeof(msg_conv_view_list)); - - err = msg_get_conversation_view_list(NULL, 0, &msg_conv_view_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_get_conversation_view_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_conversation_view_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_LIST_S msg_conv_view_list; + + memset(&msg_conv_view_list, 0x00, sizeof(msg_conv_view_list)); + + err = msg_get_conversation_view_list(msgHandle, 0, &msg_conv_view_list); + msg_release_message_list(&msg_conv_view_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_conversation_view_list_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_LIST_S msg_conv_view_list; + + memset(&msg_conv_view_list, 0x00, sizeof(msg_conv_view_list)); + + err = msg_get_conversation_view_list(NULL, 0, &msg_conv_view_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.h b/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.h index cd934e1..03bd68c 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_conversation_view_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_conversation_view_list_001(void); -static void utc_msg_get_conversation_view_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_conversation_view_list_001,1}, - { utc_msg_get_conversation_view_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_conversation_view_list_001(void); +static void utc_msg_get_conversation_view_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_conversation_view_list_001,1}, + { utc_msg_get_conversation_view_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_folder_list.c b/TC/msgTC/MapiStorage/utc_msg_get_folder_list.c index 12b601f..013d0a1 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_folder_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_folder_list.c @@ -1,97 +1,83 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_get_folder_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_folder_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_FOLDER_LIST_S folder_list; - - memset(&folder_list, 0x00, sizeof(folder_list)); - - err = msg_get_folder_list(msgHandle, &folder_list); - msg_release_folder_list(&folder_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_folder_list_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_FOLDER_LIST_S folder_list; - - memset(&folder_list, 0x00, sizeof(folder_list)); - - err = msg_get_folder_list(NULL, &folder_list); - msg_release_folder_list(&folder_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_get_folder_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_folder_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_FOLDER_LIST_S folder_list; + + memset(&folder_list, 0x00, sizeof(folder_list)); + + err = msg_get_folder_list(msgHandle, &folder_list); + msg_release_folder_list(&folder_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_folder_list_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_FOLDER_LIST_S folder_list; + + memset(&folder_list, 0x00, sizeof(folder_list)); + + err = msg_get_folder_list(NULL, &folder_list); + msg_release_folder_list(&folder_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_folder_list.h b/TC/msgTC/MapiStorage/utc_msg_get_folder_list.h index bc1bbbf..d5ab1c6 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_folder_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_folder_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_folder_list_001(void); -static void utc_msg_get_folder_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_folder_list_001,1}, - { utc_msg_get_folder_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_folder_list_001(void); +static void utc_msg_get_folder_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_folder_list_001,1}, + { utc_msg_get_folder_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.c b/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.c index d9edaec..27385ea 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.c @@ -1,100 +1,86 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_get_folder_view_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_folder_view_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - MSG_LIST_S msg_folder_view_list; - - memset(&sort_rule, 0x00, sizeof(sort_rule)); - memset(&msg_folder_view_list, 0x00, sizeof(msg_folder_view_list)); - - err = msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, &sort_rule, &msg_folder_view_list); - msg_release_message_list(&msg_folder_view_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_folder_view_list_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - MSG_LIST_S msg_folder_view_list; - - memset(&sort_rule, 0x00, sizeof(sort_rule)); - memset(&msg_folder_view_list, 0x00, sizeof(msg_folder_view_list)); - - err = msg_get_folder_view_list(NULL, MSG_DRAFT_ID, &sort_rule, &msg_folder_view_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_get_folder_view_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_folder_view_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + MSG_LIST_S msg_folder_view_list; + + memset(&sort_rule, 0x00, sizeof(sort_rule)); + memset(&msg_folder_view_list, 0x00, sizeof(msg_folder_view_list)); + + err = msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, &sort_rule, &msg_folder_view_list); + msg_release_message_list(&msg_folder_view_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_folder_view_list_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + MSG_LIST_S msg_folder_view_list; + + memset(&sort_rule, 0x00, sizeof(sort_rule)); + memset(&msg_folder_view_list, 0x00, sizeof(msg_folder_view_list)); + + err = msg_get_folder_view_list(NULL, MSG_DRAFT_ID, &sort_rule, &msg_folder_view_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.h b/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.h index f9c005a..1583443 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_folder_view_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_folder_view_list_001(void); -static void utc_msg_get_folder_view_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_folder_view_list_001,1}, - { utc_msg_get_folder_view_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_folder_view_list_001(void); +static void utc_msg_get_folder_view_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_folder_view_list_001,1}, + { utc_msg_get_folder_view_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_mem_size.c b/TC/msgTC/MapiStorage/utc_msg_get_mem_size.c index 9d3af3c..b37bd32 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_mem_size.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_mem_size.c @@ -1,91 +1,77 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_mem_size.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_mem_size_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - int memsize = 0; - - err = msg_get_mem_size(msgHandle, &memsize); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_mem_size_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - int memsize = 0; - - err = msg_get_mem_size(NULL, &memsize); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_mem_size.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_mem_size_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + int memsize = 0; + + err = msg_get_mem_size(msgHandle, &memsize); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_mem_size_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + int memsize = 0; + + err = msg_get_mem_size(NULL, &memsize); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_mem_size.h b/TC/msgTC/MapiStorage/utc_msg_get_mem_size.h index 7c07ee4..3240db4 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_mem_size.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_mem_size.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_mem_size_001(void); -static void utc_msg_get_mem_size_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_mem_size_001,1}, - { utc_msg_get_mem_size_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_mem_size_001(void); +static void utc_msg_get_mem_size_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_mem_size_001,1}, + { utc_msg_get_mem_size_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_message.c b/TC/msgTC/MapiStorage/utc_msg_get_message.c index 35b03ed..c970350 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_message.c @@ -1,96 +1,82 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_get_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -int msgId = 0; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_LIST_S folder_list; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); - - msgId = msg_get_message_id(folder_list.msgInfo[0]); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message(msgHandle, msgId, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_message(NULL, msgId, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_get_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +int msgId = 0; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_LIST_S folder_list; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); + + msgId = msg_get_message_id(folder_list.msgInfo[0]); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message(msgHandle, msgId, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_message(NULL, msgId, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_message.h b/TC/msgTC/MapiStorage/utc_msg_get_message.h index 8b72a2a..ca306f0 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_message_001(void); -static void utc_msg_get_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_message_001,1}, - { utc_msg_get_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_message_001(void); +static void utc_msg_get_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_message_001,1}, + { utc_msg_get_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.c b/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.c index 5abe218..bdee02b 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.c @@ -1,90 +1,76 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_get_quick_panel_data.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_quick_panel_data_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - //err = msg_get_quick_panel_data(msgHandle, MSG_QUICKPANEL_SMS, msgInfo); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_quick_panel_data_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_get_quick_panel_data(NULL, MSG_QUICKPANEL_SMS, msgInfo); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_get_quick_panel_data.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_quick_panel_data_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + //err = msg_get_quick_panel_data(msgHandle, MSG_QUICKPANEL_SMS, msgInfo); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_quick_panel_data_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_get_quick_panel_data(NULL, MSG_QUICKPANEL_SMS, msgInfo); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.h b/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.h index f5dbc1b..fb9eb92 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_quick_panel_data.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_quick_panel_data_001(void); -static void utc_msg_get_quick_panel_data_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_quick_panel_data_001,1}, - { utc_msg_get_quick_panel_data_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_quick_panel_data_001(void); +static void utc_msg_get_quick_panel_data_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_quick_panel_data_001,1}, + { utc_msg_get_quick_panel_data_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.c b/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.c index f89258c..966f122 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.c @@ -1,101 +1,87 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_get_thread_view_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_get_thread_view_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - - memset(&sort_rule, 0x00, sizeof(sort_rule)); - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - - err = msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); - msg_release_thread_view_list(&msg_thread_view_list); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_get_thread_view_list_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - - memset(&sort_rule, 0x00, sizeof(sort_rule)); - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - - err = msg_get_thread_view_list(NULL, &sort_rule, &msg_thread_view_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_get_thread_view_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_get_thread_view_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + + memset(&sort_rule, 0x00, sizeof(sort_rule)); + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + + err = msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); + msg_release_thread_view_list(&msg_thread_view_list); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_get_thread_view_list_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + + memset(&sort_rule, 0x00, sizeof(sort_rule)); + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + + err = msg_get_thread_view_list(NULL, &sort_rule, &msg_thread_view_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.h b/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.h index b3c3c72..202eb0a 100755 --- a/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_get_thread_view_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_get_thread_view_list_001(void); -static void utc_msg_get_thread_view_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_get_thread_view_list_001,1}, - { utc_msg_get_thread_view_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_get_thread_view_list_001(void); +static void utc_msg_get_thread_view_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_get_thread_view_list_001,1}, + { utc_msg_get_thread_view_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.c b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.c index e4052f3..cc8cf47 100755 --- a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.c +++ b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_move_msg_to_folder.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_move_msg_to_folder_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_move_msg_to_folder(msgHandle, 0, MSG_DRAFT_ID); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_move_msg_to_folder_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_move_msg_to_folder(NULL, 0, MSG_DRAFT_ID); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_move_msg_to_folder.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_move_msg_to_folder_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_move_msg_to_folder(msgHandle, 0, MSG_DRAFT_ID); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_move_msg_to_folder_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_move_msg_to_folder(NULL, 0, MSG_DRAFT_ID); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.h b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.h index 25220de..0094958 100755 --- a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.h +++ b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_folder.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_move_msg_to_folder_001(void); -static void utc_msg_move_msg_to_folder_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_move_msg_to_folder_001,1}, - { utc_msg_move_msg_to_folder_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_move_msg_to_folder_001(void); +static void utc_msg_move_msg_to_folder_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_move_msg_to_folder_001,1}, + { utc_msg_move_msg_to_folder_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.c b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.c index d4fbd71..14ed023 100755 --- a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.c +++ b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_move_msg_to_storage.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_move_msg_to_storage_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_message(msgHandle, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_move_msg_to_storage_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_message(NULL, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_move_msg_to_storage.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_move_msg_to_storage_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_message(msgHandle, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_move_msg_to_storage_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_message(NULL, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.h b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.h index 2b57cfe..8e7d49d 100755 --- a/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.h +++ b/TC/msgTC/MapiStorage/utc_msg_move_msg_to_storage.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_move_msg_to_storage_001(void); -static void utc_msg_move_msg_to_storage_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_move_msg_to_storage_001,1}, - { utc_msg_move_msg_to_storage_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_move_msg_to_storage_001(void); +static void utc_msg_move_msg_to_storage_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_move_msg_to_storage_001,1}, + { utc_msg_move_msg_to_storage_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_release_folder_list.c b/TC/msgTC/MapiStorage/utc_msg_release_folder_list.c index eb7a0be..1bd42b5 100755 --- a/TC/msgTC/MapiStorage/utc_msg_release_folder_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_release_folder_list.c @@ -1,97 +1,83 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_release_folder_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_release_folder_list_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_FOLDER_LIST_S folder_list; - - memset(&folder_list, 0x00, sizeof(folder_list)); - - msg_get_folder_list(msgHandle, &folder_list); - msg_release_folder_list(&folder_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_release_folder_list_002() -{ - MSG_ERROR_T err = -1; - MSG_FOLDER_LIST_S folder_list; - - memset(&folder_list, 0x00, sizeof(folder_list)); - - //err = msg_get_folder_list(NULL, &folder_list); - //msg_release_folder_list(&folder_list); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_release_folder_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_release_folder_list_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_FOLDER_LIST_S folder_list; + + memset(&folder_list, 0x00, sizeof(folder_list)); + + msg_get_folder_list(msgHandle, &folder_list); + msg_release_folder_list(&folder_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_release_folder_list_002() +{ + MSG_ERROR_T err = -1; + MSG_FOLDER_LIST_S folder_list; + + memset(&folder_list, 0x00, sizeof(folder_list)); + + //err = msg_get_folder_list(NULL, &folder_list); + //msg_release_folder_list(&folder_list); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_release_folder_list.h b/TC/msgTC/MapiStorage/utc_msg_release_folder_list.h index 7e428a2..c863572 100755 --- a/TC/msgTC/MapiStorage/utc_msg_release_folder_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_release_folder_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_release_folder_list_001(void); -static void utc_msg_release_folder_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_release_folder_list_001,1}, - { utc_msg_release_folder_list_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_release_folder_list_001(void); +static void utc_msg_release_folder_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_release_folder_list_001,1}, + { utc_msg_release_folder_list_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.c b/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.c index 07411cf..8708f37 100755 --- a/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.c +++ b/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.c @@ -1,97 +1,83 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_release_thread_view_list.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_release_thread_view_list_001() -{ - int err = MSG_SUCCESS; - - //msg_release_thread_view_list(&msg_thread_view_list); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_release_thread_view_list_002() -{ - int err = -1; - - //msg_release_thread_view_list(&msg_thread_view_list); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_release_thread_view_list.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_release_thread_view_list_001() +{ + int err = MSG_SUCCESS; + + //msg_release_thread_view_list(&msg_thread_view_list); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_release_thread_view_list_002() +{ + int err = -1; + + //msg_release_thread_view_list(&msg_thread_view_list); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.h b/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.h index a7543cb..2186269 100755 --- a/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.h +++ b/TC/msgTC/MapiStorage/utc_msg_release_thread_view_list.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_release_thread_view_list_001(void); -static void utc_msg_release_thread_view_list_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_release_thread_view_list_001,1}, - { utc_msg_release_thread_view_list_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_release_thread_view_list_001(void); +static void utc_msg_release_thread_view_list_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_release_thread_view_list_001,1}, + { utc_msg_release_thread_view_list_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiStorage/utc_msg_reset_database.c b/TC/msgTC/MapiStorage/utc_msg_reset_database.c index 44ae225..d4ae485 100755 --- a/TC/msgTC/MapiStorage/utc_msg_reset_database.c +++ b/TC/msgTC/MapiStorage/utc_msg_reset_database.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reset_database.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reset_database_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_reset_database(msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reset_database_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_reset_database(NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reset_database.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reset_database_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_reset_database(msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reset_database_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_reset_database(NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_reset_database.h b/TC/msgTC/MapiStorage/utc_msg_reset_database.h index bc6c832..6e06586 100755 --- a/TC/msgTC/MapiStorage/utc_msg_reset_database.h +++ b/TC/msgTC/MapiStorage/utc_msg_reset_database.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_reset_database_001(void); -static void utc_msg_reset_database_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reset_database_001,1}, - { utc_msg_reset_database_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_reset_database_001(void); +static void utc_msg_reset_database_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reset_database_001,1}, + { utc_msg_reset_database_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.c index b48ba8e..eda8e45 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.c @@ -1,105 +1,91 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_address.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_address_001() -{ - int err = MSG_SUCCESS; - char* addr = NULL; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - addr = msg_thread_view_get_address(msg_thread_view_list.msgThreadInfo[0]); - if (addr == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_address_002() -{ - int err = MSG_SUCCESS; - char* addr = NULL; - - addr = msg_thread_view_get_address(NULL); - if (addr == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_address.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_address_001() +{ + int err = MSG_SUCCESS; + char* addr = NULL; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + addr = msg_thread_view_get_address(msg_thread_view_list.msgThreadInfo[0]); + if (addr == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_address_002() +{ + int err = MSG_SUCCESS; + char* addr = NULL; + + addr = msg_thread_view_get_address(NULL); + if (addr == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.h index ae1fc2f..cdc7d89 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_address.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_address_001(void); -static void utc_msg_thread_view_get_address_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_address_001,1}, - { utc_msg_thread_view_get_address_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_address_001(void); +static void utc_msg_thread_view_get_address_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_address_001,1}, + { utc_msg_thread_view_get_address_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.c index 6b4f6a8..85c3953 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_contact_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_contact_id_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_contact_id(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_contact_id_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_contact_id(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_contact_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_contact_id_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_contact_id(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_contact_id_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_contact_id(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.h index cba7ba5..76f23dc 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_contact_id.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_contact_id_001(void); -static void utc_msg_thread_view_get_contact_id_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_contact_id_001,1}, - { utc_msg_thread_view_get_contact_id_002,2}, - {NULL,0} +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_contact_id_001(void); +static void utc_msg_thread_view_get_contact_id_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_contact_id_001,1}, + { utc_msg_thread_view_get_contact_id_002,2}, + {NULL,0} }; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.c index f750d29..84d2f11 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.c @@ -1,105 +1,91 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_data.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_data_001() -{ - int err = MSG_SUCCESS; - char* data = NULL; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - data = msg_thread_view_get_data(msg_thread_view_list.msgThreadInfo[0]); - if (data == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_data_002() -{ - int err = MSG_SUCCESS; - char* data = NULL; - - data = msg_thread_view_get_data(NULL); - if (data == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_data.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_data_001() +{ + int err = MSG_SUCCESS; + char* data = NULL; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + data = msg_thread_view_get_data(msg_thread_view_list.msgThreadInfo[0]); + if (data == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_data_002() +{ + int err = MSG_SUCCESS; + char* data = NULL; + + data = msg_thread_view_get_data(NULL); + if (data == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.h index 73d8b74..8827b32 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_data.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_data_001(void); -static void utc_msg_thread_view_get_data_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_data_001,1}, - { utc_msg_thread_view_get_data_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_data_001(void); +static void utc_msg_thread_view_get_data_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_data_001,1}, + { utc_msg_thread_view_get_data_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.c index c26f4de..c6a1911 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_direction.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_direction_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_direction(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_direction_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_direction(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_direction.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_direction_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_direction(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_direction_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_direction(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.h index 9f4a4c1..a6617e9 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_direction.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_direction_001(void); -static void utc_msg_thread_view_get_direction_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_direction_001,1}, - { utc_msg_thread_view_get_direction_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_direction_001(void); +static void utc_msg_thread_view_get_direction_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_direction_001,1}, + { utc_msg_thread_view_get_direction_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.c index aab8e89..c69409f 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.c @@ -1,105 +1,91 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_image_path.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_image_path_001() -{ - int err = MSG_SUCCESS; - char* path = NULL; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - path = msg_thread_view_get_image_path(msg_thread_view_list.msgThreadInfo[0]); - if (path == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_image_path_002() -{ - int err = MSG_SUCCESS; - char* path = NULL; - - path = msg_thread_view_get_image_path(NULL); - if (path == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_image_path.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_image_path_001() +{ + int err = MSG_SUCCESS; + char* path = NULL; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + path = msg_thread_view_get_image_path(msg_thread_view_list.msgThreadInfo[0]); + if (path == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_image_path_002() +{ + int err = MSG_SUCCESS; + char* path = NULL; + + path = msg_thread_view_get_image_path(NULL); + if (path == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.h index c9db1a1..9838046 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_image_path.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_image_path_001(void); -static void utc_msg_thread_view_get_image_path_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_image_path_001,1}, - { utc_msg_thread_view_get_image_path_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_image_path_001(void); +static void utc_msg_thread_view_get_image_path_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_image_path_001,1}, + { utc_msg_thread_view_get_image_path_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.c index 8923efb..919942c 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_mms_cnt.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_mms_cnt_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_mms_cnt(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_mms_cnt_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_mms_cnt(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_mms_cnt.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_mms_cnt_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_mms_cnt(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_mms_cnt_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_mms_cnt(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.h index 0239710..6b1242b 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_mms_cnt.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_mms_cnt_001(void); -static void utc_msg_thread_view_get_mms_cnt_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_mms_cnt_001,1}, - { utc_msg_thread_view_get_mms_cnt_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_mms_cnt_001(void); +static void utc_msg_thread_view_get_mms_cnt_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_mms_cnt_001,1}, + { utc_msg_thread_view_get_mms_cnt_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.c index 73f4813..8ab0924 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.c @@ -1,105 +1,91 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_name.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_name_001() -{ - int err = MSG_SUCCESS; - char* name = NULL; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - name = msg_thread_view_get_name(msg_thread_view_list.msgThreadInfo[0]); - if (name == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_name_002() -{ - int err = MSG_SUCCESS; - char* name = NULL; - - name = msg_thread_view_get_name(NULL); - if (name == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_name.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_name_001() +{ + int err = MSG_SUCCESS; + char* name = NULL; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + name = msg_thread_view_get_name(msg_thread_view_list.msgThreadInfo[0]); + if (name == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_name_002() +{ + int err = MSG_SUCCESS; + char* name = NULL; + + name = msg_thread_view_get_name(NULL); + if (name == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.h index 0c0150e..9ee322f 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_name.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_name_001(void); -static void utc_msg_thread_view_get_name_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_name_001,1}, - { utc_msg_thread_view_get_name_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_name_001(void); +static void utc_msg_thread_view_get_name_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_name_001,1}, + { utc_msg_thread_view_get_name_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.c index 0ececc0..7fec174 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_sms_cnt.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_sms_cnt_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_sms_cnt(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_sms_cnt_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_sms_cnt(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_sms_cnt.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_sms_cnt_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_sms_cnt(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_sms_cnt_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_sms_cnt(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.h index f3a2a78..b678862 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_sms_cnt.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_sms_cnt_001(void); -static void utc_msg_thread_view_get_sms_cnt_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_sms_cnt_001,1}, - { utc_msg_thread_view_get_sms_cnt_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_sms_cnt_001(void); +static void utc_msg_thread_view_get_sms_cnt_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_sms_cnt_001,1}, + { utc_msg_thread_view_get_sms_cnt_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.c index 48b49b0..75e4ac6 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_thread_id.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_thread_id_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_thread_id(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_thread_id_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_thread_id(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_thread_id.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_thread_id_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_thread_id(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_thread_id_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_thread_id(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.h index af95bc4..a1b3587 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_thread_id.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_thread_id_001(void); -static void utc_msg_thread_view_get_thread_id_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_thread_id_001,1}, - { utc_msg_thread_view_get_thread_id_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_thread_id_001(void); +static void utc_msg_thread_view_get_thread_id_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_thread_id_001,1}, + { utc_msg_thread_view_get_thread_id_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.c index db81961..2759293 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.c @@ -1,105 +1,91 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_time.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_time_001() -{ - int err = MSG_SUCCESS; - time_t* time = NULL; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - time = msg_thread_view_get_time(msg_thread_view_list.msgThreadInfo[0]); - if (time == NULL) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_time_002() -{ - int err = MSG_SUCCESS; - time_t* time = NULL; - - time = msg_thread_view_get_time(NULL); - if (time == NULL) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_time.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_time_001() +{ + int err = MSG_SUCCESS; + time_t* time = NULL; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + time = msg_thread_view_get_time(msg_thread_view_list.msgThreadInfo[0]); + if (time == NULL) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_time_002() +{ + int err = MSG_SUCCESS; + time_t* time = NULL; + + time = msg_thread_view_get_time(NULL); + if (time == NULL) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.h index c5dee20..8b5e190 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_time.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_time_001(void); -static void utc_msg_thread_view_get_time_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_time_001,1}, - { utc_msg_thread_view_get_time_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_time_001(void); +static void utc_msg_thread_view_get_time_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_time_001,1}, + { utc_msg_thread_view_get_time_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.c b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.c index bec6c06..d2d87d9 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.c +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.c @@ -1,103 +1,89 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_thread_view_get_unread_cnt.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -MSG_THREAD_VIEW_LIST_S msg_thread_view_list; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); - - memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); - memset(&sort_rule, 0x00, sizeof(sort_rule)); - - msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); -} -void cleanup(void) -{ - msg_release_thread_view_list(&msg_thread_view_list); - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_thread_view_get_unread_cnt_001() -{ - int err = MSG_SUCCESS; - - if(msg_thread_view_list.nCount == 0) - { - tet_result(TET_PASS); - return; - } - - err = msg_thread_view_get_unread_cnt(msg_thread_view_list.msgThreadInfo[0]); - if (err < MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_thread_view_get_unread_cnt_002() -{ - int err = MSG_SUCCESS; - - err = msg_thread_view_get_unread_cnt(NULL); - if (err < MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_thread_view_get_unread_cnt.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +MSG_THREAD_VIEW_LIST_S msg_thread_view_list; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); + + memset(&msg_thread_view_list, 0x00, sizeof(msg_thread_view_list)); + memset(&sort_rule, 0x00, sizeof(sort_rule)); + + msg_get_thread_view_list(msgHandle, NULL, &msg_thread_view_list); +} +void cleanup(void) +{ + msg_release_thread_view_list(&msg_thread_view_list); + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_thread_view_get_unread_cnt_001() +{ + int err = MSG_SUCCESS; + + if(msg_thread_view_list.nCount == 0) + { + tet_result(TET_PASS); + return; + } + + err = msg_thread_view_get_unread_cnt(msg_thread_view_list.msgThreadInfo[0]); + if (err < MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_thread_view_get_unread_cnt_002() +{ + int err = MSG_SUCCESS; + + err = msg_thread_view_get_unread_cnt(NULL); + if (err < MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.h b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.h index 14e2014..0bc8c6b 100755 --- a/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.h +++ b/TC/msgTC/MapiStorage/utc_msg_thread_view_get_unread_cnt.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_thread_view_get_unread_cnt_001(void); -static void utc_msg_thread_view_get_unread_cnt_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_thread_view_get_unread_cnt_001,1}, - { utc_msg_thread_view_get_unread_cnt_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_thread_view_get_unread_cnt_001(void); +static void utc_msg_thread_view_get_unread_cnt_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_thread_view_get_unread_cnt_001,1}, + { utc_msg_thread_view_get_unread_cnt_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_update_folder.c b/TC/msgTC/MapiStorage/utc_msg_update_folder.c index 806fa79..de1bda3 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_folder.c +++ b/TC/msgTC/MapiStorage/utc_msg_update_folder.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_update_folder.h" diff --git a/TC/msgTC/MapiStorage/utc_msg_update_folder.h b/TC/msgTC/MapiStorage/utc_msg_update_folder.h index 76f53bb..79d66de 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_folder.h +++ b/TC/msgTC/MapiStorage/utc_msg_update_folder.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_update_folder_001(void); -static void utc_msg_update_folder_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_update_folder_001,1}, - { utc_msg_update_folder_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_update_folder_001(void); +static void utc_msg_update_folder_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_update_folder_001,1}, + { utc_msg_update_folder_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_update_message.c b/TC/msgTC/MapiStorage/utc_msg_update_message.c index e7b8b69..27cee62 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_message.c +++ b/TC/msgTC/MapiStorage/utc_msg_update_message.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_update_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_update_message_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_message(msgHandle, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_update_message_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_message(NULL, msgInfo, &sendOpt); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_update_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_update_message_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_message(msgHandle, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_update_message_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_message(NULL, msgInfo, &sendOpt); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_update_message.h b/TC/msgTC/MapiStorage/utc_msg_update_message.h index bad318b..2eb70cc 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_message.h +++ b/TC/msgTC/MapiStorage/utc_msg_update_message.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_update_message_001(void); -static void utc_msg_update_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_update_message_001,1}, - { utc_msg_update_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_update_message_001(void); +static void utc_msg_update_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_update_message_001,1}, + { utc_msg_update_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_update_protected_status.c b/TC/msgTC/MapiStorage/utc_msg_update_protected_status.c index 36caa95..94889f2 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_protected_status.c +++ b/TC/msgTC/MapiStorage/utc_msg_update_protected_status.c @@ -1,89 +1,75 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_update_protected_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_message(msgHandle, msgInfo, &sendOpt); - - msg_set_message_id(msgInfo, 0); -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_update_protected_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_protected_status(msgHandle, 0, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_update_protected_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_protected_status(NULL, 0, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_update_protected_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_message(msgHandle, msgInfo, &sendOpt); + + msg_set_message_id(msgInfo, 0); +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_update_protected_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_protected_status(msgHandle, 0, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_update_protected_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_protected_status(NULL, 0, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_update_protected_status.h b/TC/msgTC/MapiStorage/utc_msg_update_protected_status.h index 390a8c0..a53b18f 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_protected_status.h +++ b/TC/msgTC/MapiStorage/utc_msg_update_protected_status.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_update_protected_status_001(void); -static void utc_msg_update_protected_status_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_update_protected_status_001,1}, - { utc_msg_update_protected_status_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_update_protected_status_001(void); +static void utc_msg_update_protected_status_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_update_protected_status_001,1}, + { utc_msg_update_protected_status_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiStorage/utc_msg_update_read_status.c b/TC/msgTC/MapiStorage/utc_msg_update_read_status.c index c41da01..a529c4c 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_read_status.c +++ b/TC/msgTC/MapiStorage/utc_msg_update_read_status.c @@ -1,98 +1,84 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_update_read_status.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; -int msgId = 0; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msgInfo = msg_new_message(); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; - - msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); - - msgId = msg_add_message(msgHandle, msgInfo, &sendOpt); - - tet_printf("msgId is [%d]", msgId); - - //msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); - - //msgId = msg_folder_view_get_message_id(folder_list.msgCommInfo[0]); - -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_update_read_status_001() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_read_status(msgHandle, msgId, true); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_update_read_status_002() -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_update_read_status(NULL, msgId, true); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_update_read_status.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; +int msgId = 0; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msgInfo = msg_new_message(); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; + + msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); + + msgId = msg_add_message(msgHandle, msgInfo, &sendOpt); + + tet_printf("msgId is [%d]", msgId); + + //msg_get_folder_view_list(msgHandle, MSG_DRAFT_ID, NULL, &folder_list); + + //msgId = msg_folder_view_get_message_id(folder_list.msgCommInfo[0]); + +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_update_read_status_001() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_read_status(msgHandle, msgId, true); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_update_read_status_002() +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_update_read_status(NULL, msgId, true); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiStorage/utc_msg_update_read_status.h b/TC/msgTC/MapiStorage/utc_msg_update_read_status.h index 878ace1..93b8af3 100755 --- a/TC/msgTC/MapiStorage/utc_msg_update_read_status.h +++ b/TC/msgTC/MapiStorage/utc_msg_update_read_status.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiStorage.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_update_read_status_001(void); -static void utc_msg_update_read_status_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_update_read_status_001,1}, - { utc_msg_update_read_status_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiStorage.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_update_read_status_001(void); +static void utc_msg_update_read_status_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_update_read_status_001,1}, + { utc_msg_update_read_status_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.c b/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.c index a8fc4aa..799719f 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.c +++ b/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_forward_message.h" diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.h b/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.h index c76fb42..fc4a885 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.h +++ b/TC/msgTC/MapiTransport/utc_msg_mms_forward_message.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_mms_forward_message_001(void); -static void utc_msg_mms_forward_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_mms_forward_message_001,1}, - { utc_msg_mms_forward_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_mms_forward_message_001(void); +static void utc_msg_mms_forward_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_mms_forward_message_001,1}, + { utc_msg_mms_forward_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.c b/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.c index 3b3aa33..a48878a 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.c +++ b/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_reject_message.h" diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.h b/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.h index d96637e..456eae5 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.h +++ b/TC/msgTC/MapiTransport/utc_msg_mms_reject_message.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_mms_reject_message_001(void); -static void utc_msg_mms_reject_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_mms_reject_message_001,1}, - { utc_msg_mms_reject_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_mms_reject_message_001(void); +static void utc_msg_mms_reject_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_mms_reject_message_001,1}, + { utc_msg_mms_reject_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.c b/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.c index 9c8e583..693931c 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.c +++ b/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_retrieve_message.h" diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.h b/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.h index e762a2f..77ecfb4 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.h +++ b/TC/msgTC/MapiTransport/utc_msg_mms_retrieve_message.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_mms_retrieve_message_001(void); -static void utc_msg_mms_retrieve_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_mms_retrieve_message_001,1}, - { utc_msg_mms_retrieve_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_mms_retrieve_message_001(void); +static void utc_msg_mms_retrieve_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_mms_retrieve_message_001,1}, + { utc_msg_mms_retrieve_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_send_message.c b/TC/msgTC/MapiTransport/utc_msg_mms_send_message.c index 8fc22b1..6016f03 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_send_message.c +++ b/TC/msgTC/MapiTransport/utc_msg_mms_send_message.c @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "utc_msg_mms_send_message.h" diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_send_message.h b/TC/msgTC/MapiTransport/utc_msg_mms_send_message.h index 8d40289..a4d1335 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_send_message.h +++ b/TC/msgTC/MapiTransport/utc_msg_mms_send_message.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_mms_send_message_001(void); -static void utc_msg_mms_send_message_001(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_mms_send_message_001,1}, - { utc_msg_mms_send_message_001,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_mms_send_message_001(void); +static void utc_msg_mms_send_message_001(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_mms_send_message_001,1}, + { utc_msg_mms_send_message_001,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.c b/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.c index 21cc335..f058f95 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.c +++ b/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.c @@ -1,79 +1,65 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_mms_send_read_report.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_mms_send_read_report_001() -{ - int err = MSG_SUCCESS; - - //err = msg_mms_send_read_report(msgHandle, 0, MSG_READ_REPORT_IS_READ); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_mms_send_read_report_002() -{ - int err = MSG_SUCCESS; - - err = msg_mms_send_read_report(NULL, 0, MSG_READ_REPORT_IS_READ); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_mms_send_read_report.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_mms_send_read_report_001() +{ + int err = MSG_SUCCESS; + + //err = msg_mms_send_read_report(msgHandle, 0, MSG_READ_REPORT_IS_READ); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_mms_send_read_report_002() +{ + int err = MSG_SUCCESS; + + err = msg_mms_send_read_report(NULL, 0, MSG_READ_REPORT_IS_READ); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.h b/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.h index 4ea9451..81a816d 100755 --- a/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.h +++ b/TC/msgTC/MapiTransport/utc_msg_mms_send_read_report.h @@ -1,50 +1,36 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -static void utc_msg_mms_send_read_report_001(void); -static void utc_msg_mms_send_read_report_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_mms_send_read_report_001,1}, - { utc_msg_mms_send_read_report_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +static void utc_msg_mms_send_read_report_001(void); +static void utc_msg_mms_send_read_report_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_mms_send_read_report_001,1}, + { utc_msg_mms_send_read_report_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.c b/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.c index 13ea5e9..bae0855 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.c +++ b/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reg_lbs_message_callback.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void lbsCB(MSG_HANDLE_T hMsgHandle, const char* pPushHeader, const char* pPushBody, int pushBodyLen, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reg_lbs_message_callback_001() -{ - int err = MSG_SUCCESS; - - err = msg_reg_lbs_message_callback(msgHandle, &lbsCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reg_lbs_message_callback_002() -{ - int err = MSG_SUCCESS; - - err = msg_reg_lbs_message_callback(NULL, &lbsCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reg_lbs_message_callback.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void lbsCB(MSG_HANDLE_T hMsgHandle, const char* pPushHeader, const char* pPushBody, int pushBodyLen, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reg_lbs_message_callback_001() +{ + int err = MSG_SUCCESS; + + err = msg_reg_lbs_message_callback(msgHandle, &lbsCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reg_lbs_message_callback_002() +{ + int err = MSG_SUCCESS; + + err = msg_reg_lbs_message_callback(NULL, &lbsCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.h b/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.h index ff492e9..21c15cc 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.h +++ b/TC/msgTC/MapiTransport/utc_msg_reg_lbs_message_callback.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void lbsCB(MSG_HANDLE_T hMsgHandle, const char* pPushHeader, const char* pPushBody, int pushBodyLen, void *pUserParam); -static void utc_msg_reg_lbs_message_callback_001(void); -static void utc_msg_reg_lbs_message_callback_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reg_lbs_message_callback_001,1}, - { utc_msg_reg_lbs_message_callback_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void lbsCB(MSG_HANDLE_T hMsgHandle, const char* pPushHeader, const char* pPushBody, int pushBodyLen, void *pUserParam); +static void utc_msg_reg_lbs_message_callback_001(void); +static void utc_msg_reg_lbs_message_callback_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reg_lbs_message_callback_001,1}, + { utc_msg_reg_lbs_message_callback_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.c b/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.c index a265db1..1210a8b 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.c +++ b/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reg_mms_conf_message_callback.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void incomingMmsConfCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reg_mms_conf_message_callback_001() -{ - int err = MSG_SUCCESS; - - err = msg_reg_mms_conf_message_callback(msgHandle, &incomingMmsConfCB, NULL, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reg_mms_conf_message_callback_002() -{ - int err = MSG_SUCCESS; - - err = msg_reg_mms_conf_message_callback(NULL, &incomingMmsConfCB, NULL, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reg_mms_conf_message_callback.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void incomingMmsConfCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reg_mms_conf_message_callback_001() +{ + int err = MSG_SUCCESS; + + err = msg_reg_mms_conf_message_callback(msgHandle, &incomingMmsConfCB, NULL, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reg_mms_conf_message_callback_002() +{ + int err = MSG_SUCCESS; + + err = msg_reg_mms_conf_message_callback(NULL, &incomingMmsConfCB, NULL, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.h b/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.h index f5a2ba0..aca4584 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.h +++ b/TC/msgTC/MapiTransport/utc_msg_reg_mms_conf_message_callback.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void incomingMmsConfCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam); -static void utc_msg_reg_mms_conf_message_callback_001(void); -static void utc_msg_reg_mms_conf_message_callback_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reg_mms_conf_message_callback_001,1}, - { utc_msg_reg_mms_conf_message_callback_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void incomingMmsConfCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam); +static void utc_msg_reg_mms_conf_message_callback_001(void); +static void utc_msg_reg_mms_conf_message_callback_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reg_mms_conf_message_callback_001,1}, + { utc_msg_reg_mms_conf_message_callback_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.c b/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.c index 41c9837..61c6429 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.c +++ b/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reg_sent_status_callback.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reg_sent_status_callback_001() -{ - int err = MSG_SUCCESS; - - err = msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reg_sent_status_callback_002() -{ - int err = MSG_SUCCESS; - - err = msg_reg_sent_status_callback(NULL, &sentStatusCB, (void*)"sent status callback"); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reg_sent_status_callback.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reg_sent_status_callback_001() +{ + int err = MSG_SUCCESS; + + err = msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reg_sent_status_callback_002() +{ + int err = MSG_SUCCESS; + + err = msg_reg_sent_status_callback(NULL, &sentStatusCB, (void*)"sent status callback"); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.h b/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.h index c364286..300a5b8 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.h +++ b/TC/msgTC/MapiTransport/utc_msg_reg_sent_status_callback.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_reg_sent_status_callback_001(void); -static void utc_msg_reg_sent_status_callback_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reg_sent_status_callback_001,1}, - { utc_msg_reg_sent_status_callback_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_reg_sent_status_callback_001(void); +static void utc_msg_reg_sent_status_callback_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reg_sent_status_callback_001,1}, + { utc_msg_reg_sent_status_callback_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.c b/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.c index cef3cdf..ce8a0ce 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.c +++ b/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.c @@ -1,84 +1,70 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reg_sms_message_callback.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void incomingSmsCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam) -{ - return; -} - - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reg_sms_message_callback_001() -{ - int err = MSG_SUCCESS; - - err = msg_reg_sms_message_callback(msgHandle, &incomingSmsCB, 0, (void*)"sms message callback"); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reg_sms_message_callback_002() -{ - int err = MSG_SUCCESS; - - err = msg_reg_sms_message_callback(NULL, &incomingSmsCB, 0, (void*)"sms message callback"); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reg_sms_message_callback.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void incomingSmsCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam) +{ + return; +} + + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reg_sms_message_callback_001() +{ + int err = MSG_SUCCESS; + + err = msg_reg_sms_message_callback(msgHandle, &incomingSmsCB, 0, (void*)"sms message callback"); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reg_sms_message_callback_002() +{ + int err = MSG_SUCCESS; + + err = msg_reg_sms_message_callback(NULL, &incomingSmsCB, 0, (void*)"sms message callback"); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.h b/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.h index 4cae476..644ccd9 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.h +++ b/TC/msgTC/MapiTransport/utc_msg_reg_sms_message_callback.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void incomingSmsCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam); -static void utc_msg_reg_sms_message_callback_001(void); -static void utc_msg_reg_sms_message_callback_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reg_sms_message_callback_001,1}, - { utc_msg_reg_sms_message_callback_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void incomingSmsCB(MSG_HANDLE_T Handle, msg_message_t msg, void *pUserParam); +static void utc_msg_reg_sms_message_callback_001(void); +static void utc_msg_reg_sms_message_callback_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reg_sms_message_callback_001,1}, + { utc_msg_reg_sms_message_callback_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.c b/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.c index 1bd26ef..1fa579f 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.c +++ b/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.c @@ -1,83 +1,69 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_reg_syncml_message_callback.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void syncMLCB(MSG_HANDLE_T hMsgHandle, MSG_SYNCML_MESSAGE_TYPE_T msgType, const char* pPushHeader, int PushHeaderLen, const char* pPushBody, int PushBodyLen, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_reg_syncml_message_callback_001() -{ - int err = MSG_SUCCESS; - - err = msg_reg_syncml_message_callback(msgHandle, &syncMLCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_reg_syncml_message_callback_002() -{ - int err = MSG_SUCCESS; - - err = msg_reg_syncml_message_callback(NULL, &syncMLCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_reg_syncml_message_callback.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void syncMLCB(MSG_HANDLE_T hMsgHandle, MSG_SYNCML_MESSAGE_TYPE_T msgType, const char* pPushHeader, int PushHeaderLen, const char* pPushBody, int PushBodyLen, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_reg_syncml_message_callback_001() +{ + int err = MSG_SUCCESS; + + err = msg_reg_syncml_message_callback(msgHandle, &syncMLCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_reg_syncml_message_callback_002() +{ + int err = MSG_SUCCESS; + + err = msg_reg_syncml_message_callback(NULL, &syncMLCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.h b/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.h index 7c266e9..c89c842 100755 --- a/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.h +++ b/TC/msgTC/MapiTransport/utc_msg_reg_syncml_message_callback.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_reg_syncml_message_callback_001(void); -static void utc_msg_reg_syncml_message_callback_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_reg_syncml_message_callback_001,1}, - { utc_msg_reg_syncml_message_callback_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_reg_syncml_message_callback_001(void); +static void utc_msg_reg_syncml_message_callback_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_reg_syncml_message_callback_001,1}, + { utc_msg_reg_syncml_message_callback_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_sms_send.c b/TC/msgTC/MapiTransport/utc_msg_sms_send.c index 70a4fce..5496b9c 100755 --- a/TC/msgTC/MapiTransport/utc_msg_sms_send.c +++ b/TC/msgTC/MapiTransport/utc_msg_sms_send.c @@ -1,75 +1,61 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include "utc_msg_sms_send.h" - -static MSG_HANDLE_T msgHandle = NULL; - -void sentStatusCB(MSG_SENT_STATUS_S *pStatus, void *pUserParam) -{ - return; -} - -void startup(void) -{ - -} -void cleanup(void) -{ - -} - -void utc_msg_sms_send_001() -{ - int err = MSG_SUCCESS; - - err = msg_sms_send("01000000000,01000000000", "1234567890", sentStatusCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_sms_send_002() -{ - int err = MSG_SUCCESS; - - err = msg_sms_send(NULL, "1234567890", sentStatusCB, NULL); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); +#include "utc_msg_sms_send.h" + +static MSG_HANDLE_T msgHandle = NULL; + +void sentStatusCB(MSG_SENT_STATUS_S *pStatus, void *pUserParam) +{ + return; +} + +void startup(void) +{ + +} +void cleanup(void) +{ + +} + +void utc_msg_sms_send_001() +{ + int err = MSG_SUCCESS; + + err = msg_sms_send("01000000000,01000000000", "1234567890", sentStatusCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_sms_send_002() +{ + int err = MSG_SUCCESS; + + err = msg_sms_send(NULL, "1234567890", sentStatusCB, NULL); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_sms_send.h b/TC/msgTC/MapiTransport/utc_msg_sms_send.h index 817a39e..9c76a4d 100755 --- a/TC/msgTC/MapiTransport/utc_msg_sms_send.h +++ b/TC/msgTC/MapiTransport/utc_msg_sms_send.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_sms_send_001(void); -static void utc_msg_sms_send_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_sms_send_001,1}, - { utc_msg_sms_send_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_sms_send_001(void); +static void utc_msg_sms_send_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_sms_send_001,1}, + { utc_msg_sms_send_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_sms_send_message.c b/TC/msgTC/MapiTransport/utc_msg_sms_send_message.c index 0818214..da1ead3 100755 --- a/TC/msgTC/MapiTransport/utc_msg_sms_send_message.c +++ b/TC/msgTC/MapiTransport/utc_msg_sms_send_message.c @@ -1,111 +1,97 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_sms_send_message.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); - - msgInfo = msg_new_message(); - - msg_set_message_type(msgInfo, MSG_TYPE_SMS); - - msg_sms_set_message_body(msgInfo, "1234567890", 10); - - msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_sms_send_message_001() -{ - int err = MSG_SUCCESS; - MSG_REQUEST_S req; - - memset(&req, 0x00, sizeof(req)); - - req.msg = msgInfo; - req.sendOpt = sendOpt; - - err = msg_sms_send_message(msgHandle, &req); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_sms_send_message_002() -{ - int err = MSG_SUCCESS; - MSG_REQUEST_S req; - - memset(&req, 0x00, sizeof(req)); - - req.msg = msgInfo; - req.sendOpt = sendOpt; - - err = msg_sms_send_message(NULL, &req); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_sms_send_message.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); + + msgInfo = msg_new_message(); + + msg_set_message_type(msgInfo, MSG_TYPE_SMS); + + msg_sms_set_message_body(msgInfo, "1234567890", 10); + + msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_sms_send_message_001() +{ + int err = MSG_SUCCESS; + MSG_REQUEST_S req; + + memset(&req, 0x00, sizeof(req)); + + req.msg = msgInfo; + req.sendOpt = sendOpt; + + err = msg_sms_send_message(msgHandle, &req); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_sms_send_message_002() +{ + int err = MSG_SUCCESS; + MSG_REQUEST_S req; + + memset(&req, 0x00, sizeof(req)); + + req.msg = msgInfo; + req.sendOpt = sendOpt; + + err = msg_sms_send_message(NULL, &req); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_sms_send_message.h b/TC/msgTC/MapiTransport/utc_msg_sms_send_message.h index 12abbad..aab36ca 100755 --- a/TC/msgTC/MapiTransport/utc_msg_sms_send_message.h +++ b/TC/msgTC/MapiTransport/utc_msg_sms_send_message.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_sms_send_message_001(void); -static void utc_msg_sms_send_message_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_sms_send_message_001,1}, - { utc_msg_sms_send_message_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_sms_send_message_001(void); +static void utc_msg_sms_send_message_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_sms_send_message_001,1}, + { utc_msg_sms_send_message_002,2}, + {NULL,0} +}; diff --git a/TC/msgTC/MapiTransport/utc_msg_submit_req.c b/TC/msgTC/MapiTransport/utc_msg_submit_req.c index badd0bd..723b3c7 100755 --- a/TC/msgTC/MapiTransport/utc_msg_submit_req.c +++ b/TC/msgTC/MapiTransport/utc_msg_submit_req.c @@ -1,112 +1,98 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ - -#include "utc_msg_submit_req.h" - -static MSG_HANDLE_T msgHandle = NULL; -msg_message_t msgInfo; -MSG_SENDINGOPT_S sendOpt; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) -{ - return; -} - -void startup(void) -{ - MSG_ERROR_T err = MSG_SUCCESS; - MSG_SORT_RULE_S sort_rule; - - err = msg_open_msg_handle(&msgHandle); - if (err != MSG_SUCCESS) - { - tet_result(TET_FAIL); - return; - } - - msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); - - msgInfo = msg_new_message(); - - msg_set_message_type(msgInfo, MSG_TYPE_SMS); - - msg_sms_set_message_body(msgInfo, "1234567890", 10); - - msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); - - memset(&sendOpt, 0x00, sizeof(sendOpt)); - - sendOpt.bSetting = false; -} -void cleanup(void) -{ - msg_close_msg_handle(&msgHandle); -} - -void utc_msg_submit_req_001() -{ - int err = MSG_SUCCESS; - MSG_REQUEST_S req; - - memset(&req, 0x00, sizeof(req)); - - req.msg = msgInfo; - req.sendOpt = sendOpt; - - err = msg_submit_req(msgHandle, &req); - if (err != MSG_SUCCESS) - { - tet_printf("err is [%d]", err); - tet_result(TET_FAIL); - return; - } - - tet_result(TET_PASS); -} - -void utc_msg_submit_req_002() -{ - int err = MSG_SUCCESS; - MSG_REQUEST_S req; - - memset(&req, 0x00, sizeof(req)); - - req.msg = msgInfo; - req.sendOpt = sendOpt; - - err = msg_submit_req(NULL, &req); - if (err != MSG_SUCCESS) - { - tet_result(TET_PASS); - return; - } - - tet_result(TET_FAIL); + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ + +#include "utc_msg_submit_req.h" + +static MSG_HANDLE_T msgHandle = NULL; +msg_message_t msgInfo; +MSG_SENDINGOPT_S sendOpt; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam) +{ + return; +} + +void startup(void) +{ + MSG_ERROR_T err = MSG_SUCCESS; + MSG_SORT_RULE_S sort_rule; + + err = msg_open_msg_handle(&msgHandle); + if (err != MSG_SUCCESS) + { + tet_result(TET_FAIL); + return; + } + + msg_reg_sent_status_callback(msgHandle, &sentStatusCB, (void*)"sent status callback"); + + msgInfo = msg_new_message(); + + msg_set_message_type(msgInfo, MSG_TYPE_SMS); + + msg_sms_set_message_body(msgInfo, "1234567890", 10); + + msg_add_address(msgInfo, "01000000000", MSG_RECIPIENTS_TYPE_TO); + + memset(&sendOpt, 0x00, sizeof(sendOpt)); + + sendOpt.bSetting = false; +} +void cleanup(void) +{ + msg_close_msg_handle(&msgHandle); +} + +void utc_msg_submit_req_001() +{ + int err = MSG_SUCCESS; + MSG_REQUEST_S req; + + memset(&req, 0x00, sizeof(req)); + + req.msg = msgInfo; + req.sendOpt = sendOpt; + + err = msg_submit_req(msgHandle, &req); + if (err != MSG_SUCCESS) + { + tet_printf("err is [%d]", err); + tet_result(TET_FAIL); + return; + } + + tet_result(TET_PASS); +} + +void utc_msg_submit_req_002() +{ + int err = MSG_SUCCESS; + MSG_REQUEST_S req; + + memset(&req, 0x00, sizeof(req)); + + req.msg = msgInfo; + req.sendOpt = sendOpt; + + err = msg_submit_req(NULL, &req); + if (err != MSG_SUCCESS) + { + tet_result(TET_PASS); + return; + } + + tet_result(TET_FAIL); } diff --git a/TC/msgTC/MapiTransport/utc_msg_submit_req.h b/TC/msgTC/MapiTransport/utc_msg_submit_req.h index ed126b8..8f15484 100755 --- a/TC/msgTC/MapiTransport/utc_msg_submit_req.h +++ b/TC/msgTC/MapiTransport/utc_msg_submit_req.h @@ -1,51 +1,37 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ -#include - -#include "MapiMessage.h" -#include "MapiTransport.h" - -static void startup(), cleanup(); -void (*tet_startup) () = startup; -void (*tet_cleanup) () = cleanup; - -void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); -static void utc_msg_submit_req_001(void); -static void utc_msg_submit_req_002(void); - - - -struct tet_testlist tet_testlist[] = -{ - { utc_msg_submit_req_001,1}, - { utc_msg_submit_req_002,2}, - {NULL,0} -}; +#include + +#include "MapiMessage.h" +#include "MapiTransport.h" + +static void startup(), cleanup(); +void (*tet_startup) () = startup; +void (*tet_cleanup) () = cleanup; + +void sentStatusCB(MSG_HANDLE_T Handle, MSG_SENT_STATUS_S *pStatus, void *pUserParam); +static void utc_msg_submit_req_001(void); +static void utc_msg_submit_req_002(void); + + + +struct tet_testlist tet_testlist[] = +{ + { utc_msg_submit_req_001,1}, + { utc_msg_submit_req_002,2}, + {NULL,0} +}; diff --git a/debian/changelog b/debian/changelog index 49ebc81..039e295 100755 --- a/debian/changelog +++ b/debian/changelog @@ -5,53 +5,4 @@ msg-service (0.8.7-5) unstable; urgency=low * Git : public/pkgs/m/msg-service * Tag : msg-service_0.8.7-5 - -- Jaeyun Jeong Fri, 16 Mar 2012 17:54:21 +0900 - -msg-service (0.8.7-4) unstable; urgency=low - - * Modify plugin configuration file location for FOTA. - * Remove the db query which create sample data from msg-service.spec. - * Git : public/pkgs/m/msg-service - * Tag : msg-service_0.8.7-4 - - -- Jaeyun Jeong Wed, 14 Mar 2012 20:11:41 +0900 - -msg-service (0.8.7-3) unstable; urgency=low - - * Fix TC execute failure. - * Fix S1-1419(Removed mms raw file issue after rebooting) - * Git : public/pkgs/m/msg-service - * Tag : msg-service_0.8.7-3 - - -- Jaeyun Jeong Mon, 27 Feb 2012 21:19:29 +0900 - -msg-service (0.8.7-2) unstable; urgency=low - - * Remove white spaces. - * Global lists for mms are removed - * Changed MsgFW's interface are applied for TC - * Git : public/pkgs/m/msg-service - * Tag : msg-service_0.8.7-2 - - -- Soonmin Jung Tue, 21 Feb 2012 15:30:26 +0900 - -msg-service (0.8.7-1) unstable; urgency=low - - * Code for removing MMS temp folder applied. - * Bug fix request from java mms. - * Fix bug related with Nabi S1-1253. - * Git : public/pkgs/m/msg-service - * Tag : msg-service_0.8.7-1 - - -- KeeBum Kim Fri, 17 Feb 2012 16:11:38 +0900 - -msg-service (0.8.7-0) unstable; urgency=low - - * apply file wrapper - * Change search API to support Bada API set. - * Apply keep copy option to SMS. - * Git : public/pkgs/m/msg-service - * Tag : msg-service_0.8.7-0 - - -- KeeBum Kim Thu, 09 Feb 2012 18:04:24 +0900 - + -- Jaeyun Jeong Fri, 16 Mar 2012 17:54:21 +0900 \ No newline at end of file diff --git a/debian/control b/debian/control index e48cda2..61c0577 100755 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: msg-service Section: libs Priority: extra Maintainer: Jaeyun Jeong , Sangkoo Kim , Seunghwan Lee , SoonMin Jung , Jae-Young Lee , KeeBum Kim -Build-Depends: debhelper (>= 5), libnetwork-dev, libslp-setting-dev, libglib2.0-dev, libslp-tapi-dev, libslp-db-util-dev, libwbxml2-dev, libxml2-dev, libmm-player-dev, dlog-dev, libcontacts-service-dev, drm-service-dev, libslp-pm-dev, libmm-fileinfo-dev, libdevman-haptic-dev, libalarm-dev, capi-appfw-application-dev, libmm-session-sdk-dev, libmm-session-dev, libcurl-dev, libnotification-dev, libsecurity-server-client-dev, libmm-utility-dev, libsvi-dev, libmedia-thumbnail-dev +Build-Depends: debhelper (>= 5), libnetwork-dev, libslp-setting-dev, libglib2.0-dev, libslp-tapi-dev, libslp-db-util-dev, libwbxml2-dev, libxml2-dev, libmm-player-dev, dlog-dev, libcontacts-service-dev, drm-client-dev, drm-trusted-dev, libslp-pm-dev, libmm-fileinfo-dev, libdevman-haptic-dev, libalarm-dev, capi-appfw-application-dev, libmm-session-sdk-dev, libmm-session-dev, libcurl-dev, libnotification-dev, libsecurity-server-client-dev, libmm-utility-dev, libsvi-dev, libmedia-thumbnail-dev Standards-Version: 0.1.0 Homepage: N/A diff --git a/framework/deliver-handler/MsgDeliverHandler.cpp b/framework/deliver-handler/MsgDeliverHandler.cpp index 908b076..3353791 100755 --- a/framework/deliver-handler/MsgDeliverHandler.cpp +++ b/framework/deliver-handler/MsgDeliverHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ // for sl message browser launch #include diff --git a/framework/main.cpp b/framework/main.cpp index 15d8467..8f73c0a 100755 --- a/framework/main.cpp +++ b/framework/main.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== INCLUDE FILES diff --git a/framework/plugin-manager/MsgPluginConfig.cpp b/framework/plugin-manager/MsgPluginConfig.cpp index d27e387..247bdd8 100755 --- a/framework/plugin-manager/MsgPluginConfig.cpp +++ b/framework/plugin-manager/MsgPluginConfig.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgPluginConfig.h" #include "MsgException.h" diff --git a/framework/plugin-manager/MsgPluginManager.cpp b/framework/plugin-manager/MsgPluginManager.cpp index 4332799..b7b062c 100755 --- a/framework/plugin-manager/MsgPluginManager.cpp +++ b/framework/plugin-manager/MsgPluginManager.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/framework/setting-handler/MsgSettingHandler.cpp b/framework/setting-handler/MsgSettingHandler.cpp index dcaebb3..746da31 100755 --- a/framework/setting-handler/MsgSettingHandler.cpp +++ b/framework/setting-handler/MsgSettingHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgPluginManager.h" diff --git a/framework/storage-handler/MsgStorageFolder.cpp b/framework/storage-handler/MsgStorageFolder.cpp index 9eb8a93..f2e7114 100755 --- a/framework/storage-handler/MsgStorageFolder.cpp +++ b/framework/storage-handler/MsgStorageFolder.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgUtilStorage.h" diff --git a/framework/storage-handler/MsgStorageManager.cpp b/framework/storage-handler/MsgStorageManager.cpp index 91a3fe7..e6a8f23 100755 --- a/framework/storage-handler/MsgStorageManager.cpp +++ b/framework/storage-handler/MsgStorageManager.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/framework/storage-handler/MsgStorageMessage.cpp b/framework/storage-handler/MsgStorageMessage.cpp index 6a95817..629d207 100755 --- a/framework/storage-handler/MsgStorageMessage.cpp +++ b/framework/storage-handler/MsgStorageMessage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/framework/storage-handler/MsgStorageMms.cpp b/framework/storage-handler/MsgStorageMms.cpp index 2290ce1..8bb5eb2 100755 --- a/framework/storage-handler/MsgStorageMms.cpp +++ b/framework/storage-handler/MsgStorageMms.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" diff --git a/framework/storage-handler/MsgStorageSim.cpp b/framework/storage-handler/MsgStorageSim.cpp index ccbcb4e..c3f114b 100755 --- a/framework/storage-handler/MsgStorageSim.cpp +++ b/framework/storage-handler/MsgStorageSim.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/framework/storage-handler/MsgStorageUtil.cpp b/framework/storage-handler/MsgStorageUtil.cpp index 372b622..3899308 100755 --- a/framework/storage-handler/MsgStorageUtil.cpp +++ b/framework/storage-handler/MsgStorageUtil.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/framework/submit-handler/MsgSubmitHandler.cpp b/framework/submit-handler/MsgSubmitHandler.cpp index ee27fc4..2c45925 100755 --- a/framework/submit-handler/MsgSubmitHandler.cpp +++ b/framework/submit-handler/MsgSubmitHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/framework/transaction-manager/MsgCmdHandlerSetting.cpp b/framework/transaction-manager/MsgCmdHandlerSetting.cpp index 926c551..bec9b09 100755 --- a/framework/transaction-manager/MsgCmdHandlerSetting.cpp +++ b/framework/transaction-manager/MsgCmdHandlerSetting.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCmdHandler.h" diff --git a/framework/transaction-manager/MsgCmdHandlerStorage.cpp b/framework/transaction-manager/MsgCmdHandlerStorage.cpp index 54144ee..f136b8d 100755 --- a/framework/transaction-manager/MsgCmdHandlerStorage.cpp +++ b/framework/transaction-manager/MsgCmdHandlerStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/framework/transaction-manager/MsgCmdHandlerTransport.cpp b/framework/transaction-manager/MsgCmdHandlerTransport.cpp index b66cbc5..371821c 100755 --- a/framework/transaction-manager/MsgCmdHandlerTransport.cpp +++ b/framework/transaction-manager/MsgCmdHandlerTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/framework/transaction-manager/MsgTransManager.cpp b/framework/transaction-manager/MsgTransManager.cpp index 3862772..5c615ec 100755 --- a/framework/transaction-manager/MsgTransManager.cpp +++ b/framework/transaction-manager/MsgTransManager.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/include/common/MsgCmdTypes.h b/include/common/MsgCmdTypes.h index c86cf98..b56839a 100755 --- a/include/common/MsgCmdTypes.h +++ b/include/common/MsgCmdTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_CMD_TYPES_H #define MSG_CMD_TYPES_H diff --git a/include/common/MsgCppTypes.h b/include/common/MsgCppTypes.h index 2002ae6..ec4d34d 100755 --- a/include/common/MsgCppTypes.h +++ b/include/common/MsgCppTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_CPP_TYPES_H__ #define __MSG_CPP_TYPES_H__ diff --git a/include/common/MsgInternalTypes.h b/include/common/MsgInternalTypes.h index e1c9bf0..dc17581 100755 --- a/include/common/MsgInternalTypes.h +++ b/include/common/MsgInternalTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_INTERNAL_TYPES_H #define MSG_INTERNAL_TYPES_H diff --git a/include/common/MsgMmsTypes.h b/include/common/MsgMmsTypes.h index d3f0ff8..2f61f47 100755 --- a/include/common/MsgMmsTypes.h +++ b/include/common/MsgMmsTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_MMS_TYPES_H #define MSG_MMS_TYPES_H diff --git a/include/common/MsgPluginInterface.h b/include/common/MsgPluginInterface.h index c5b1ed3..8f33e89 100755 --- a/include/common/MsgPluginInterface.h +++ b/include/common/MsgPluginInterface.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** * @file MsgPluginInterface.h diff --git a/include/common/MsgQueue.h b/include/common/MsgQueue.h index c2eb8d3..c973056 100755 --- a/include/common/MsgQueue.h +++ b/include/common/MsgQueue.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MsgThdSafeQ_H__ #define __MsgThdSafeQ_H__ diff --git a/include/common/MsgSettingTypes.h b/include/common/MsgSettingTypes.h index eae10b3..f1f273f 100755 --- a/include/common/MsgSettingTypes.h +++ b/include/common/MsgSettingTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_SETTING_TYPES_H #define MSG_SETTING_TYPES_H diff --git a/include/common/MsgStorageTypes.h b/include/common/MsgStorageTypes.h index b480373..8228b9f 100755 --- a/include/common/MsgStorageTypes.h +++ b/include/common/MsgStorageTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_STORAGE_TYPES_H #define MSG_STORAGE_TYPES_H diff --git a/include/common/MsgThread.h b/include/common/MsgThread.h index 247a019..f107acf 100755 --- a/include/common/MsgThread.h +++ b/include/common/MsgThread.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_THREAD_H__ #define __MSG_THREAD_H__ diff --git a/include/common/MsgTransportTypes.h b/include/common/MsgTransportTypes.h index de08b24..6a03840 100755 --- a/include/common/MsgTransportTypes.h +++ b/include/common/MsgTransportTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_TRANSPORT_TYPES_H #define MSG_TRANSPORT_TYPES_H diff --git a/include/common/MsgTypes.h b/include/common/MsgTypes.h index 2379878..43c2b79 100755 --- a/include/common/MsgTypes.h +++ b/include/common/MsgTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_TYPES_H #define MSG_TYPES_H diff --git a/include/framework/MsgCmdHandler.h b/include/framework/MsgCmdHandler.h index 669f0ae..5fa7d7f 100755 --- a/include/framework/MsgCmdHandler.h +++ b/include/framework/MsgCmdHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_CMD_HANDLER_H #define MSG_CMD_HANDLER_H diff --git a/include/framework/MsgDeliverHandler.h b/include/framework/MsgDeliverHandler.h index 7ec1ce9..69e9da3 100755 --- a/include/framework/MsgDeliverHandler.h +++ b/include/framework/MsgDeliverHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_DELIVER_HANDLER_H #define MSG_DELIVER_HANDLER_H diff --git a/include/framework/MsgPluginConfig.h b/include/framework/MsgPluginConfig.h index 8bc7e8e..ef7db18 100755 --- a/include/framework/MsgPluginConfig.h +++ b/include/framework/MsgPluginConfig.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_PLUGIN_CONFIG_H #define MSG_PLUGIN_CONFIG_H diff --git a/include/framework/MsgPluginManager.h b/include/framework/MsgPluginManager.h index 796db16..1c9f863 100755 --- a/include/framework/MsgPluginManager.h +++ b/include/framework/MsgPluginManager.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_PLUGIN_MANAGER_H #define MSG_PLUGIN_MANAGER_H diff --git a/include/framework/MsgSettingHandler.h b/include/framework/MsgSettingHandler.h index b0fe3a9..3387743 100755 --- a/include/framework/MsgSettingHandler.h +++ b/include/framework/MsgSettingHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_SETTING_HANDLER_H #define MSG_SETTING_HANDLER_H diff --git a/include/framework/MsgStorageHandler.h b/include/framework/MsgStorageHandler.h index 3483721..0313cc9 100755 --- a/include/framework/MsgStorageHandler.h +++ b/include/framework/MsgStorageHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_STORAGE_HANDLER_H #define MSG_STORAGE_HANDLER_H diff --git a/include/framework/MsgSubmitHandler.h b/include/framework/MsgSubmitHandler.h index 8e18b85..02b353b 100755 --- a/include/framework/MsgSubmitHandler.h +++ b/include/framework/MsgSubmitHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_SUBMIT_HANDLER_H #define MSG_SUBMIT_HANDLER_H diff --git a/include/framework/MsgTransManager.h b/include/framework/MsgTransManager.h index ee39fff..62bc504 100755 --- a/include/framework/MsgTransManager.h +++ b/include/framework/MsgTransManager.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_TRANSACTION_MANAGER_H #define MSG_TRANSACTION_MANAGER_H diff --git a/include/mapi/MapiControl.h b/include/mapi/MapiControl.h index b8cbff8..6ebbad1 100755 --- a/include/mapi/MapiControl.h +++ b/include/mapi/MapiControl.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** * @file MapiControl.h diff --git a/include/mapi/MapiMessage.h b/include/mapi/MapiMessage.h index a70b3c7..a4e5630 100755 --- a/include/mapi/MapiMessage.h +++ b/include/mapi/MapiMessage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** * @file MapiMessage.h diff --git a/include/mapi/MapiSetting.h b/include/mapi/MapiSetting.h index 808a8c0..ae7ba78 100755 --- a/include/mapi/MapiSetting.h +++ b/include/mapi/MapiSetting.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MAPI_SETTING_H #define MAPI_SETTING_H diff --git a/include/mapi/MapiStorage.h b/include/mapi/MapiStorage.h index f7bd550..74f4d77 100755 --- a/include/mapi/MapiStorage.h +++ b/include/mapi/MapiStorage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** * @file MapiStorage.h diff --git a/include/mapi/MapiTransport.h b/include/mapi/MapiTransport.h index 840ad9f..fefe251 100755 --- a/include/mapi/MapiTransport.h +++ b/include/mapi/MapiTransport.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** * @file MapiTransport.h diff --git a/include/msg_helper/MsgHelper.h b/include/msg_helper/MsgHelper.h index 1e2dd5c..af8ab57 100755 --- a/include/msg_helper/MsgHelper.h +++ b/include/msg_helper/MsgHelper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_HELPER_H #define MSG_HELPER_H diff --git a/include/proxy/MsgHandle.h b/include/proxy/MsgHandle.h index 32aea36..052fd11 100755 --- a/include/proxy/MsgHandle.h +++ b/include/proxy/MsgHandle.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_HANDLE_H #define MSG_HANDLE_H diff --git a/include/proxy/MsgProxyListener.h b/include/proxy/MsgProxyListener.h index fc2b8c4..15a1ff5 100755 --- a/include/proxy/MsgProxyListener.h +++ b/include/proxy/MsgProxyListener.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_PROXY_LISTENER_H__ #define __MSG_PROXY_LISTENER_H__ diff --git a/include/utils/MsgContact.h b/include/utils/MsgContact.h index 4705b6e..8a55347 100755 --- a/include/utils/MsgContact.h +++ b/include/utils/MsgContact.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_CONTACT_H #define MSG_CONTACT_H diff --git a/include/utils/MsgDebug.h b/include/utils/MsgDebug.h index 4b0541e..ee52510 100755 --- a/include/utils/MsgDebug.h +++ b/include/utils/MsgDebug.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_DEBUG_H__ #define __MSG_DEBUG_H__ diff --git a/include/utils/MsgDrmWrapper.h b/include/utils/MsgDrmWrapper.h index f77909d..02c3ae4 100755 --- a/include/utils/MsgDrmWrapper.h +++ b/include/utils/MsgDrmWrapper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_DRM_WRAPPER_H_ #define __MSG_DRM_WRAPPER_H_ @@ -35,16 +21,6 @@ extern "C" { #endif -typedef void* MSG_DRMHANDLE; - -typedef enum { - MMS_DRM_RIGHT_PLAY, //video - MSG_DRM_RIGHT_DISPLAY, //image - MSG_DRM_RIGHT_EXECUTE, //game - MSG_DRM_RIGHT_PRINT, - MSG_DRM_RIGHT_EXPORT, -} MSG_DRM_RIGHT_TYPE; - typedef enum { MSG_MODE_FILE, MSG_MODE_STREAM @@ -60,30 +36,12 @@ typedef enum { bool MsgDrmRegisterFile(MSG_DRM_OPENMODE eMode, char *pBuffer, int nSize); bool MsgDrmUnregisterFile(char *szFilename); - bool MsgDrmIsDrmFile(const char *szFilePath); - bool MsgDrmGetMimeTypeEx(const char *szFileName, char *szMimeType, int nMimeTypeLen); bool MsgDrmGetContentID(const char *szFileName, char *szContentID, int nContentIDLen); bool MsgDrmGetDrmType(const char *szFileName, MSG_DRM_TYPE *eDRMType); - - -bool MsgDrmOpen(MSG_DRM_OPENMODE eMode, const char *pBuffer, int nSize, MSG_DRMHANDLE *pHandle); -bool MsgDrmClose(MSG_DRMHANDLE); -bool MsgDrmGetMimeType(MSG_DRMHANDLE pHandle, char *szMimeType, int nMimeTypeLen); -int MsgDrmGetStreamSize(MSG_DRMHANDLE pHandle); -bool MsgDrmGetStream(MSG_DRMHANDLE pHandle, int nStreamSize, unsigned char *pStream); - -bool MsgDrmIsAvailable(MSG_DRMHANDLE pHandle); -bool MsgDrmConsumeRights(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType, long nMiliSecs); -bool MsgDrmOnStart(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType); -bool MsgDrmOnPause(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType); -bool MsgDrmOnResume(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType); -bool MsgDrmOnStop(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType); - - bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile); -bool MsgDrmIsConvertedFL(char *szFilePath); + #ifdef __cplusplus } #endif diff --git a/include/utils/MsgException.h b/include/utils/MsgException.h index 8b5ea19..7f6c1f0 100755 --- a/include/utils/MsgException.h +++ b/include/utils/MsgException.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_EXCEPTION_H #define MSG_EXCEPTION_H diff --git a/include/utils/MsgGconfWrapper.h b/include/utils/MsgGconfWrapper.h index 2da9c67..eb7e6d6 100755 --- a/include/utils/MsgGconfWrapper.h +++ b/include/utils/MsgGconfWrapper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_GCONF_WRAPPER_H #define MSG_GCONF_WRAPPER_H diff --git a/include/utils/MsgIpcSocket.h b/include/utils/MsgIpcSocket.h index 601a7de..ca15b42 100755 --- a/include/utils/MsgIpcSocket.h +++ b/include/utils/MsgIpcSocket.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __IPCSocket_H__ #define __IPCSocket_H__ diff --git a/include/utils/MsgMemory.h b/include/utils/MsgMemory.h index f16e2e1..0c07f8c 100755 --- a/include/utils/MsgMemory.h +++ b/include/utils/MsgMemory.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_MEMORY_H__ #define __MSG_MEMORY_H__ diff --git a/include/utils/MsgMmsMessage.h b/include/utils/MsgMmsMessage.h index 652942a..9a323da 100755 --- a/include/utils/MsgMmsMessage.h +++ b/include/utils/MsgMmsMessage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_MMS_MESSAGE_H #define MSG_MMS_MESSAGE_H diff --git a/include/utils/MsgMutex.h b/include/utils/MsgMutex.h index 77fba6e..fd20d54 100755 --- a/include/utils/MsgMutex.h +++ b/include/utils/MsgMutex.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 __MSG_MUTEX_H__ #define __MSG_MUTEX_H__ diff --git a/include/utils/MsgNotificationWrapper.h b/include/utils/MsgNotificationWrapper.h index 1225377..232cfc3 100755 --- a/include/utils/MsgNotificationWrapper.h +++ b/include/utils/MsgNotificationWrapper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_QUICKPANEL_WRAPPER_H #define MSG_QUICKPANEL_WRAPPER_H diff --git a/include/utils/MsgSoundPlayer.h b/include/utils/MsgSoundPlayer.h index 540215c..1d81379 100755 --- a/include/utils/MsgSoundPlayer.h +++ b/include/utils/MsgSoundPlayer.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_SOUND_PLAYER_H #define MSG_SOUND_PLAYER_H diff --git a/include/utils/MsgSqliteWrapper.h b/include/utils/MsgSqliteWrapper.h index d3a1fb7..9cc59a5 100755 --- a/include/utils/MsgSqliteWrapper.h +++ b/include/utils/MsgSqliteWrapper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_SQLITE_WRAPPER_H #define MSG_SQLITE_WRAPPER_H diff --git a/include/utils/MsgUtilFile.h b/include/utils/MsgUtilFile.h index c5b9dda..6a5a4f2 100755 --- a/include/utils/MsgUtilFile.h +++ b/include/utils/MsgUtilFile.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_UTIL_FILE_H #define MSG_UTIL_FILE_H diff --git a/include/utils/MsgUtilFunction.h b/include/utils/MsgUtilFunction.h index 555ac37..522a9d2 100755 --- a/include/utils/MsgUtilFunction.h +++ b/include/utils/MsgUtilFunction.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_UTIL_FUNCTION_H #define MSG_UTIL_FUNCTION_H diff --git a/include/utils/MsgUtilStorage.h b/include/utils/MsgUtilStorage.h index 6da900c..a345bc7 100755 --- a/include/utils/MsgUtilStorage.h +++ b/include/utils/MsgUtilStorage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_UTIL_STORAGE_H #define MSG_UTIL_STORAGE_H diff --git a/mapi/MapiControl.cpp b/mapi/MapiControl.cpp index c5876ee..f71c405 100755 --- a/mapi/MapiControl.cpp +++ b/mapi/MapiControl.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/mapi/MapiMessage.cpp b/mapi/MapiMessage.cpp index c6f299a..74b0777 100755 --- a/mapi/MapiMessage.cpp +++ b/mapi/MapiMessage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgTypes.h" #include "MsgMmsTypes.h" diff --git a/mapi/MapiSetting.cpp b/mapi/MapiSetting.cpp index 6a2cba9..385d797 100755 --- a/mapi/MapiSetting.cpp +++ b/mapi/MapiSetting.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/mapi/MapiStorage.cpp b/mapi/MapiStorage.cpp index 8f9c9c4..9aaba60 100755 --- a/mapi/MapiStorage.cpp +++ b/mapi/MapiStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/mapi/MapiTransport.cpp b/mapi/MapiTransport.cpp index 540373a..0cfbc38 100755 --- a/mapi/MapiTransport.cpp +++ b/mapi/MapiTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/msg_helper/MsgSoundPlayer.cpp b/msg_helper/MsgSoundPlayer.cpp index ce38b02..b775368 100755 --- a/msg_helper/MsgSoundPlayer.cpp +++ b/msg_helper/MsgSoundPlayer.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/msg_helper/main.cpp b/msg_helper/main.cpp index b8a129a..4ffd4a4 100755 --- a/msg_helper/main.cpp +++ b/msg_helper/main.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/CMakeLists.txt b/plugin/mms_plugin/CMakeLists.txt index 929cbad..d121f6c 100755 --- a/plugin/mms_plugin/CMakeLists.txt +++ b/plugin/mms_plugin/CMakeLists.txt @@ -79,7 +79,7 @@ INCLUDE_DIRECTORIES( ) INCLUDE(FindPkgConfig) -pkg_check_modules(mms_plugin_pkgs REQUIRED glib-2.0 network libxml-2.0 drm-service libcurl mm-fileinfo mmutil-jpeg vconf dlog media-thumbnail) +pkg_check_modules(mms_plugin_pkgs REQUIRED glib-2.0 network libxml-2.0 drm-client libcurl mm-fileinfo mmutil-jpeg vconf dlog media-thumbnail) FOREACH(flag ${mms_plugin_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngLatinUni.cpp b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngLatinUni.cpp index 90585bc..936c096 100755 --- a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngLatinUni.cpp +++ b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngLatinUni.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MmsPluginWmLngPack.h" diff --git a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngString.cpp b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngString.cpp index 014b928..1fcb907 100755 --- a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngString.cpp +++ b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngString.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MmsPluginWmLngPack.h" diff --git a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUTF8Uni.cpp b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUTF8Uni.cpp index 0a7a802..cade759 100755 --- a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUTF8Uni.cpp +++ b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUTF8Uni.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MmsPluginWmLngPack.h" diff --git a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUniUTF8.cpp b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUniUTF8.cpp index 9e626f1..b209434 100755 --- a/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUniUTF8.cpp +++ b/plugin/mms_plugin/LanguagePack/MmsPluginWmLngUniUTF8.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MmsPluginWmLngPack.h" diff --git a/plugin/mms_plugin/MmsPluginAvCodec.cpp b/plugin/mms_plugin/MmsPluginAvCodec.cpp index 8887d0e..e8f1e20 100755 --- a/plugin/mms_plugin/MmsPluginAvCodec.cpp +++ b/plugin/mms_plugin/MmsPluginAvCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginAvCodec.h" #include diff --git a/plugin/mms_plugin/MmsPluginCodec.cpp b/plugin/mms_plugin/MmsPluginCodec.cpp index e5006a4..bbfaf5a 100755 --- a/plugin/mms_plugin/MmsPluginCodec.cpp +++ b/plugin/mms_plugin/MmsPluginCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginCodec.h" #include "MsgMmsTypes.h" diff --git a/plugin/mms_plugin/MmsPluginConnManWrapper.cpp b/plugin/mms_plugin/MmsPluginConnManWrapper.cpp index 0b13262..02ed598 100755 --- a/plugin/mms_plugin/MmsPluginConnManWrapper.cpp +++ b/plugin/mms_plugin/MmsPluginConnManWrapper.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginConnManWrapper.h" diff --git a/plugin/mms_plugin/MmsPluginContentCodec.cpp b/plugin/mms_plugin/MmsPluginContentCodec.cpp index b765182..b747d90 100755 --- a/plugin/mms_plugin/MmsPluginContentCodec.cpp +++ b/plugin/mms_plugin/MmsPluginContentCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginDebug.cpp b/plugin/mms_plugin/MmsPluginDebug.cpp index 2e289b2..395bb35 100755 --- a/plugin/mms_plugin/MmsPluginDebug.cpp +++ b/plugin/mms_plugin/MmsPluginDebug.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include "MmsPluginMIME.h" diff --git a/plugin/mms_plugin/MmsPluginDecode.cpp b/plugin/mms_plugin/MmsPluginDecode.cpp index 565f39d..55e95d2 100755 --- a/plugin/mms_plugin/MmsPluginDecode.cpp +++ b/plugin/mms_plugin/MmsPluginDecode.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include @@ -50,7 +36,6 @@ #ifdef __SUPPORT_DRM__ #include "MmsPluginDrm.h" #include "MsgDrmWrapper.h" -#include "drm-service.h" #endif diff --git a/plugin/mms_plugin/MmsPluginDrm.cpp b/plugin/mms_plugin/MmsPluginDrm.cpp index 31f4b90..0f13934 100755 --- a/plugin/mms_plugin/MmsPluginDrm.cpp +++ b/plugin/mms_plugin/MmsPluginDrm.cpp @@ -1,40 +1,28 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include +#include +#include #include "MmsPluginDrm.h" #include "MmsPluginCodec.h" #include "MsgMmsTypes.h" #include "MsgDrmWrapper.h" #include "MsgDebug.h" -#include "drm-service.h" + #ifdef __SUPPORT_DRM__ @@ -78,13 +66,13 @@ bool MsgDRM2GetDRMInfo(char *szFilePath, MsgType *pMsgType) return false; } - char szMimeType[DRM_MAX_TYPE_LEN + 1]; - char szContentID[DRM_MAX_CID_LEN + 1]; + char szMimeType[DRM_MAX_LEN_MIME + 1]; + char szContentID[DRM_MAX_LEN_CID + 1]; MSG_DRM_TYPE drmType = MSG_DRM_NONE; MsgDrmGetDrmType(szFilePath, &drmType); - MsgDrmGetMimeTypeEx(szFilePath, szMimeType, DRM_MAX_TYPE_LEN + 1); - MsgDrmGetContentID(szFilePath, szContentID, DRM_MAX_CID_LEN + 1); + MsgDrmGetMimeTypeEx(szFilePath, szMimeType, sizeof(szMimeType)); + MsgDrmGetContentID(szFilePath, szContentID, sizeof(szContentID)); MSG_DEBUG("drmType: %d", drmType); switch (drmType) { @@ -107,12 +95,17 @@ bool MsgDRM2GetDRMInfo(char *szFilePath, MsgType *pMsgType) pMsgType->drmInfo.contentType = (MsgContentType)_MsgGetCode(MSG_TYPE, szMimeType); - drm_dcf_header_t dcfHdrInfo; - drm_svc_get_dcf_header_info(szFilePath, &dcfHdrInfo); + drm_content_info_s dcfHdrInfo; + bzero(&dcfHdrInfo, sizeof(drm_content_info_s)); + drm_get_content_info(szFilePath, &dcfHdrInfo); + + drm_file_info_s fileInfo; + bzero(&fileInfo, sizeof(drm_file_info_s)); + drm_get_file_info(szFilePath,&fileInfo); - if (dcfHdrInfo.version == DRM_OMA_DRMV1_RIGHTS) { - pMsgType->drmInfo.szContentName = MsgRemoveQuoteFromFilename(dcfHdrInfo.headerUnion.headerV1.contentName); - pMsgType->drmInfo.szContentDescription = MsgStrCopy(dcfHdrInfo.headerUnion.headerV1.contentDescription); + if (fileInfo.oma_info.version == DRM_OMA_DRMV1_RIGHTS) { + pMsgType->drmInfo.szContentName = MsgRemoveQuoteFromFilename(dcfHdrInfo.title); + pMsgType->drmInfo.szContentDescription = MsgStrCopy(dcfHdrInfo.description); } break; diff --git a/plugin/mms_plugin/MmsPluginEncode.cpp b/plugin/mms_plugin/MmsPluginEncode.cpp index 922eab2..2bf0a46 100755 --- a/plugin/mms_plugin/MmsPluginEncode.cpp +++ b/plugin/mms_plugin/MmsPluginEncode.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginEventHandler.cpp b/plugin/mms_plugin/MmsPluginEventHandler.cpp index 39bfc40..881a9aa 100755 --- a/plugin/mms_plugin/MmsPluginEventHandler.cpp +++ b/plugin/mms_plugin/MmsPluginEventHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginHttp.cpp b/plugin/mms_plugin/MmsPluginHttp.cpp index d76b7b4..5762a63 100755 --- a/plugin/mms_plugin/MmsPluginHttp.cpp +++ b/plugin/mms_plugin/MmsPluginHttp.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginHttp.h" #include "MmsPluginUserAgent.h" diff --git a/plugin/mms_plugin/MmsPluginInternal.cpp b/plugin/mms_plugin/MmsPluginInternal.cpp index 4dd981e..15ffcbe 100755 --- a/plugin/mms_plugin/MmsPluginInternal.cpp +++ b/plugin/mms_plugin/MmsPluginInternal.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginMIME.cpp b/plugin/mms_plugin/MmsPluginMIME.cpp index 646af3d..6874224 100755 --- a/plugin/mms_plugin/MmsPluginMIME.cpp +++ b/plugin/mms_plugin/MmsPluginMIME.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginMain.cpp b/plugin/mms_plugin/MmsPluginMain.cpp index f46ef61..6b10ab5 100755 --- a/plugin/mms_plugin/MmsPluginMain.cpp +++ b/plugin/mms_plugin/MmsPluginMain.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginMessage.cpp b/plugin/mms_plugin/MmsPluginMessage.cpp index 1915c23..4089ef6 100755 --- a/plugin/mms_plugin/MmsPluginMessage.cpp +++ b/plugin/mms_plugin/MmsPluginMessage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginSMILValidate.cpp b/plugin/mms_plugin/MmsPluginSMILValidate.cpp index 8c31c63..d592da0 100755 --- a/plugin/mms_plugin/MmsPluginSMILValidate.cpp +++ b/plugin/mms_plugin/MmsPluginSMILValidate.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginSMILValidate.h" #include "MsgDebug.h" diff --git a/plugin/mms_plugin/MmsPluginSmil.cpp b/plugin/mms_plugin/MmsPluginSmil.cpp index 635213a..9d22b91 100755 --- a/plugin/mms_plugin/MmsPluginSmil.cpp +++ b/plugin/mms_plugin/MmsPluginSmil.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginStorage.cpp b/plugin/mms_plugin/MmsPluginStorage.cpp index bb93d11..150deb9 100755 --- a/plugin/mms_plugin/MmsPluginStorage.cpp +++ b/plugin/mms_plugin/MmsPluginStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/MmsPluginTransport.cpp b/plugin/mms_plugin/MmsPluginTransport.cpp index abcea3c..d7fc5cf 100755 --- a/plugin/mms_plugin/MmsPluginTransport.cpp +++ b/plugin/mms_plugin/MmsPluginTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include "MmsPluginEventHandler.h" diff --git a/plugin/mms_plugin/MmsPluginUserAgent.cpp b/plugin/mms_plugin/MmsPluginUserAgent.cpp index 0ce5141..9fa7ceb 100755 --- a/plugin/mms_plugin/MmsPluginUserAgent.cpp +++ b/plugin/mms_plugin/MmsPluginUserAgent.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/include/MmsPluginAvCodec.h b/plugin/mms_plugin/include/MmsPluginAvCodec.h index 7e0c8a9..8e1b35f 100755 --- a/plugin/mms_plugin/include/MmsPluginAvCodec.h +++ b/plugin/mms_plugin/include/MmsPluginAvCodec.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgTypes.h" diff --git a/plugin/mms_plugin/include/MmsPluginCodec.h b/plugin/mms_plugin/include/MmsPluginCodec.h index e8952f5..9e50704 100755 --- a/plugin/mms_plugin/include/MmsPluginCodec.h +++ b/plugin/mms_plugin/include/MmsPluginCodec.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_CODEC_H #define MMS_PLUGIN_CODEC_H diff --git a/plugin/mms_plugin/include/MmsPluginConnManWrapper.h b/plugin/mms_plugin/include/MmsPluginConnManWrapper.h index 3648464..3c6cb03 100755 --- a/plugin/mms_plugin/include/MmsPluginConnManWrapper.h +++ b/plugin/mms_plugin/include/MmsPluginConnManWrapper.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMSPLUGINCONNMANWRAPPER_H #define MMSPLUGINCONNMANWRAPPER_H diff --git a/plugin/mms_plugin/include/MmsPluginData.h b/plugin/mms_plugin/include/MmsPluginData.h index f40d50d..860fd15 100755 --- a/plugin/mms_plugin/include/MmsPluginData.h +++ b/plugin/mms_plugin/include/MmsPluginData.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #define MMS_INVALID_MSG_ID -1 diff --git a/plugin/mms_plugin/include/MmsPluginDebug.h b/plugin/mms_plugin/include/MmsPluginDebug.h index ff0cbe1..7b9cfe8 100755 --- a/plugin/mms_plugin/include/MmsPluginDebug.h +++ b/plugin/mms_plugin/include/MmsPluginDebug.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_DEBUG_H #define MMS_PLUGIN_DEBUG_H diff --git a/plugin/mms_plugin/include/MmsPluginDrm.h b/plugin/mms_plugin/include/MmsPluginDrm.h index a0777c3..0cb66d1 100755 --- a/plugin/mms_plugin/include/MmsPluginDrm.h +++ b/plugin/mms_plugin/include/MmsPluginDrm.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgMmsTypes.h" #include "MmsPluginMessage.h" diff --git a/plugin/mms_plugin/include/MmsPluginEventHandler.h b/plugin/mms_plugin/include/MmsPluginEventHandler.h index 5044592..2b9bf8b 100755 --- a/plugin/mms_plugin/include/MmsPluginEventHandler.h +++ b/plugin/mms_plugin/include/MmsPluginEventHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_EVENT_HANDLER_H #define MMS_PLUGIN_EVENT_HANDLER_H diff --git a/plugin/mms_plugin/include/MmsPluginHttp.h b/plugin/mms_plugin/include/MmsPluginHttp.h index 2cef023..bee0dc5 100755 --- a/plugin/mms_plugin/include/MmsPluginHttp.h +++ b/plugin/mms_plugin/include/MmsPluginHttp.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMSPLUGINHTTP_H #define MMSPLUGINHTTP_H diff --git a/plugin/mms_plugin/include/MmsPluginInternal.h b/plugin/mms_plugin/include/MmsPluginInternal.h index a5a82d3..a22cf27 100755 --- a/plugin/mms_plugin/include/MmsPluginInternal.h +++ b/plugin/mms_plugin/include/MmsPluginInternal.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_INTERNAL_H #define MMS_PLUGIN_INTERNAL_H diff --git a/plugin/mms_plugin/include/MmsPluginMIME.h b/plugin/mms_plugin/include/MmsPluginMIME.h index aa1fd52..8e9a652 100755 --- a/plugin/mms_plugin/include/MmsPluginMIME.h +++ b/plugin/mms_plugin/include/MmsPluginMIME.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 _UTY_MIME_H_ #define _UTY_MIME_H_ diff --git a/plugin/mms_plugin/include/MmsPluginMain.h b/plugin/mms_plugin/include/MmsPluginMain.h index 0f51120..a90a347 100755 --- a/plugin/mms_plugin/include/MmsPluginMain.h +++ b/plugin/mms_plugin/include/MmsPluginMain.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_MAIN_H #define MMS_PLUGIN_MAIN_H diff --git a/plugin/mms_plugin/include/MmsPluginMessage.h b/plugin/mms_plugin/include/MmsPluginMessage.h index b59791e..afd68e8 100755 --- a/plugin/mms_plugin/include/MmsPluginMessage.h +++ b/plugin/mms_plugin/include/MmsPluginMessage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_MESSAGE_H #define MMS_PLUGIN_MESSAGE_H diff --git a/plugin/mms_plugin/include/MmsPluginSMILValidate.h b/plugin/mms_plugin/include/MmsPluginSMILValidate.h index da8a577..00b7df5 100755 --- a/plugin/mms_plugin/include/MmsPluginSMILValidate.h +++ b/plugin/mms_plugin/include/MmsPluginSMILValidate.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_SMIL_VALIDATE_H #define MMS_PLUGIN_SMIL_VALIDATE_H diff --git a/plugin/mms_plugin/include/MmsPluginSetup.h b/plugin/mms_plugin/include/MmsPluginSetup.h index 82fc1d5..da97405 100755 --- a/plugin/mms_plugin/include/MmsPluginSetup.h +++ b/plugin/mms_plugin/include/MmsPluginSetup.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MmsPluginMessage.h" diff --git a/plugin/mms_plugin/include/MmsPluginSmil.h b/plugin/mms_plugin/include/MmsPluginSmil.h index 65399df..9bb5162 100755 --- a/plugin/mms_plugin/include/MmsPluginSmil.h +++ b/plugin/mms_plugin/include/MmsPluginSmil.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/mms_plugin/include/MmsPluginStorage.h b/plugin/mms_plugin/include/MmsPluginStorage.h index c565ba5..a482181 100755 --- a/plugin/mms_plugin/include/MmsPluginStorage.h +++ b/plugin/mms_plugin/include/MmsPluginStorage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_STORAGE_H #define MMS_PLUGIN_STORAGE_H diff --git a/plugin/mms_plugin/include/MmsPluginTransport.h b/plugin/mms_plugin/include/MmsPluginTransport.h index f620556..6209991 100755 --- a/plugin/mms_plugin/include/MmsPluginTransport.h +++ b/plugin/mms_plugin/include/MmsPluginTransport.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMS_PLUGIN_TRANSPORT_H #define MMS_PLUGIN_TRANSPORT_H diff --git a/plugin/mms_plugin/include/MmsPluginTypes.h b/plugin/mms_plugin/include/MmsPluginTypes.h index d51e366..f56dc1f 100755 --- a/plugin/mms_plugin/include/MmsPluginTypes.h +++ b/plugin/mms_plugin/include/MmsPluginTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMSTPDUTYPES_H #define MMSTPDUTYPES_H diff --git a/plugin/mms_plugin/include/MmsPluginUserAgent.h b/plugin/mms_plugin/include/MmsPluginUserAgent.h index 3aa2a33..2d3e46b 100755 --- a/plugin/mms_plugin/include/MmsPluginUserAgent.h +++ b/plugin/mms_plugin/include/MmsPluginUserAgent.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MMSPLUGINUSERAGENT_H #define MMSPLUGINUSERAGENT_H diff --git a/plugin/mms_plugin/include/MmsPluginWmLngPack.h b/plugin/mms_plugin/include/MmsPluginWmLngPack.h index 6bf938e..79ff390 100755 --- a/plugin/mms_plugin/include/MmsPluginWmLngPack.h +++ b/plugin/mms_plugin/include/MmsPluginWmLngPack.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 _MMS_PLUGIN_WM_LNG_PACK_H_ #define _MMS_PLUGIN_WM_LNG_PACK_H_ diff --git a/plugin/sms_plugin/CMakeLists.txt b/plugin/sms_plugin/CMakeLists.txt index 769cdc5..6bc6dae 100755 --- a/plugin/sms_plugin/CMakeLists.txt +++ b/plugin/sms_plugin/CMakeLists.txt @@ -40,7 +40,7 @@ INCLUDE_DIRECTORIES( ) INCLUDE(FindPkgConfig) -pkg_check_modules(sms_plugin_pkgs REQUIRED glib-2.0 tapi libxml-2.0 libwbxml2 drm-service dlog vconf) +pkg_check_modules(sms_plugin_pkgs REQUIRED glib-2.0 tapi libxml-2.0 libwbxml2 drm-client dlog vconf) FOREACH(flag ${sms_plugin_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/plugin/sms_plugin/SmsPluginCallback.cpp b/plugin/sms_plugin/SmsPluginCallback.cpp index b144245..91eb50f 100755 --- a/plugin/sms_plugin/SmsPluginCallback.cpp +++ b/plugin/sms_plugin/SmsPluginCallback.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/sms_plugin/SmsPluginCbMsgHandler.cpp b/plugin/sms_plugin/SmsPluginCbMsgHandler.cpp index caff6aa..b456670 100755 --- a/plugin/sms_plugin/SmsPluginCbMsgHandler.cpp +++ b/plugin/sms_plugin/SmsPluginCbMsgHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginConcatHandler.cpp b/plugin/sms_plugin/SmsPluginConcatHandler.cpp index 6a86252..edab5c3 100755 --- a/plugin/sms_plugin/SmsPluginConcatHandler.cpp +++ b/plugin/sms_plugin/SmsPluginConcatHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" diff --git a/plugin/sms_plugin/SmsPluginEventHandler.cpp b/plugin/sms_plugin/SmsPluginEventHandler.cpp index cb4f457..ec24fd6 100755 --- a/plugin/sms_plugin/SmsPluginEventHandler.cpp +++ b/plugin/sms_plugin/SmsPluginEventHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/sms_plugin/SmsPluginMain.cpp b/plugin/sms_plugin/SmsPluginMain.cpp index a8a2751..d068e09 100755 --- a/plugin/sms_plugin/SmsPluginMain.cpp +++ b/plugin/sms_plugin/SmsPluginMain.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgException.h" diff --git a/plugin/sms_plugin/SmsPluginParamCodec.cpp b/plugin/sms_plugin/SmsPluginParamCodec.cpp index 4e5394f..6a1a863 100755 --- a/plugin/sms_plugin/SmsPluginParamCodec.cpp +++ b/plugin/sms_plugin/SmsPluginParamCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/sms_plugin/SmsPluginSatHandler.cpp b/plugin/sms_plugin/SmsPluginSatHandler.cpp index c6725a6..1ff65f7 100755 --- a/plugin/sms_plugin/SmsPluginSatHandler.cpp +++ b/plugin/sms_plugin/SmsPluginSatHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" diff --git a/plugin/sms_plugin/SmsPluginSetting.cpp b/plugin/sms_plugin/SmsPluginSetting.cpp index 8e979d5..b45c038 100755 --- a/plugin/sms_plugin/SmsPluginSetting.cpp +++ b/plugin/sms_plugin/SmsPluginSetting.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginSimMsg.cpp b/plugin/sms_plugin/SmsPluginSimMsg.cpp index 1a48877..73c6a7c 100755 --- a/plugin/sms_plugin/SmsPluginSimMsg.cpp +++ b/plugin/sms_plugin/SmsPluginSimMsg.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginStorage.cpp b/plugin/sms_plugin/SmsPluginStorage.cpp index c1d1021..b6511a6 100755 --- a/plugin/sms_plugin/SmsPluginStorage.cpp +++ b/plugin/sms_plugin/SmsPluginStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginTextConvert.cpp b/plugin/sms_plugin/SmsPluginTextConvert.cpp index a0b947c..8129fbf 100755 --- a/plugin/sms_plugin/SmsPluginTextConvert.cpp +++ b/plugin/sms_plugin/SmsPluginTextConvert.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginTpduCodec.cpp b/plugin/sms_plugin/SmsPluginTpduCodec.cpp index c52b12a..ad9899c 100755 --- a/plugin/sms_plugin/SmsPluginTpduCodec.cpp +++ b/plugin/sms_plugin/SmsPluginTpduCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/plugin/sms_plugin/SmsPluginTransport.cpp b/plugin/sms_plugin/SmsPluginTransport.cpp index 182e5d2..1532e60 100755 --- a/plugin/sms_plugin/SmsPluginTransport.cpp +++ b/plugin/sms_plugin/SmsPluginTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/plugin/sms_plugin/SmsPluginUAManager.cpp b/plugin/sms_plugin/SmsPluginUAManager.cpp index 7cd77f6..41d4561 100755 --- a/plugin/sms_plugin/SmsPluginUAManager.cpp +++ b/plugin/sms_plugin/SmsPluginUAManager.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" diff --git a/plugin/sms_plugin/SmsPluginUDCodec.cpp b/plugin/sms_plugin/SmsPluginUDCodec.cpp index 795c859..3207eb1 100755 --- a/plugin/sms_plugin/SmsPluginUDCodec.cpp +++ b/plugin/sms_plugin/SmsPluginUDCodec.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" diff --git a/plugin/sms_plugin/SmsPluginWapPushHandler.cpp b/plugin/sms_plugin/SmsPluginWapPushHandler.cpp index 97b2870..1c0859c 100755 --- a/plugin/sms_plugin/SmsPluginWapPushHandler.cpp +++ b/plugin/sms_plugin/SmsPluginWapPushHandler.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgCppTypes.h" @@ -39,7 +25,7 @@ #include "SmsPluginWapPushHandler.h" -#include "drm-service.h" +#include static unsigned short wapPushPortList [] = {0x0b84, 0x0b85, 0x23F0, 0x23F1, 0x23F2, 0x23F3, 0xC34F}; @@ -1499,25 +1485,33 @@ void SmsPluginWapPushHandler::handleCOMessage(char* pPushBody, int PushBodyLen, void SmsPluginWapPushHandler::handleDrmVer1(char* pPushBody, int PushBodyLen) { - DRM_RESULT drmRt = DRM_RESULT_SUCCESS; + int drmRt = DRM_RETURN_SUCCESS; char* cid = NULL; AutoPtr buf(&cid); MSG_DEBUG("Received DRM RIGHTS OBJECT Type WAP Push Message."); + drm_request_type_e request_type = DRM_REQUEST_TYPE_REGISTER_LICENSE; + drm_register_lic_info_s lic_req_info; + drm_register_lic_resp_s lic_resp_info; - drmRt = drm_svc_register_ro( (unsigned char*)pPushBody, (unsigned int)PushBodyLen, - DRM_OMA_DRMV1_RIGHTS, (unsigned char**)&cid, - NULL, - DRM_ROAP_INIT_FROM_WAPPUSH, - NULL); + bzero(&lic_req_info, sizeof(drm_register_lic_info_s)); + bzero(&lic_resp_info, sizeof(drm_register_lic_resp_s)); + bzero(lic_req_info.lic_data, sizeof(lic_req_info.lic_data)); - if (drmRt == DRM_RESULT_SUCCESS) { + memcpy(lic_req_info.lic_data, pPushBody, PushBodyLen); + + lic_req_info.lic_version = DRM_OMA_DRMV1_RIGHTS; + lic_req_info.roap_init_src = DRM_ROAP_INIT_FROM_WAPPUSH; + lic_req_info.operation_callback.callback = NULL; + + drmRt = drm_process_request(request_type, &lic_req_info, &lic_resp_info); + if (drmRt == DRM_RETURN_SUCCESS) { MSG_DEBUG("DRM successfully registed to drm-service."); - return; } else { MSG_DEBUG("Fail to regist DRM to drm-service."); - return; } + + return; } diff --git a/plugin/sms_plugin/include/SmsPluginCallback.h b/plugin/sms_plugin/include/SmsPluginCallback.h index 231bd93..f1b5075 100755 --- a/plugin/sms_plugin/include/SmsPluginCallback.h +++ b/plugin/sms_plugin/include/SmsPluginCallback.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_CALLBACK_H #define SMS_PLUGIN_CALLBACK_H diff --git a/plugin/sms_plugin/include/SmsPluginCbMsgHandler.h b/plugin/sms_plugin/include/SmsPluginCbMsgHandler.h index cdcfd73..bac47f9 100755 --- a/plugin/sms_plugin/include/SmsPluginCbMsgHandler.h +++ b/plugin/sms_plugin/include/SmsPluginCbMsgHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_CBMSG_HANDLER_H #define SMS_PLUGIN_CBMSG_HANDLER_H diff --git a/plugin/sms_plugin/include/SmsPluginConcatHandler.h b/plugin/sms_plugin/include/SmsPluginConcatHandler.h index 48c3f97..4973f63 100755 --- a/plugin/sms_plugin/include/SmsPluginConcatHandler.h +++ b/plugin/sms_plugin/include/SmsPluginConcatHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_CONCAT_HANDLER_H #define SMS_PLUGIN_CONCAT_HANDLER_H diff --git a/plugin/sms_plugin/include/SmsPluginEventHandler.h b/plugin/sms_plugin/include/SmsPluginEventHandler.h index 47ff4a1..0b87220 100755 --- a/plugin/sms_plugin/include/SmsPluginEventHandler.h +++ b/plugin/sms_plugin/include/SmsPluginEventHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_EVENT_HANDLER_H #define SMS_PLUGIN_EVENT_HANDLER_H diff --git a/plugin/sms_plugin/include/SmsPluginMain.h b/plugin/sms_plugin/include/SmsPluginMain.h index 0f4e14a..4cc6293 100755 --- a/plugin/sms_plugin/include/SmsPluginMain.h +++ b/plugin/sms_plugin/include/SmsPluginMain.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_MAIN_H #define SMS_PLUGIN_MAIN_H diff --git a/plugin/sms_plugin/include/SmsPluginParamCodec.h b/plugin/sms_plugin/include/SmsPluginParamCodec.h index e73c0af..980d44a 100755 --- a/plugin/sms_plugin/include/SmsPluginParamCodec.h +++ b/plugin/sms_plugin/include/SmsPluginParamCodec.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_PARAMCODEC_H #define SMS_PLUGIN_PARAMCODEC_H diff --git a/plugin/sms_plugin/include/SmsPluginSatHandler.h b/plugin/sms_plugin/include/SmsPluginSatHandler.h index ff92fd7..84f0e32 100755 --- a/plugin/sms_plugin/include/SmsPluginSatHandler.h +++ b/plugin/sms_plugin/include/SmsPluginSatHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_SAT_HANDLER_H #define SMS_PLUGIN_SAT_HANDLER_H diff --git a/plugin/sms_plugin/include/SmsPluginSetting.h b/plugin/sms_plugin/include/SmsPluginSetting.h index 8df38ae..1aea56f 100755 --- a/plugin/sms_plugin/include/SmsPluginSetting.h +++ b/plugin/sms_plugin/include/SmsPluginSetting.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_SETTING_H #define SMS_PLUGIN_SETTING_H diff --git a/plugin/sms_plugin/include/SmsPluginSimMsg.h b/plugin/sms_plugin/include/SmsPluginSimMsg.h index 2827afa..73094fc 100755 --- a/plugin/sms_plugin/include/SmsPluginSimMsg.h +++ b/plugin/sms_plugin/include/SmsPluginSimMsg.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_SIMMSG_H #define SMS_PLUGIN_SIMMSG_H diff --git a/plugin/sms_plugin/include/SmsPluginStorage.h b/plugin/sms_plugin/include/SmsPluginStorage.h index a7cfe12..73d11d1 100755 --- a/plugin/sms_plugin/include/SmsPluginStorage.h +++ b/plugin/sms_plugin/include/SmsPluginStorage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_STORAGE_H #define SMS_PLUGIN_STORAGE_H diff --git a/plugin/sms_plugin/include/SmsPluginTextConvert.h b/plugin/sms_plugin/include/SmsPluginTextConvert.h index 0191a52..740ffe2 100755 --- a/plugin/sms_plugin/include/SmsPluginTextConvert.h +++ b/plugin/sms_plugin/include/SmsPluginTextConvert.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_TEXT_CONVERT_H #define SMS_PLUGIN_TEXT_CONVERT_H diff --git a/plugin/sms_plugin/include/SmsPluginTpduCodec.h b/plugin/sms_plugin/include/SmsPluginTpduCodec.h index 1740284..c013409 100755 --- a/plugin/sms_plugin/include/SmsPluginTpduCodec.h +++ b/plugin/sms_plugin/include/SmsPluginTpduCodec.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_TPDU_CODEC_H #define SMS_PLUGIN_TPDU_CODEC_H diff --git a/plugin/sms_plugin/include/SmsPluginTransport.h b/plugin/sms_plugin/include/SmsPluginTransport.h index bf1ba63..a521f95 100755 --- a/plugin/sms_plugin/include/SmsPluginTransport.h +++ b/plugin/sms_plugin/include/SmsPluginTransport.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_TRANSPORT_H #define SMS_PLUGIN_TRANSPORT_H diff --git a/plugin/sms_plugin/include/SmsPluginTypes.h b/plugin/sms_plugin/include/SmsPluginTypes.h index d7d978e..bc206df 100755 --- a/plugin/sms_plugin/include/SmsPluginTypes.h +++ b/plugin/sms_plugin/include/SmsPluginTypes.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_TYPES_H #define SMS_PLUGIN_TYPES_H diff --git a/plugin/sms_plugin/include/SmsPluginUAManager.h b/plugin/sms_plugin/include/SmsPluginUAManager.h index 6a9d452..f0a610f 100755 --- a/plugin/sms_plugin/include/SmsPluginUAManager.h +++ b/plugin/sms_plugin/include/SmsPluginUAManager.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_UA_MANAGER_H #define SMS_PLUGIN_UA_MANAGER_H diff --git a/plugin/sms_plugin/include/SmsPluginUDCodec.h b/plugin/sms_plugin/include/SmsPluginUDCodec.h index ab51327..b5fc77a 100755 --- a/plugin/sms_plugin/include/SmsPluginUDCodec.h +++ b/plugin/sms_plugin/include/SmsPluginUDCodec.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_UDCODEC_H #define SMS_PLUGIN_UDCODEC_H diff --git a/plugin/sms_plugin/include/SmsPluginWapPushHandler.h b/plugin/sms_plugin/include/SmsPluginWapPushHandler.h index c9bdfd9..5185d44 100755 --- a/plugin/sms_plugin/include/SmsPluginWapPushHandler.h +++ b/plugin/sms_plugin/include/SmsPluginWapPushHandler.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 SMS_PLUGIN_WAPPUSH_HANDLER_H #define SMS_PLUGIN_WAPPUSH_HANDLER_H diff --git a/proxy/MsgHandleControl.cpp b/proxy/MsgHandleControl.cpp index 384484f..9ae3bcd 100755 --- a/proxy/MsgHandleControl.cpp +++ b/proxy/MsgHandleControl.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/proxy/MsgHandleSetting.cpp b/proxy/MsgHandleSetting.cpp index 39b5f2b..14edb5c 100755 --- a/proxy/MsgHandleSetting.cpp +++ b/proxy/MsgHandleSetting.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgUtilFunction.h" diff --git a/proxy/MsgHandleStorage.cpp b/proxy/MsgHandleStorage.cpp index 9138ccf..5af0dc8 100755 --- a/proxy/MsgHandleStorage.cpp +++ b/proxy/MsgHandleStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgUtilFile.h" diff --git a/proxy/MsgHandleTransport.cpp b/proxy/MsgHandleTransport.cpp index 462a6df..03ca13f 100755 --- a/proxy/MsgHandleTransport.cpp +++ b/proxy/MsgHandleTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/proxy/MsgProxyListener.cpp b/proxy/MsgProxyListener.cpp index 27825b4..5293dc6 100755 --- a/proxy/MsgProxyListener.cpp +++ b/proxy/MsgProxyListener.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/test_app/MsgTestConvert.cpp b/test_app/MsgTestConvert.cpp index 4f40b9b..7ba4126 100755 --- a/test_app/MsgTestConvert.cpp +++ b/test_app/MsgTestConvert.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/MsgTestConvert.h b/test_app/MsgTestConvert.h index 1df0a12..8e0be80 100755 --- a/test_app/MsgTestConvert.h +++ b/test_app/MsgTestConvert.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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 MSG_TEST_CONVERT_H diff --git a/test_app/MsgTestSetting.cpp b/test_app/MsgTestSetting.cpp index e067ea6..5f8fc59 100755 --- a/test_app/MsgTestSetting.cpp +++ b/test_app/MsgTestSetting.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/MsgTestSetting.h b/test_app/MsgTestSetting.h index c035b16..96ebd06 100755 --- a/test_app/MsgTestSetting.h +++ b/test_app/MsgTestSetting.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** diff --git a/test_app/MsgTestStorage.cpp b/test_app/MsgTestStorage.cpp index c024fca..0460fae 100755 --- a/test_app/MsgTestStorage.cpp +++ b/test_app/MsgTestStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/MsgTestStorage.h b/test_app/MsgTestStorage.h index d998e4e..71e8dea 100755 --- a/test_app/MsgTestStorage.h +++ b/test_app/MsgTestStorage.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** diff --git a/test_app/MsgTestThreadView.cpp b/test_app/MsgTestThreadView.cpp index bcad8f6..2f41146 100755 --- a/test_app/MsgTestThreadView.cpp +++ b/test_app/MsgTestThreadView.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/MsgTestThreadView.h b/test_app/MsgTestThreadView.h index e81e077..5ddc417 100755 --- a/test_app/MsgTestThreadView.h +++ b/test_app/MsgTestThreadView.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** diff --git a/test_app/MsgTestTransport.cpp b/test_app/MsgTestTransport.cpp index e2262da..f43cafc 100755 --- a/test_app/MsgTestTransport.cpp +++ b/test_app/MsgTestTransport.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/MsgTestTransport.h b/test_app/MsgTestTransport.h index 762a633..d2ce670 100755 --- a/test_app/MsgTestTransport.h +++ b/test_app/MsgTestTransport.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** diff --git a/test_app/main.cpp b/test_app/main.cpp index 48a1fcb..c40a007 100755 --- a/test_app/main.cpp +++ b/test_app/main.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /*================================================================================================== diff --git a/test_app/main.h b/test_app/main.h index b904ac0..49158e2 100755 --- a/test_app/main.h +++ b/test_app/main.h @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ /** diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index bdd4b17..2c6df8e 100755 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -39,7 +39,7 @@ INCLUDE_DIRECTORIES( ) INCLUDE(FindPkgConfig) -pkg_check_modules(utils_pkgs REQUIRED glib-2.0 vconf db-util contacts-service dlog pmapi mm-session alarm-service notification drm-service) +pkg_check_modules(utils_pkgs REQUIRED glib-2.0 vconf db-util contacts-service dlog pmapi mm-session alarm-service notification drm-client drm-trusted) FOREACH(flag ${utils_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/utils/MsgContact.cpp b/utils/MsgContact.cpp index cd098af..519139f 100755 --- a/utils/MsgContact.cpp +++ b/utils/MsgContact.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ extern "C" { diff --git a/utils/MsgDebug.cpp b/utils/MsgDebug.cpp index a403c52..fa63eff 100755 --- a/utils/MsgDebug.cpp +++ b/utils/MsgDebug.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include diff --git a/utils/MsgDrmWrapper.cpp b/utils/MsgDrmWrapper.cpp index a183c6b..64a8acf 100755 --- a/utils/MsgDrmWrapper.cpp +++ b/utils/MsgDrmWrapper.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgDrmWrapper.h" @@ -44,19 +30,13 @@ #include #include #include -#include "drm-service.h" - - -typedef struct { - DRM_RIGHTS_CONSUME_HANDLE hRightsConsume; - MSG_DRM_TYPE eDRMType; //to have a drm type - char *szOpenedDRMFileName; -} MSG_OPENEDDRM_INFO_T; - +#include +#include +#include +#include #define MSG_MAX_DRM_FILE_PATH MSG_FILEPATH_LEN_MAX - bool MsgDrmRegisterFile(MSG_DRM_OPENMODE eMode, char *pBuffer, int nSize) { if (eMode == MSG_MODE_STREAM) { @@ -71,17 +51,22 @@ bool MsgDrmRegisterFile(MSG_DRM_OPENMODE eMode, char *pBuffer, int nSize) MSG_DEBUG("buffer = %s, nSize = %d", pBuffer, nSize); - if (!drm_svc_is_drm_file(pBuffer)) { // Check whether DRM file or not + drm_bool_type_e isDrm; + int eDRMResult = drm_is_drm_file(pBuffer, &isDrm); + + if (eDRMResult != DRM_RETURN_SUCCESS || isDrm != DRM_TRUE) { MSG_DEBUG("file is not drm file"); return false; } - DRM_RESULT eDRMResult = drm_svc_register_file(pBuffer); // Register a DCF file - if (DRM_RESULT_SUCCESS != eDRMResult) { - MSG_DEBUG("drm_svc_register_file is failed : %d", eDRMResult); + drm_request_type_e request_type = DRM_REQUEST_TYPE_REGISTER_FILE; + + eDRMResult = drm_process_request(request_type, pBuffer, NULL); + if (DRM_RETURN_SUCCESS != eDRMResult) { + MSG_DEBUG("drm_process_request is failed : %d", eDRMResult); return false; } - + MSG_END(); return true; } @@ -94,9 +79,11 @@ bool MsgDrmUnregisterFile(char *szFilename) MSG_DEBUG("szFilename = %s", szFilename); - DRM_RESULT eDRMResult = drm_svc_unregister_file(szFilename, DRM_TRUE); // Unregister a DCF file - if (DRM_RESULT_SUCCESS != eDRMResult) { - MSG_DEBUG("drm_svc_unregister_file : %d", eDRMResult); + drm_request_type_e request_type = DRM_REQUEST_TYPE_UNREGISTER_FILE; + + int eDRMResult = drm_process_request(request_type, szFilename, NULL); // Unregister a DCF file + if (DRM_RETURN_SUCCESS != eDRMResult) { + MSG_DEBUG("drm_process_request : %d", eDRMResult); return false; } @@ -105,7 +92,10 @@ bool MsgDrmUnregisterFile(char *szFilename) bool MsgDrmIsDrmFile(const char *szFilePath) { - if (drm_svc_is_drm_file(szFilePath) == DRM_FALSE) { + drm_bool_type_e isDrm; + int eDRMResult = drm_is_drm_file(szFilePath, &isDrm); + + if (eDRMResult != DRM_RETURN_SUCCESS || isDrm != DRM_TRUE) { MSG_DEBUG("file is not drm file"); return false; } @@ -123,9 +113,7 @@ bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile) if (strstr(inputFile, ".dm")) { MSG_DEBUG("Current File extension is .dm %s", inputFile); - DRM_RESULT ret; - DRM_CONVERT_HANDLE hConvert = NULL; - unsigned long written; + int ret; FILE *fp = MsgOpenFile(inputFile, "rb");//Check fp @@ -157,7 +145,7 @@ bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile) return false; } - char *buffer = (char *)malloc(bufLen); + unsigned char *buffer = (unsigned char*)malloc(bufLen); int readed_size = 0; int pathLen = strlen(inputFile); @@ -180,30 +168,46 @@ bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile) return false; } - ret = drm_svc_open_convert(outputFile, DRM_TRUE, &hConvert);//Check return value - if (ret != DRM_RESULT_SUCCESS) { + DRM_TRUSTED_CONVERT_HANDLE hConvert = NULL; + drm_trusted_opn_conv_info_s trusted_open_conv_input; + bzero(&trusted_open_conv_input, sizeof(drm_trusted_opn_conv_info_s)); + + strncpy(trusted_open_conv_input.filePath, outputFile, DRM_TRUSTED_MAX_FILEPATH_LEN); + trusted_open_conv_input.install_RO = DRM_TRUSTED_TRUE; + + ret = drm_trusted_open_convert(&trusted_open_conv_input, &hConvert); + if (ret != DRM_RETURN_SUCCESS) { free(buffer); MsgCloseFile(fp); - MSG_DEBUG("drm_svc_open_convert() return = failed (%d)", ret); + MSG_DEBUG("drm_trusted_open_convert() return = failed (%d)", ret); strncpy(outputFile, inputFile, MSG_MAX_DRM_FILE_PATH); return false; } - /*We can call drm_svc_write_convert in loop if file size is large*/ - ret = drm_svc_write_convert(hConvert, (unsigned char *)buffer, bufLen, &written);//check for error - if (ret != DRM_RESULT_SUCCESS) { + drm_trusted_write_conv_info_s trusted_write_conv_input; + drm_trusted_write_conv_resp_s trusted_write_conv_output; + + bzero(&trusted_write_conv_input, sizeof(drm_trusted_write_conv_info_s)); + bzero(&trusted_write_conv_output, sizeof(drm_trusted_write_conv_resp_s)); + + trusted_write_conv_input.data = buffer; + trusted_write_conv_input.data_len = bufLen; + + /*We can call drm_trusted_write_convert in loop if file size is large*/ + ret = drm_trusted_write_convert(&trusted_write_conv_input, &trusted_write_conv_output, hConvert); + if (ret != DRM_RETURN_SUCCESS) { free(buffer); MsgCloseFile(fp); - MSG_DEBUG("drm_svc_write_convert() return = failed (%d)", ret); + MSG_DEBUG("drm_trusted_write_convert() return = failed (%d)", ret); strncpy(outputFile, inputFile, MSG_MAX_DRM_FILE_PATH); return false; } - ret = drm_svc_close_convert(hConvert);//check for error - if (ret != DRM_RESULT_SUCCESS) { + ret = drm_trusted_close_convert(&hConvert); + if (ret != DRM_RETURN_SUCCESS) { free(buffer); MsgCloseFile(fp); - MSG_DEBUG("drm_svc_close_convert() return = failed (%d)", ret); + MSG_DEBUG("drm_trusted_close_convert() return = failed (%d)", ret); strncpy(outputFile, inputFile, MSG_MAX_DRM_FILE_PATH); return false; } @@ -222,156 +226,6 @@ bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile) return true; } -bool MsgDrmIsConvertedFL(char *szFilePath) -{ - int ret = 0; - - if (szFilePath == NULL) { - MSG_DEBUG("szFilePath is NULL."); - return false; - } - - MSG_DEBUG("szFilePath = [%s]", szFilePath); - - ret = drm_svc_is_converted_fl(szFilePath); - - if (ret != DRM_RESULT_SUCCESS) { - MSG_DEBUG("Drm2IsConvertedEmbeddedFile returns false ret = %d", ret); - return false; - } - - return true; -} - -int MsgDrmGetStreamSize(MSG_DRMHANDLE pHandle) -{ // Get DRM buffer size - MSG_DEBUG("start"); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return 0; - } - - drm_file_attribute_t tDRMAttribute = {0,}; - DRM_RESULT eDRMResult = drm_svc_get_fileattribute(pOpenDRMInfo->szOpenedDRMFileName, &tDRMAttribute); // Get attribute of DRM File - MSG_DEBUG("drm_svc_get_fileattribute : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult) { - return tDRMAttribute.size; - } - MSG_DEBUG("end : Fail"); - return 0; -} - -bool MsgDrmGetStream(MSG_DRMHANDLE pHandle, int nStreamSize, unsigned char *pStream) -{ // Get DRM buffer - MSG_DEBUG("start %d", nStreamSize); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - DRM_RESULT eDRMResult = DRM_RESULT_UNKNOWN_ERROR; - DRM_FILE_HANDLE hFileHandle = NULL; - eDRMResult = drm_svc_open_file(pOpenDRMInfo->szOpenedDRMFileName, DRM_PERMISSION_ANY, &hFileHandle); // Opens a DRM file - MSG_DEBUG("drm_svc_open_file(%s) : %d", pOpenDRMInfo->szOpenedDRMFileName, eDRMResult); - - unsigned int nRealReadSize = 0; - if (hFileHandle) { - eDRMResult = drm_svc_read_file(hFileHandle, pStream, nStreamSize, &nRealReadSize); // Read the Decrypted Data from File Handle - drm_svc_close_file(hFileHandle); // Close a DRM File which was opened before - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("end : Success"); - return true; - } - } - MSG_DEBUG("\n end : Fail \n=========================================\n"); - return false; -} - -bool MsgDrmOpen(MSG_DRM_OPENMODE eMode, const char *pBuffer, int nSize, MSG_DRMHANDLE *pHandle) -{ - MSG_DEBUG("start (%d, %s, %d)", eMode, pBuffer, nSize); - if (eMode == MSG_MODE_STREAM) { - MSG_DEBUG("end : Fail(eMode == MSG_MODE_STREAM)"); - return false; - } - - char szFullFilePath[MSG_MAX_DRM_FILE_PATH] = {0,}; - char szFinalFullFilePath[MSG_MAX_DRM_FILE_PATH] = {0,}; - memset(szFullFilePath, 0x00, sizeof(char) * MSG_MAX_DRM_FILE_PATH); - if (pBuffer) - strncpy(szFullFilePath, pBuffer, strlen(pBuffer)); - - MsgDrmConvertDmtoDcfType(szFullFilePath, szFinalFullFilePath); - - if (!drm_svc_is_drm_file(szFinalFullFilePath)) { // Check whether DRM file or not - MSG_DEBUG("return eDRM_NOT_DRM_FILE"); - *pHandle = NULL; - return false; - } - - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)malloc(sizeof(MSG_OPENEDDRM_INFO_T)); - if (pOpenDRMInfo) { - memset(pOpenDRMInfo, 0x0, sizeof(MSG_OPENEDDRM_INFO_T)); - pOpenDRMInfo->szOpenedDRMFileName = (char *)malloc(sizeof(char) * (strlen(szFinalFullFilePath) + 1)); - if (pOpenDRMInfo->szOpenedDRMFileName) { - memset(pOpenDRMInfo->szOpenedDRMFileName, 0x0, sizeof(char) * (strlen(szFinalFullFilePath) + 1)); - strncpy(pOpenDRMInfo->szOpenedDRMFileName, szFinalFullFilePath, strlen(szFinalFullFilePath)); - pOpenDRMInfo->eDRMType = MSG_DRM_NONE; - *pHandle = (MSG_DRMHANDLE)pOpenDRMInfo; - MSG_DEBUG("end : Success"); - - return true; - } - free(pOpenDRMInfo); - } - MSG_DEBUG("end : Fail"); - return false; -} - -bool MsgDrmClose(MSG_DRMHANDLE pHandle) -{ // Close DRM - MSG_DEBUG("start"); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - //free allocated memory from MsgDrmOpen - if (pOpenDRMInfo->szOpenedDRMFileName) { - free(pOpenDRMInfo->szOpenedDRMFileName); - pOpenDRMInfo->szOpenedDRMFileName = NULL; - } - - free(pOpenDRMInfo); - - MSG_DEBUG("end : Success"); - return true; -} - -bool MsgDrmGetMimeType(MSG_DRMHANDLE pHandle, char *szMimeType, int nMimeTypeLen) -{ - MSG_DEBUG("start"); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - drm_content_info_t tdcfContentinfo; - memset(&tdcfContentinfo, 0x00, sizeof(drm_content_info_t)); - DRM_RESULT eDRMResult = drm_svc_get_content_info(pOpenDRMInfo->szOpenedDRMFileName, &tdcfContentinfo); // Get attribute of DRM File - MSG_DEBUG("drm_svc_get_content_info : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("end Success (%s)", tdcfContentinfo.contentType); - snprintf(szMimeType, nMimeTypeLen, "%s", tdcfContentinfo.contentType); - return true; - } - MSG_DEBUG("end : Fail"); - return false; -} - bool MsgDrmGetDrmType(const char *szFileName, MSG_DRM_TYPE *eDRMType) { if (szFileName == NULL || eDRMType == NULL) { @@ -379,26 +233,31 @@ bool MsgDrmGetDrmType(const char *szFileName, MSG_DRM_TYPE *eDRMType) return false; } - if (drm_svc_get_drm_type(szFileName) == DRM_FILE_TYPE_OMA) { - drm_dcf_info_t drmInfo; - DRM_RESULT eDRMResult = drm_svc_get_dcf_file_info(szFileName, &drmInfo); // Get information of DRM contents - if (DRM_RESULT_SUCCESS != eDRMResult) { - MSG_DEBUG("drm_svc_get_dcf_file_info is Fail eDRMResult = %d", eDRMResult); + drm_file_type_e file_type; + int result = drm_get_file_type(szFileName, &file_type); + if (result != DRM_RETURN_SUCCESS) { + MSG_DEBUG("drm_get_file_type is failed %d", result); + return false; + } + + if (file_type == DRM_TYPE_OMA_V1) { + drm_file_info_s drmInfo; + bzero(&drmInfo, sizeof(drm_file_info_s)); + int eDRMResult = drm_get_file_info(szFileName, &drmInfo); + if (DRM_RETURN_SUCCESS != eDRMResult) { + MSG_DEBUG("drm_get_file_info is Fail eDRMResult = %d", eDRMResult); return false; } // Convert DRM_METHOD into MSG_DRM_TYPE - switch (drmInfo.method) { - case DRM_METHOD_FL: + switch (drmInfo.oma_info.method) { + case DRM_METHOD_TYPE_FORWARD_LOCK: *eDRMType = MSG_DRM_FORWARD_LOCK; break; - case DRM_METHOD_CD: + case DRM_METHOD_TYPE_COMBINED_DELIVERY: *eDRMType = MSG_DRM_COMBINED_DELIVERY; break; - case DRM_METHOD_SSD: - *eDRMType = MSG_DRM_SEPARATE_DELIVERY; - break; - case DRM_METHOD_SD: + case DRM_METHOD_TYPE_SEPARATE_DELIVERY: *eDRMType = MSG_DRM_SEPARATE_DELIVERY; break; default: @@ -407,162 +266,13 @@ bool MsgDrmGetDrmType(const char *szFileName, MSG_DRM_TYPE *eDRMType) } MSG_DEBUG("eDRMType : %d", *eDRMType); } else { - MSG_DEBUG("This is not a DRM_FILE_TYPE_OMA type"); + MSG_DEBUG("This is not a DRM_TYPE_OMA_V1 type"); return false; } return true; } -bool MsgDrmConsumeRights(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType, long nMiliSecs) -{ - MSG_DEBUG("start %d, %ld", eRightType, nMiliSecs); - MSG_DEBUG("end : Success"); - return true; -} - -bool MsgDrmIsAvailable(MSG_DRMHANDLE pHandle) -{ - MSG_DEBUG("start"); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - if (pOpenDRMInfo->eDRMType == MSG_DRM_FORWARD_LOCK) { //fl Àº ro ¾øÀ̵µ »ç¿ë°¡´É - MSG_DEBUG("end : Success"); - return true; - } - - DRM_PERMISSION_TYPE ePerType = DRM_PERMISSION_ANY; - drm_best_rights_t tBestRight; //ro ÀÖ´ÂÁö ¿©ºÎ¸¸ ¾Ë¸é µÇ¹Ç·Î drm_svc_get_best_ro ·Î üũÇϵµ·Ï ¼öÁ¤ - memset(&tBestRight, 0x00, sizeof(drm_best_rights_t)); - bool eReturn = false; - DRM_RESULT eDRMResult = drm_svc_get_best_ro(pOpenDRMInfo->szOpenedDRMFileName, ePerType, &tBestRight); // Check the valided Rights or not by DCF file - MSG_DEBUG("drm_svc_get_best_ro : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult && tBestRight.rightStatus == DRM_RIGHT_VALID) { - eReturn = true; - MSG_DEBUG("end : Success"); - } else { - MSG_DEBUG("end : Fail"); - } - return eReturn; -} - -bool MsgDrmOnStart(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType) -{ // Start consume - MSG_DEBUG("start %d", eRightType); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - if (pOpenDRMInfo->eDRMType == MSG_DRM_FORWARD_LOCK) { - MSG_DEBUG("end : Success"); - return true; - } - - DRM_PERMISSION_TYPE eDRMUsage = DRM_PERMISSION_ANY; - DRM_RIGHTS_CONSUME_HANDLE hRightsConsume = 0; - switch (eRightType) { - case MMS_DRM_RIGHT_PLAY: - eDRMUsage = DRM_PERMISSION_PLAY; - break; - case MSG_DRM_RIGHT_DISPLAY: - eDRMUsage = DRM_PERMISSION_DISPLAY; - break; - case MSG_DRM_RIGHT_EXECUTE: - eDRMUsage = DRM_PERMISSION_EXECUTE; - break; - case MSG_DRM_RIGHT_PRINT: - eDRMUsage = DRM_PERMISSION_PRINT; - break; - case MSG_DRM_RIGHT_EXPORT: - eDRMUsage = DRM_PERMISSION_EXPORT_MOVE; // DRM_PERMISSION_EXPORT_COPY µµ »ç¿ëÇؾßÇÔ - break; - } - DRM_RESULT eDRMResult = drm_svc_open_consumption(pOpenDRMInfo->szOpenedDRMFileName, eDRMUsage, &hRightsConsume); // Open for consumption - MSG_DEBUG("drm_svc_open_consumption : %d", eDRMResult); - if (DRM_RESULT_SUCCESS != eDRMResult) { - MSG_DEBUG("end : Fail"); - return false; - } - pOpenDRMInfo->hRightsConsume = hRightsConsume; - eDRMResult = drm_svc_start_consumption(pOpenDRMInfo->hRightsConsume); // Start the consumption - MSG_DEBUG("drm_svc_start_consumption : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("end : Success"); - return true; - } - MSG_DEBUG("end : Fail"); - return false; -} - -bool MsgDrmOnPause(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType) -{ - MSG_DEBUG("start %d", eRightType); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - if (pOpenDRMInfo->eDRMType == MSG_DRM_FORWARD_LOCK) { - MSG_DEBUG("end : Success"); - return true; - } - - DRM_RESULT eDRMResult = drm_svc_pause_consumption(pOpenDRMInfo->hRightsConsume); // Pause the consumption - MSG_DEBUG("drm_svc_pause_consumption : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("end : Success"); - return true; - } - MSG_DEBUG("end : Fail"); - return false; -} - -bool MsgDrmOnResume(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType) -{ - MSG_DEBUG("start %d", eRightType); - MSG_DEBUG("end : Success"); - return true; -} - -bool MsgDrmOnStop(MSG_DRMHANDLE pHandle, MSG_DRM_RIGHT_TYPE eRightType) -{ - MSG_DEBUG("start %d", eRightType); - MSG_OPENEDDRM_INFO_T *pOpenDRMInfo = (MSG_OPENEDDRM_INFO_T *)pHandle; - if (pOpenDRMInfo == NULL) { - MSG_DEBUG("end : Fail"); - return false; - } - - if (pOpenDRMInfo->eDRMType == MSG_DRM_FORWARD_LOCK) { - MSG_DEBUG("end : Success"); - return true; - } - - DRM_RESULT eDRMResult = drm_svc_stop_consumption(pOpenDRMInfo->hRightsConsume); // Stop the consumption - MSG_DEBUG("drm_svc_stop_consumption : %d", eDRMResult); - if (DRM_RESULT_SUCCESS != eDRMResult) { - MSG_DEBUG("end : Fail"); - return false; - } - - eDRMResult = drm_svc_close_consumption(&(pOpenDRMInfo->hRightsConsume)); // Close the consumption - MSG_DEBUG("drm_svc_close_consumption : %d", eDRMResult); - if (DRM_RESULT_SUCCESS == eDRMResult) { - pOpenDRMInfo->hRightsConsume = 0; - MSG_DEBUG("end : Success"); - return true; - } - MSG_DEBUG("end : Fail"); - return false; -} - bool MsgDrmGetMimeTypeEx(const char *szFileName, char *szMimeType, int nMimeTypeLen) { if (!szFileName || !szMimeType || !nMimeTypeLen) { @@ -574,19 +284,19 @@ bool MsgDrmGetMimeTypeEx(const char *szFileName, char *szMimeType, int nMimeType strncpy(strTemp, szFileName, strlen(szFileName)); - drm_content_info_t tdcfContentinfo; - memset(&tdcfContentinfo, 0x00, sizeof(drm_content_info_t)); - DRM_RESULT eDRMResult = drm_svc_get_content_info(strTemp, &tdcfContentinfo); // Get attribute of DRM File - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("contentType = %s", tdcfContentinfo.contentType); - snprintf(szMimeType, nMimeTypeLen, "%s", tdcfContentinfo.contentType); + drm_content_info_s tdcfContentinfo; + memset(&tdcfContentinfo, 0x00, sizeof(drm_content_info_s)); + int eDRMResult = drm_get_content_info(strTemp, &tdcfContentinfo); // Get attribute of DRM File + if (DRM_RETURN_SUCCESS == eDRMResult) { + MSG_DEBUG("contentType = %s", tdcfContentinfo.mime_type); + snprintf(szMimeType, nMimeTypeLen, "%s", tdcfContentinfo.mime_type); - return true; } else { - MSG_DEBUG("drm_svc_get_content_info is failed %d", eDRMResult); + MSG_DEBUG("drm_get_content_info is failed %d", eDRMResult); + return false; } - return false; + return true; } bool MsgDrmGetContentID(const char *szFileName, char *szContentID, int nContentIDLen) @@ -600,18 +310,18 @@ bool MsgDrmGetContentID(const char *szFileName, char *szContentID, int nContentI strncpy(strTemp, szFileName, sizeof(strTemp)); - drm_content_info_t tdcfContentinfo; - memset(&tdcfContentinfo, 0x00, sizeof(drm_content_info_t)); - DRM_RESULT eDRMResult = drm_svc_get_content_info(strTemp, &tdcfContentinfo); - if (DRM_RESULT_SUCCESS == eDRMResult) { - MSG_DEBUG("contentID = %s", tdcfContentinfo.contentID); - snprintf(szContentID, nContentIDLen, "%s", tdcfContentinfo.contentID); + drm_content_info_s content_info; + memset(&content_info, 0x00, sizeof(drm_content_info_s)); - return true; + int result = drm_get_content_info(strTemp, &content_info); + if (DRM_RETURN_SUCCESS == result) { + MSG_DEBUG("contentID = %s", content_info.content_id); + snprintf(szContentID, nContentIDLen, "%s", content_info.content_id); } else { - MSG_DEBUG("drm_svc_get_content_info is failed %d", eDRMResult); + MSG_DEBUG("drm_get_content_info is failed %d", result); + return false; } - return false; + return true; } diff --git a/utils/MsgException.cpp b/utils/MsgException.cpp index a7f373a..8b85869 100755 --- a/utils/MsgException.cpp +++ b/utils/MsgException.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgException.h" diff --git a/utils/MsgGconfWrapper.cpp b/utils/MsgGconfWrapper.cpp index a98defd..29683dc 100755 --- a/utils/MsgGconfWrapper.cpp +++ b/utils/MsgGconfWrapper.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/utils/MsgIpcSocket.cpp b/utils/MsgIpcSocket.cpp index 832a75a..e3793db 100755 --- a/utils/MsgIpcSocket.cpp +++ b/utils/MsgIpcSocket.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/utils/MsgMemory.cpp b/utils/MsgMemory.cpp index 0d2fd4c..43e1b9e 100755 --- a/utils/MsgMemory.cpp +++ b/utils/MsgMemory.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/utils/MsgMmsMessage.cpp b/utils/MsgMmsMessage.cpp index 7526961..a712609 100755 --- a/utils/MsgMmsMessage.cpp +++ b/utils/MsgMmsMessage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/utils/MsgMutex.cpp b/utils/MsgMutex.cpp index 746fdaf..ff54533 100755 --- a/utils/MsgMutex.cpp +++ b/utils/MsgMutex.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include /* O_RDWR */ #include diff --git a/utils/MsgNotificationWrapper.cpp b/utils/MsgNotificationWrapper.cpp index 26fac92..ab6e54e 100755 --- a/utils/MsgNotificationWrapper.cpp +++ b/utils/MsgNotificationWrapper.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgContact.h" diff --git a/utils/MsgSoundPlayer.cpp b/utils/MsgSoundPlayer.cpp index b7c9b95..1b4dcca 100755 --- a/utils/MsgSoundPlayer.cpp +++ b/utils/MsgSoundPlayer.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include diff --git a/utils/MsgSqliteWrapper.cpp b/utils/MsgSqliteWrapper.cpp index a0c641d..deb9781 100755 --- a/utils/MsgSqliteWrapper.cpp +++ b/utils/MsgSqliteWrapper.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/utils/MsgUtilFile.cpp b/utils/MsgUtilFile.cpp index ca6512a..08eec9a 100755 --- a/utils/MsgUtilFile.cpp +++ b/utils/MsgUtilFile.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include #include diff --git a/utils/MsgUtilFunction.cpp b/utils/MsgUtilFunction.cpp index e8ed7ef..b54e77a 100755 --- a/utils/MsgUtilFunction.cpp +++ b/utils/MsgUtilFunction.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgUtilFunction.h" diff --git a/utils/MsgUtilStorage.cpp b/utils/MsgUtilStorage.cpp index 74a755d..c706151 100755 --- a/utils/MsgUtilStorage.cpp +++ b/utils/MsgUtilStorage.cpp @@ -1,32 +1,18 @@ -/* -* -* Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved. -* -* This file is part of msg-service. -* -* Contact: Jaeyun Jeong -* Sangkoo Kim -* Seunghwan Lee -* SoonMin Jung -* Jae-Young Lee -* KeeBum Kim -* -* PROPRIETARY/CONFIDENTIAL -* -* This software is the confidential and proprietary information of -* SAMSUNG ELECTRONICS ("Confidential Information"). You shall not -* disclose such Confidential Information and shall use it only in -* accordance with the terms of the license agreement you entered -* into with SAMSUNG ELECTRONICS. -* -* SAMSUNG make no representations or warranties about the suitability -* of the software, either express or implied, including but not limited -* to the implied warranties of merchantability, fitness for a particular -* purpose, or non-infringement. SAMSUNG shall not be liable for any -* damages suffered by licensee as a result of using, modifying or -* distributing this software or its derivatives. -* -*/ + /* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.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.tizenopensource.org/license + * + * 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. + */ #include "MsgDebug.h" #include "MsgUtilFile.h" -- 2.7.4