diff options
Diffstat (limited to 'mobile_src/Messaging/EventAddDraftMessage.h')
-rw-r--r-- | mobile_src/Messaging/EventAddDraftMessage.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/mobile_src/Messaging/EventAddDraftMessage.h b/mobile_src/Messaging/EventAddDraftMessage.h new file mode 100644 index 0000000..d5fa740 --- /dev/null +++ b/mobile_src/Messaging/EventAddDraftMessage.h @@ -0,0 +1,70 @@ +// +// 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. +// + + + +#ifndef EVENTADDDRAFTMESSAGE_H +#define EVENTADDDRAFTMESSAGE_H + +#include <vector> +#include <dpl/shared_ptr.h> +#include <Commons/IEvent.h> +#include "IMessage.h" + +namespace DeviceAPI { +namespace Messaging { + +class EventAddDraftMessage; + +typedef DPL::SharedPtr<EventAddDraftMessage> EventAddDraftMessagePtr; + +class EventAddDraftMessage : + public WrtDeviceApis::Commons::IEvent<EventAddDraftMessage> +{ + private: + long m_index; + int m_type; + + public: + EventAddDraftMessage() : m_index(-1), m_type(-1){ + } + + IMessagePtr msg; + + void setIndex(long index){ + m_index = index; + } + + long getIndex(){ + return m_index; + } + + void setType(int type){ + m_type = type; + } + + int getType(){ + return m_type; + } + + virtual void clearOnCancel() + { + } +}; +} +} +#endif |