545be95ea1f4c6e887a907e241975802c2201983
[framework/web/wrt-plugins-common.git] / src / modules / tizen / Haptics / Manager.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 #ifndef WRTDEVICEAPIS_HAPTICS_MANAGER_H_
17 #define WRTDEVICEAPIS_HAPTICS_MANAGER_H_
18
19 #include <cstddef>
20 #include <Haptics/IManager.h>
21 #include "Motor.h"
22
23 namespace WrtDeviceApis {
24 namespace Haptics {
25 class Manager : public Api::IManager
26 {
27   public:
28
29     /**
30      * Gets class definition getInstance.
31      * @remarks set before.
32      * @return Class  Manager instance.
33      */
34
35     static Manager& getInstance();
36
37   public:
38
39     /**
40      * Gets Motor pointer which find by index
41      * @remarks set before.
42      * @return Class  Motor pointer
43      */
44     Motor* getMotor(std::size_t index) const;
45
46     /**
47      * Gets Motors Count
48      * @remarks set before.
49      * @return size_t type
50      */
51
52     std::size_t getMotorsCount() const;
53
54   private:
55     Manager();
56 };
57 } // Haptics
58 } // WrtDeviceApis
59
60 #endif /* WRTDEVICEAPIS_HAPTICS_MANAGER_H_ */