Update change log and spec for wrt-plugins-tizen_0.2.73
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Messaging / MessageFolder.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 #ifndef MESSAGEFOLDER_H
19 #define MESSAGEFOLDER_H
20
21 #include <dpl/shared_ptr.h>
22 #include <map>
23 #include <string>
24 #include <vector>
25 #include <API/Messaging/IMessageFolder.h>
26
27 #include <email-types.h>
28
29
30 namespace TizenApis {
31 namespace Platform {
32 namespace Messaging {
33
34
35 class MessageFolder : public Api::Messaging::IMessageFolder
36 {
37 public: 
38
39     typedef enum
40         {
41           FOLDER_INBOX = 1,
42           FOLDER_OUTBOX = 2,
43           FOLDER_DRAFTS = 3,
44           FOLDER_SENTBOX = 4,
45           FOLDER_NOTSTANDARD = 7,                 
46         } MsgFolder_FolerType;
47
48         typedef enum
49         {
50           TYPE_SMS = 1,
51           TYPE_MMS = 2,
52           TYPE_EMAIL = 3,
53           TYPE_CHAT = 4,
54         } MsgFolder_ContentType;        
55
56         MessageFolder();
57         MessageFolder(email_mailbox_t m_mailboxes);     
58         ~MessageFolder();
59
60         void setName(std::string name);
61         void setSynchronizable(bool synchronizable);
62         
63         unsigned long getId();
64         unsigned long getParentId();
65         unsigned long getAccountId();
66         unsigned short getContentType();
67         std::string getName();
68         std::string getPath();
69         unsigned short getType();
70         bool getSynchronizable();
71         int getFolderType(email_mailbox_type_e folderType);
72 //      int convertFolderId(const string& arg) const;
73         
74 private:        
75         unsigned long m_id;
76         unsigned long m_parentid;
77         unsigned long m_accountid;
78         unsigned short m_contentType;
79         std::string m_name;
80         std::string m_path;
81         unsigned short m_type;
82         bool m_synchronizable;
83
84 };
85 }
86 }
87 }
88
89 #endif
90