Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Bluetooth / EventBTSetPowered.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 #ifndef TIZENAPIS_API_BLUETOOTH_SET_POWERED_H_
18 #define TIZENAPIS_API_BLUETOOTH_SET_POWERED_H_
19
20 #include <Commons/IEvent.h>
21 #include <dpl/shared_ptr.h>
22
23
24 namespace TizenApis {
25 namespace Api {
26 namespace Bluetooth {
27
28 class EventBTSetPowered : public WrtDeviceApis::Commons::IEvent<EventBTSetPowered>
29 {
30 private:
31         bool m_operation;
32         bool m_result;
33         unsigned short m_error;
34 public:
35         EventBTSetPowered()
36         {
37                 LogDebug("entered");
38                 m_operation = false; 
39         }
40
41         ~EventBTSetPowered() { }
42
43         void setEnable() { m_operation = true;}
44         void setDisable() { m_operation = false;}
45         bool isEnableRequested() { return m_operation;}
46 };
47
48 typedef DPL::SharedPtr<EventBTSetPowered> EventBTSetPoweredPtr;
49 }
50 }
51 }
52 #endif