Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Messaging / IMessagingTypes.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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. 
15 */
16
17
18 /**
19  *
20  *
21  * @file       IMessagingTypes.h
22  * @author     Pawel Misiak (p.misiak@samsung.com)
23  * @version    0.1
24  * @brief
25  */
26 #ifndef IMESSAGINGTYPES_H
27 #define IMESSAGINGTYPES_H
28
29 namespace TizenApis {
30 namespace Api {
31 namespace Messaging {
32
33 //--------------------------------------------------------------------------
34
35 #define NAME_SMS_TYPE           "SMS"
36 #define NAME_MMS_TYPE   "MMS"
37 #define NAME_EMAIL_TYPE         "EMAIL"
38 #define NAME_CHAT_TYPE  "CHAT"
39
40 enum MessageType
41 {
42         UNKNOWN = 0,
43         SMS = 1,
44         MMS,
45         EMAIL,
46         CHAT,
47         BINARYSMS,
48         VIRTUAL_MESSAGE,
49         MESSAGETYPE_COUNT
50 };
51
52 enum MessageStatus
53 {
54         MESSAGE_STATUS_CREATED = 0,
55         MESSAGE_STATUS_DRAFT,
56         MESSAGE_STATUS_SENDING ,
57         MESSAGE_STATUS_SENT,
58         MESSAGE_STATUS_LOADED,
59         MESSAGE_STATUS_FAILED
60 };
61
62 //--------------------------------------------------------------------------
63
64 enum FolderType
65 {
66     TEMP_FOLDER =0,
67     INBOX = 1,
68     OUTBOX = 2,
69     DRAFTBOX = 3,
70     SENTBOX =4,
71     SPAMBOX,
72     ALL_FOLDERS,
73     USERDEFINED_FOLDER,
74     FOLDERTYPE_COUNT
75 };
76
77 //--------------------------------------------------------------------------
78
79 enum AddressType
80 {
81     TO_ADDRESS,
82     CC_ADDRESS,
83     BCC_ADDRESS,
84     ADDRESS_COUNT
85 };
86 }
87 }
88 }
89 #endif
90