Update change log and spec for wrt-plugins-tizen_0.2.73
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Messaging / EmptyMessage.cpp
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.cpp
22  * @author     Pawel Misiak (p.misiak@samsung.com)
23  * @version    0.1
24  * @brief
25  */
26 #include "EmptyMessage.h"
27 #include <dpl/log/log.h>
28 //#include <Commons/Exception.h>
29 //#include <API/Messaging/ReqReceiverMessage.h>
30 #include "Messaging.h"
31 //#include "CallbackMgr.h"
32 //#include "MsgServiceHandleMgr.h"
33
34 extern "C" {
35 //#include <MapiStorage.h>
36 //#include <MapiMessage.h>
37 }
38
39 using namespace std;
40 using namespace TizenApis::Api::Messaging;
41
42 namespace TizenApis {
43 namespace Platform {
44 namespace Messaging {
45
46 EmptyMessage::EmptyMessage(const string& id) :
47     IMessage(EMPTY_MESSAGE, id),
48     m_messageData(NULL)
49 {
50     LogDebug("enter");
51     LogDebug("m_id=" << getIdRef());
52     LogDebug("m_msgType=" << getMessageType());
53 }
54
55 EmptyMessage::~EmptyMessage()
56 {
57     LogDebug("enter");
58
59     if (m_messageData) {
60         // release platform message structure
61         msg_release_struct(&m_messageData);
62     }
63 }
64
65 void EmptyMessage::update(bool /*draftsOnly*/)
66 {
67     LogDebug("updating m_id=" << getIdRef());
68 }
69
70 void EmptyMessage::readAllData()
71 {
72     //#warning "TODO"
73 }
74
75 void EmptyMessage::moveToFolder(const FolderType newFolder)
76 {
77     //#warning "TODO"
78 }
79
80 void EmptyMessage::moveToFolder(const string& newFolder)
81 {
82     //#warning "TODO"
83 }
84
85 void EmptyMessage::copyToFolder(const FolderType newFolder)
86 {
87     //#warning "TODO"
88 }
89
90 void EmptyMessage::copyToFolder(const string& newFolder)
91 {
92     //#warning "TODO"
93 }
94
95 void EmptyMessage::remove()
96 {
97     //#warning "TODO"
98 }
99
100 void EmptyMessage::updateIsRead()
101 {
102     //#warning "TODO"
103 }
104
105 void EmptyMessage::updateMessage()
106 {
107     //#warning "TODO"
108 }
109
110 void EmptyMessage::addMessageToDraft()
111 {
112     //#warning "TODO"
113 }
114
115 void EmptyMessage::createSendMessage()
116 {
117     //#warning "TODO"
118 }
119
120 int EmptyMessage::send()
121 {
122     //#warning "TODO"
123     return -1;
124 }
125
126 void EmptyMessage::sendCancel(int handle)
127 {
128     //#warning "TODO"
129 }
130
131 }
132 }
133 }