Update change log and spec for wrt-plugins-tizen_0.2.73
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Messaging / EmptyMessage.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 /**
19  *
20  *
21  * @file       EmptyMessage.h
22  * @author     Pawel Misiak (p.misiak@samsung.com)
23  * @version    0.1
24  * @brief
25  */
26 #ifndef EMPTYMESSAGE_H
27 #define EMPTYMESSAGE_H
28
29 #include <API/Messaging/IEmptyMessage.h>
30 #include <string>
31 extern "C" {
32 #include <msg_transport_types.h>
33 }
34
35 namespace TizenApis {
36 namespace Platform {
37 namespace Messaging {
38
39 class EmptyMessage : public Api::Messaging::IEmptyMessage
40 {
41   public:
42     explicit EmptyMessage(const std::string& id = "");
43
44     virtual ~EmptyMessage();
45
46     // implementation of interface of IMessage class
47     virtual void update(bool draftsOnly = false);
48
49     virtual void readAllData();
50
51     virtual void moveToFolder(const Api::Messaging::FolderType newFolder);
52
53     virtual void moveToFolder(const std::string& newFolder);
54
55     virtual void copyToFolder(const Api::Messaging::FolderType newFolder);
56
57     virtual void copyToFolder(const std::string& newFolder);
58
59     virtual void remove();
60
61         virtual void updateIsRead();
62         
63         virtual void updateMessage();
64         
65         virtual void addMessageToDraft();
66         
67         virtual void createSendMessage();
68
69     virtual int send();
70
71     virtual void sendCancel(int handle);
72
73         private:
74           msg_struct_t m_messageData;
75         
76 };
77 }
78 }
79 }
80 #endif