2 * Copyright 2012-2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef MSG_STORAGE_TYPES_H
18 #define MSG_STORAGE_TYPES_H
22 * @file MsgStorageTypes.h
23 * @brief Defines transport types of messaging framework
29 * @section Introduction
30 * - Introduction : Overview on Messaging Storage Types
32 * - Program : Messaging Storage Types Reference
35 /*==================================================================================================
37 ==================================================================================================*/
42 #include "msg_storage_types.h"
46 * @ingroup MESSAGING_FRAMEWORK
47 * @defgroup MESSAGING_STORAGE_TYPES Messaging Storage Types
50 /*==================================================================================================
52 ==================================================================================================*/
55 * @brief Represents the count of read/unread messages.
59 int nReadCnt; /**< The count of read messages */
60 int nUnreadCnt; /**< The count of unread messages */
61 int nSms; /**< The count of sms type messages */
62 int nMms; /**< The count of mms type messages */
67 * @brief Represents a reject message information.
71 msg_message_id_t msgId; /**< Indicates the unique message ID. */
72 char msgText[MAX_MSG_TEXT_LEN+1]; /**< Indicates the message text. */
74 } MSG_REJECT_MSG_INFO_S;
78 * @brief Represents folder information.
82 msg_folder_id_t folderId; /**< Indicates the unique folder ID. */
83 char folderName[MAX_FOLDER_NAME_SIZE+1]; /**< Indicates the name of the folder. */
84 msg_folder_type_t folderType; /**< Indicates the folder type. */
89 * @brief Represents contact information.
93 msg_contact_id_t contactId; /**< Indicates the unique contact ID. */
94 char firstName[MAX_DISPLAY_NAME_LEN+1]; /**< Indicates the first name of contact. */
95 char lastName[MAX_DISPLAY_NAME_LEN+1]; /**< Indicates the last name of contact. */
96 char imagePath[MAX_IMAGE_PATH_LEN+1]; /**< Indicates the image path of contact. */
101 * @brief Represents a sort rule. \n
102 * The sort rule structure includes a sort type and a sort order. \n
103 * Applications can use the sort rule when querying messages.
107 msg_sort_type_t sortType; /**< Indicates the sort type */
108 bool bAscending; /**< Indicates the sort order which is ascending or descending */
113 * @brief Represents SIM ID List.
117 unsigned int count; /**< The total number of SIM Msg ID*/
118 msg_sim_id_t simId[MAX_SEGMENT_NUM]; /**< The SIM Msg ID List */
123 * @brief Represents recipien list information.
128 MSG_ADDRESS_INFO_S* recipientAddr;
129 } MSG_RECIPIENTS_LIST_S;
133 * @brief Represents search condition values.
137 msg_folder_id_t folderId;
138 msg_message_type_t msgType;
142 } MSG_SEARCH_CONDITION_S;
148 char appid[MAX_WAPPUSH_ID_LEN];
149 } PUSH_APPLICATION_INFO_S;
151 #endif // MSG_STORAGE_TYPES_H