diff options
Diffstat (limited to 'mobile_src/Messaging/EventDeleteConversations.h')
-rw-r--r-- | mobile_src/Messaging/EventDeleteConversations.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/mobile_src/Messaging/EventDeleteConversations.h b/mobile_src/Messaging/EventDeleteConversations.h new file mode 100644 index 0000000..4bbf5b7 --- /dev/null +++ b/mobile_src/Messaging/EventDeleteConversations.h @@ -0,0 +1,75 @@ +// +// 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 EVENT_DELETE_CONVERSATIONS_H +#define EVENT_DELETE_CONVERSATIONS_H + +#include <vector> +#include <dpl/shared_ptr.h> +#include <Commons/IEvent.h> +#include "IMessage.h" +#include <IFilter.h> + +namespace DeviceAPI { +namespace Messaging { + +class EventDeleteConversations; + +typedef DPL::SharedPtr<EventDeleteConversations> EventDeleteConversationsPtr; + +class EventDeleteConversations : + public WrtDeviceApis::Commons::IEvent<EventDeleteConversations> +{ +private: + std::vector<IConversationPtr> m_conversations; + bool m_FilterUse; + DeviceAPI::Tizen::SortModePtr m_sortMode; + DeviceAPI::Tizen::FilterPtr m_filter; + unsigned long m_limit; + unsigned long m_offset; + long m_index; + int m_type; + + public: + void setSortMode(DeviceAPI::Tizen::SortModePtr sortMode) { m_sortMode = sortMode;} + void setFilter(DeviceAPI::Tizen::FilterPtr filter) { m_filter = filter;} + void setLimit(unsigned long limit) { m_limit = limit;} + void setOffset(unsigned long offset) { m_offset = offset;} + + DeviceAPI::Tizen::SortModePtr getSortMode() { return m_sortMode;} + DeviceAPI::Tizen::FilterPtr getFilter() { return m_filter;} + unsigned long getLimit() { return m_limit;} + unsigned long getOffset() { return m_offset;} + void setConversations(const std::vector<IConversationPtr>& conversations) { m_conversations = conversations; } + std::vector<IConversationPtr> getConversations() { return m_conversations; } + void setFilterUsing(bool filter) { m_FilterUse = filter;} + bool isFilterUsing() { return m_FilterUse;} + 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 + |