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.
17 #ifndef _TIZEN_MESSAGING_EMAILCONVERTER_H_
18 #define _TIZEN_MESSAGING_EMAILCONVERTER_H_
20 #include <email-types.h>
22 #include <API/Messaging/MessagePriority.h>
23 #include <API/Messaging/IMessagingTypes.h>
28 namespace EmailConverter {
29 email_mail_priority_t toMailPriority(Api::Messaging::MessagePriority::Priority priority);
31 Api::Messaging::MessagePriority::Priority toMessagePriority(email_mail_priority_t priority);
32 Api::Messaging::MessagePriority::Priority toMessagePriority(unsigned char priority);
34 email_mailbox_type_e toMailboxType(Api::Messaging::FolderType folder);
36 const char* toMailboxName(Api::Messaging::FolderType folder);
38 Api::Messaging::FolderType toFolderType(email_mailbox_type_e mailboxType);
39 Api::Messaging::FolderType toFolderType(int mailboxType);