2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #ifndef WRTPLUGINS_MESSAGING_EVENTMESSAGERECEIVED_H_
19 #define WRTPLUGINS_MESSAGING_EVENTMESSAGERECEIVED_H_
21 #include <dpl/shared_ptr.h>
22 #include <Commons/ListenerEvent.h>
24 #include "IConversation.h"
25 #include "IMessageFolder.h"
30 class EventMessageReceived : public WrtDeviceApis::Commons::ListenerEvent<
42 virtual ~EventMessageReceived();
44 IMessagePtr getMessage() const;
45 IConversationPtr getConversation() const;
46 IMessageFolderPtr getMessageFolder() const;
48 void setMessage(const IMessagePtr& message);
49 void setConversation(const IConversationPtr &conversation);
50 void setMessageFolder(const IMessageFolderPtr &messagefolder);
52 void setMsg_Event_Type(Msg_EventType state);
53 Msg_EventType getMsg_Event_Type() { return m_msg_event_type;}
57 IConversationPtr m_conversation;
58 IMessagePtr m_message;
59 IMessageFolderPtr m_messagefolder;
60 Msg_EventType m_msg_event_type;
64 typedef DPL::SharedPtr<EventMessageReceived> EventMessageReceivedPtr;
67 #endif // WRTPLUGINS_MESSAGING_EVENTMESSAGERECEIVED_H_