Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
Dali::Internal::Adaptor::FeedbackPluginProxy Class Reference

Proxy class to dynamically load, use and unload feedback plugin. More...

#include <feedback-plugin-proxy.h>

Collaboration diagram for Dali::Internal::Adaptor::FeedbackPluginProxy:
Collaboration graph
[legend]

Public Member Functions

 FeedbackPluginProxy (const std::string &sharedObjectName)
 Constructor. More...
 
 ~FeedbackPluginProxy ()
 The destructor. More...
 
void PlayHaptic (const std::string &filePath)
  More...
 
void PlayHapticMonotone (unsigned int duration)
  More...
 
void StopHaptic ()
  More...
 
int PlaySound (const std::string &fileName)
  More...
 
void StopSound (int handle)
  More...
 
void PlayFeedbackPattern (int type, int pattern)
  More...
 

Static Public Attributes

static const char *const DEFAULT_OBJECT_NAME
 The default feedback plugin proxy. More...
 

Private Member Functions

void Initialize ()
 Dynamically loads the feedback plugin. More...
 

Private Attributes

bool mInitializeAttempted
 
void * mLibHandle
 
std::string mSharedObjectName
 
CreateFeedbackPluginmCreatePluginFunctionPtr
 
Dali::FeedbackPlugin * mFeedbackPlugin
 

Detailed Description

Proxy class to dynamically load, use and unload feedback plugin.

Definition at line 42 of file feedback-plugin-proxy.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::FeedbackPluginProxy::FeedbackPluginProxy ( const std::string &  sharedObjectName)

Constructor.

Definition at line 36 of file feedback-plugin-proxy.cpp.

Dali::Internal::Adaptor::FeedbackPluginProxy::~FeedbackPluginProxy ( )

The destructor.

Definition at line 46 of file feedback-plugin-proxy.cpp.

References DALI_LOG_ERROR, mFeedbackPlugin, and mLibHandle.

Member Function Documentation

void Dali::Internal::Adaptor::FeedbackPluginProxy::Initialize ( void  )
private

Dynamically loads the feedback plugin.

Definition at line 124 of file feedback-plugin-proxy.cpp.

References DALI_LOG_ERROR, mCreatePluginFunctionPtr, mFeedbackPlugin, mInitializeAttempted, mLibHandle, and mSharedObjectName.

Referenced by PlayFeedbackPattern(), PlayHaptic(), PlayHapticMonotone(), and PlaySound().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::FeedbackPluginProxy::PlayFeedbackPattern ( int  type,
int  pattern 
)

Definition at line 113 of file feedback-plugin-proxy.cpp.

References Initialize(), and mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::FeedbackPlayer::PlayFeedbackPattern().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::FeedbackPluginProxy::PlayHaptic ( const std::string &  filePath)

Definition at line 60 of file feedback-plugin-proxy.cpp.

References Initialize(), and mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::FeedbackPlayer::PlayFile().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::FeedbackPluginProxy::PlayHapticMonotone ( unsigned int  duration)

Definition at line 71 of file feedback-plugin-proxy.cpp.

References Initialize(), and mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::FeedbackPlayer::PlayMonotone().

Here is the call graph for this function:

Here is the caller graph for this function:

int Dali::Internal::Adaptor::FeedbackPluginProxy::PlaySound ( const std::string &  fileName)

Definition at line 91 of file feedback-plugin-proxy.cpp.

References Initialize(), and mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::SoundPlayer::PlaySound(), and Dali::Internal::Adaptor::FeedbackPlayer::PlaySound().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::FeedbackPluginProxy::StopHaptic ( )

Definition at line 82 of file feedback-plugin-proxy.cpp.

References mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::FeedbackPlayer::Stop().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::FeedbackPluginProxy::StopSound ( int  handle)

Definition at line 104 of file feedback-plugin-proxy.cpp.

References mFeedbackPlugin.

Referenced by Dali::Internal::Adaptor::SoundPlayer::Stop(), and Dali::Internal::Adaptor::FeedbackPlayer::StopSound().

Here is the caller graph for this function:

Member Data Documentation

const char *const Dali::Internal::Adaptor::FeedbackPluginProxy::DEFAULT_OBJECT_NAME
static

The default feedback plugin proxy.

Definition at line 49 of file feedback-plugin-proxy.h.

CreateFeedbackPlugin* Dali::Internal::Adaptor::FeedbackPluginProxy::mCreatePluginFunctionPtr
private

Definition at line 105 of file feedback-plugin-proxy.h.

Referenced by Initialize().

Dali::FeedbackPlugin* Dali::Internal::Adaptor::FeedbackPluginProxy::mFeedbackPlugin
private
bool Dali::Internal::Adaptor::FeedbackPluginProxy::mInitializeAttempted
private

Definition at line 102 of file feedback-plugin-proxy.h.

Referenced by Initialize().

void* Dali::Internal::Adaptor::FeedbackPluginProxy::mLibHandle
private

Definition at line 103 of file feedback-plugin-proxy.h.

Referenced by Initialize(), and ~FeedbackPluginProxy().

std::string Dali::Internal::Adaptor::FeedbackPluginProxy::mSharedObjectName
private

Definition at line 104 of file feedback-plugin-proxy.h.

Referenced by Initialize().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali