2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file EventAddressBookFind.h
19 * @author Kisub Song (kisubs.song@samsung.com)
24 #ifndef _API_CONTACT_EVENT_ADDRESS_BOOK_FIND_H_
25 #define _API_CONTACT_EVENT_ADDRESS_BOOK_FIND_H_
27 #include <dpl/shared_ptr.h>
28 #include <Commons/IEvent.h>
29 #include <API/Filter/IFilter.h>
30 #include <API/Filter/SortMode.h>
31 #include "ContactTypes.h"
38 /* Event sent while searching contacts */
39 class EventAddressBookFind : public WrtDeviceApis::Commons::IEvent<EventAddressBookFind>
45 Tizen::FilterPtr m_filter;
46 Tizen::SortModeArrayPtr m_sortModes;
47 // StringArrayPtr m_attributesOfInterest;
50 bool m_sortModesIsSet;
51 // bool m_attributesOfInterestIsSet;
54 ContactArrayPtr m_contacts;
59 EventAddressBookFind() :
62 m_sortModesIsSet(false),
63 // m_attributesOfInterestIsSet(false),
64 m_contactsIsSet(false)
68 virtual ~EventAddressBookFind()
72 virtual void clearOnCancel()
76 void setResult(bool value)
81 bool getResult() const
86 Tizen::FilterPtr getFilter() const
91 void setFilter(const Tizen::FilterPtr &value)
97 bool getFilterIsSet() const
102 Tizen::SortModeArrayPtr getSortModes() const
107 void setSortModes(const Tizen::SortModeArrayPtr &value)
110 m_sortModesIsSet = true;
113 bool getSortModesIsSet() const
115 return m_sortModesIsSet;
118 // StringArrayPtr getAttributesOfInterest() const
120 // return m_attributesOfInterest;
123 // void setAttributesOfInterest(const StringArrayPtr &value)
125 // m_attributesOfInterest = value;
126 // m_attributesOfInterestIsSet = true;
129 // bool getAttributesOfInterestIsSet() const
131 // return m_attributesOfInterestIsSet;
134 ContactArrayPtr getContacts() const
139 void setContacts(const ContactArrayPtr &value)
142 m_contactsIsSet = true;
145 bool getContactsIsSet() const
147 return m_contactsIsSet;
151 typedef DPL::SharedPtr<EventAddressBookFind> EventAddressBookFindPtr;
157 #endif // _API_CONTACT_EVENT_ADDRESS_BOOK_FIND_H_