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.
21 * @file EmptyMessage.h
22 * @author Pawel Misiak (p.misiak@samsung.com)
26 #ifndef EMPTYMESSAGE_H
27 #define EMPTYMESSAGE_H
29 #include <API/Messaging/IEmptyMessage.h>
32 #include <msg_transport_types.h>
39 class EmptyMessage : public Api::Messaging::IEmptyMessage
42 explicit EmptyMessage(const std::string& id = "");
44 virtual ~EmptyMessage();
46 // implementation of interface of IMessage class
47 virtual void update(bool draftsOnly = false);
49 virtual void readAllData();
51 virtual void moveToFolder(const Api::Messaging::FolderType newFolder);
53 virtual void moveToFolder(const std::string& newFolder);
55 virtual void copyToFolder(const Api::Messaging::FolderType newFolder);
57 virtual void copyToFolder(const std::string& newFolder);
59 virtual void remove();
61 virtual void updateIsRead();
63 virtual void updateMessage();
65 virtual void addMessageToDraft();
67 virtual void createSendMessage();
71 virtual void sendCancel(int handle);
74 msg_struct_t m_messageData;