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.
17 * @author Lukasz Marek (l.marek@samsung.com)
22 #ifndef WRTDEVICEAPIS_CONTACT_EVENT_GET_ADDRESSBOOKITEM_COUNT_H_
23 #define WRTDEVICEAPIS_CONTACT_EVENT_GET_ADDRESSBOOKITEM_COUNT_H_
25 #include <dpl/shared_ptr.h>
26 #include <Commons/IEvent.h>
28 namespace WrtDeviceApis {
32 /* Event sent while getting address books count */
33 class EventGetAddressBookItemCount :
34 public Commons::IEvent<EventGetAddressBookItemCount>
37 unsigned int m_numberOfAddressBookItems;
39 void setNumberOfAddressBookItems(unsigned int value)
41 m_numberOfAddressBookItems = value;
43 unsigned int getNumberOfAddressBookItems() const
45 return m_numberOfAddressBookItems;
47 void setResult(bool value)
51 bool getResult() const
56 EventGetAddressBookItemCount() : m_result(false),
57 m_numberOfAddressBookItems(0)
60 virtual ~EventGetAddressBookItemCount()
63 virtual void clearOnCancel()
68 typedef DPL::SharedPtr<EventGetAddressBookItemCount>
69 EventGetAddressBookItemCountPtr;
75 #endif // WRTDEVICEAPIS_CONTACT_EVENT_GET_ADDRESSBOOKITEM_COUNT_H_