// // Tizen Web Device API // Copyright (c) 2012 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the License); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT 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 MESSAGEFOLDER_H #define MESSAGEFOLDER_H #include #include #include #include #include "IMessageFolder.h" #include namespace DeviceAPI { namespace Messaging { class MessageFolder : public IMessageFolder { public: typedef enum { FOLDER_INBOX = 1, FOLDER_OUTBOX = 2, FOLDER_DRAFTS = 3, FOLDER_SENTBOX = 4, FOLDER_NOTSTANDARD = 10, } MsgFolder_FolerType; typedef enum { TYPE_SMS = 1, TYPE_MMS = 2, TYPE_EMAIL = 3, TYPE_CHAT = 4, } MsgFolder_ContentType; MessageFolder(); MessageFolder(email_mailbox_t m_mailboxes); ~MessageFolder(); void setName(std::string name); void setSynchronizable(bool synchronizable); unsigned long getId(); unsigned long getParentId(); unsigned long getAccountId(); unsigned short getContentType(); std::string getName(); std::string getPath(); unsigned short getType(); bool getSynchronizable(); int getFolderType(email_mailbox_type_e folderType); // int convertFolderId(const string& arg) const; private: unsigned long m_id; unsigned long m_parentid; unsigned long m_accountid; unsigned short m_contentType; std::string m_name; std::string m_path; unsigned short m_type; bool m_synchronizable; }; } } #endif