2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef MESSAGEFOLDER_H
19 #define MESSAGEFOLDER_H
21 #include <dpl/shared_ptr.h>
25 #include <API/Messaging/IMessageFolder.h>
27 #include <email-types.h>
35 class MessageFolder : public Api::Messaging::IMessageFolder
45 FOLDER_NOTSTANDARD = 7,
46 } MsgFolder_FolerType;
54 } MsgFolder_ContentType;
57 MessageFolder(email_mailbox_t m_mailboxes);
60 void setName(std::string name);
61 void setSynchronizable(bool synchronizable);
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;
76 unsigned long m_parentid;
77 unsigned long m_accountid;
78 unsigned short m_contentType;
81 unsigned short m_type;
82 bool m_synchronizable;