Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / system / inc / FSys_DeviceManagerEventProvider.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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                FSys_DeviceManagerEventProvider.h
19  * @brief               This is the header file for the _DeviceManagerEventProvider class.
20  */
21
22 #ifndef _FSYS_INTERNAL_DEVICEMANAGER_EVENT_PROVIDER_H_
23 #define _FSYS_INTERNAL_DEVICEMANAGER_EVENT_PROVIDER_H_
24
25 #include <FOspConfig.h>
26 #include <FBaseObject.h>
27
28 namespace Tizen { namespace System
29 {
30
31 class _IDeviceManagerEventProvider;
32
33 /**
34  * @class               _DeviceManagerEventProvider
35  * @brief               This class provides device event for service.
36  *
37  */
38 class _OSP_EXPORT_ _DeviceManagerEventProvider
39         : public Tizen::Base::Object
40 {
41
42 public:
43         static _DeviceManagerEventProvider* GetInstance(void);
44
45         void SetIDeviceManageEventProvider(_IDeviceManagerEventProvider* listener);
46
47 private:
48         /**
49          * This is the default constructor for this class.
50          */
51         _DeviceManagerEventProvider(void);
52
53         /**
54          * This is the default destructor for this class.
55          */
56         virtual ~_DeviceManagerEventProvider(void);
57
58         static void InitDeviceManagerEventProvider(void);
59
60 private:
61
62         _IDeviceManagerEventProvider* __pListener;
63
64         static _DeviceManagerEventProvider* __pDeviceManagerEventProvider;
65 };
66
67 } }
68
69 #endif //_FSYS_INTERNAL_DEVICEMANAGER_EVENT_PROVIDER_H_