Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Account / IEventFindServices.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  * @author      Sangtai Kim (sangtai.kim@samsung.com)
19  * @version     0.1
20  * @brief
21  */
22
23 #ifndef IEVENTFINDSERVICES_H_
24 #define IEVENTFINDSERVICES_H_
25
26 #include <Commons/IEvent.h>
27
28 #include <dpl/shared_ptr.h>
29
30 #include "AccountServiceFilterProperty.h"
31
32
33 namespace TizenApis {
34         namespace Api {
35                 namespace Account {
36
37                         class IEventFindServices : public WrtDeviceApis::Commons::IEvent<IEventFindServices>{
38                                 private:
39                                         bool m_result;
40                                         bool m_enable;
41
42                                         AccountServiceFilterPropertyPtr  m_filter;
43                                         AccountServicesArrayPtr          m_serviceList;
44
45                                 public:
46                                         void setFilterProperty(AccountServiceFilterPropertyPtr value) {
47                                                 m_filter = value;
48                                         }
49                                         AccountServiceFilterPropertyPtr getFilterProperty() const {
50                                                 return m_filter;
51                                         }
52
53                                         void setAccountServiceList(AccountServicesArrayPtr value){
54                                                 m_serviceList = value;
55                                         }
56                                         AccountServicesArrayPtr getAccountServiceList(){
57                                                 return m_serviceList;
58                                         }
59
60                                         void setResult(bool value) {
61                                                 m_result = value;
62                                         }
63                                         bool getResult() const {
64                                                 return m_result;
65                                         }
66
67                                         void setEnable(bool value){
68                                                 m_enable = value;
69                                         }
70                                         bool getEnable(){
71                                                 return m_enable;
72                                         }
73
74                                         IEventFindServices() : m_result(false){
75                                         }
76                                         virtual ~IEventFindServices(){
77                                         }
78                         };
79
80                         typedef DPL::SharedPtr<IEventFindServices> IEventFindServicesPtr;
81
82                 } /* namespace Account */
83         } /* namespace Api */
84 } /* namespace TizenApis */
85 #endif /* IEVENTFINDSERVICES_H_ */