diff options
Diffstat (limited to 'mobile_src/Messaging/EmptyMessage.cpp')
-rw-r--r-- | mobile_src/Messaging/EmptyMessage.cpp | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/mobile_src/Messaging/EmptyMessage.cpp b/mobile_src/Messaging/EmptyMessage.cpp new file mode 100644 index 0000000..61f2524 --- /dev/null +++ b/mobile_src/Messaging/EmptyMessage.cpp @@ -0,0 +1,124 @@ +// +// 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. +// + +#include "EmptyMessage.h" +//#include <Commons/Exception.h> +//#include "ReqReceiverMessage.h> +#include "Messaging.h" +//#include "CallbackMgr.h" +//#include "MsgServiceHandleMgr.h" + +extern "C" { +//#include <MapiStorage.h> +//#include <MapiMessage.h> +} + +#include <Logger.h> + +using namespace std; + +namespace DeviceAPI { +namespace Messaging { + +EmptyMessage::EmptyMessage(const string& id) : + IMessage(EMPTY_MESSAGE, id), + m_messageData(NULL) +{ + LoggerD("enter"); + LoggerD("m_id=" << getIdRef()); + LoggerD("m_msgType=" << getMessageType()); +} + +EmptyMessage::~EmptyMessage() +{ + LoggerD("enter"); + + if (m_messageData) { + // release platform message structure + msg_release_struct(&m_messageData); + m_messageData = NULL; + } +} + +void EmptyMessage::update(bool /*draftsOnly*/) +{ + LoggerD("updating m_id=" << getIdRef()); +} + +void EmptyMessage::readAllData() +{ + //#warning "TODO" +} + +void EmptyMessage::moveToFolder(const FolderType newFolder) +{ + //#warning "TODO" +} + +void EmptyMessage::moveToFolder(const string& newFolder) +{ + //#warning "TODO" +} + +void EmptyMessage::copyToFolder(const FolderType newFolder) +{ + //#warning "TODO" +} + +void EmptyMessage::copyToFolder(const string& newFolder) +{ + //#warning "TODO" +} + +void EmptyMessage::remove() +{ + //#warning "TODO" +} + +void EmptyMessage::updateIsRead() +{ + //#warning "TODO" +} + +void EmptyMessage::updateMessage() +{ + //#warning "TODO" +} + +void EmptyMessage::addMessageToDraft() +{ + //#warning "TODO" +} + +void EmptyMessage::createSendMessage() +{ + //#warning "TODO" +} + +int EmptyMessage::send() +{ + //#warning "TODO" + return -1; +} + +void EmptyMessage::sendCancel(int handle) +{ + //#warning "TODO" +} + +} +} |