Dali 3D User Interface Engine
feedback-plugin-proxy.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_FEEDBACK_PLUGIN_PROXY_H__
2 #define __DALI_INTERNAL_FEEDBACK_PLUGIN_PROXY_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 #include <string>
23 
24 // INTERNAL INCLUDES
25 #include <feedback-plugin.h>
26 
27 namespace Dali
28 {
29 
30 namespace Internal
31 {
32 
33 namespace Adaptor
34 {
35 
38 
43 {
44 public:
45 
49  static const char * const DEFAULT_OBJECT_NAME;
50 
51 public:
52 
56  FeedbackPluginProxy( const std::string& sharedObjectName );
57 
62 
66  void PlayHaptic( const std::string& filePath );
67 
71  void PlayHapticMonotone( unsigned int duration );
72 
76  void StopHaptic();
77 
81  int PlaySound( const std::string& fileName );
82 
86  void StopSound( int handle );
87 
91  void PlayFeedbackPattern( int type, int pattern );
92 
93 private:
94 
98  void Initialize();
99 
100 private:
101 
103  void* mLibHandle;
104  std::string mSharedObjectName;
106  Dali::FeedbackPlugin* mFeedbackPlugin;
107 };
108 
109 } // namespace Adaptor
110 
111 } // namespace Internal
112 
113 } // namespace Dali
114 
115 #endif // __DALI_INTERNAL_FEEDBACK_PLUGIN_PROXY_H__
Dali Docs Home
Read more about Dali