Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Contact / EventAddressBookRemoveBatch.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /**
18  * @file        EventAddressBookRemoveBatch.h
19  * @author      Kisub Song (kisubs.song@samsung.com)
20  * @version     0.1
21  * @brief
22  */
23
24 #ifndef _API_CONTACT_EVENT_ADDRESS_BOOK_REMOVE_BATCH_H_
25 #define _API_CONTACT_EVENT_ADDRESS_BOOK_REMOVE_BATCH_H_
26
27 #include <string>
28 #include <dpl/shared_ptr.h>
29 #include <Commons/IEvent.h>
30
31 namespace TizenApis {
32 namespace Api {
33 namespace Contact {
34
35 class EventAddressBookRemoveBatch : public WrtDeviceApis::Commons::IEvent<EventAddressBookRemoveBatch>
36 {
37 private:
38         bool    m_result;
39
40         /* parameters */
41         StringArrayPtr  m_contactIds;
42
43         bool    m_contactIdsIsSet;
44
45 public:
46         EventAddressBookRemoveBatch() :
47                 m_result(false),
48                 m_contactIdsIsSet(false)
49         {
50         }
51
52         virtual ~EventAddressBookRemoveBatch()
53         {
54         }
55
56         virtual void clearOnCancel()
57         {
58         }
59
60         void setResult(bool value)
61         {
62                 m_result = value;
63         }
64
65         bool getResult() const
66         {
67                 return m_result;
68         }
69
70         StringArrayPtr getContactIds() const
71         {
72                 return m_contactIds;
73         }
74
75         void setContactIds(const StringArrayPtr &value)
76         {
77                 m_contactIdsIsSet = true;
78                 m_contactIds = value;
79         }
80
81         bool getContactIdsIsSet() const
82         {
83                 return m_contactIdsIsSet;
84         }
85 };
86
87 typedef DPL::SharedPtr<EventAddressBookRemoveBatch> EventAddressBookRemoveBatchPtr;
88
89 } // Contact
90 } // Api
91 } // TizenApis
92
93 #endif // _API_CONTACT_EVENT_ADDRESS_BOOK_REMOVE_BATCH_H_
94