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

Plays haptic effects. More...

#include <feedback-player-impl.h>

Inheritance diagram for Dali::Internal::Adaptor::FeedbackPlayer:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::FeedbackPlayer:
Collaboration graph
[legend]

Public Member Functions

void PlayMonotone (unsigned int duration)
  More...
 
void PlayFile (const std::string &filePath)
  More...
 
void Stop ()
  More...
 
int PlaySound (const std::string &fileName)
  More...
 
void StopSound (int handle)
  More...
 
void PlayFeedbackPattern (int type, int pattern)
  More...
 
bool LoadFile (const std::string &filename, std::string &data)
  More...
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static Dali::FeedbackPlayer New ()
 Create a FeedbackPlayer. More...
 
static Dali::FeedbackPlayer Get ()
 Retrieve a handle to the FeedbackPlayer. More...
 

Private Member Functions

 FeedbackPlayer ()
 Private Constructor; see also FeedbackPlayer::New() More...
 
virtual ~FeedbackPlayer ()
 Virtual Destructor. More...
 
 FeedbackPlayer (const FeedbackPlayer &)
 
FeedbackPlayeroperator= (FeedbackPlayer &)
 

Private Attributes

FeedbackPluginProxy mPlugin
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 

Detailed Description

Plays haptic effects.

Definition at line 43 of file feedback-player-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::FeedbackPlayer::FeedbackPlayer ( )
private

Private Constructor; see also FeedbackPlayer::New()

Definition at line 126 of file feedback-player-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::FeedbackPlayer::~FeedbackPlayer ( )
privatevirtual

Virtual Destructor.

Definition at line 131 of file feedback-player-impl.cpp.

Dali::Internal::Adaptor::FeedbackPlayer::FeedbackPlayer ( const FeedbackPlayer )
private

Member Function Documentation

Dali::FeedbackPlayer Dali::Internal::Adaptor::FeedbackPlayer::Get ( )
static

Retrieve a handle to the FeedbackPlayer.

This creates an instance if none has been created.

Returns
A handle to the FeedbackPlayer.

Definition at line 56 of file feedback-player-impl.cpp.

References Dali::Internal::Adaptor::SingletonService::Get(), Dali::BaseHandle::GetObjectPtr(), Dali::SingletonService::GetSingleton(), New(), and Dali::SingletonService::Register().

Referenced by Dali::Internal::Adaptor::anonymous_namespace{feedback-player-impl.cpp}::Create().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::Adaptor::FeedbackPlayer::LoadFile ( const std::string &  filename,
std::string &  data 
)

Definition at line 110 of file feedback-player-impl.cpp.

Dali::FeedbackPlayer Dali::Internal::Adaptor::FeedbackPlayer::New ( )
static

Create a FeedbackPlayer.

This should only be called once by the Adaptor class.

Returns
A newly created FeedbackPlayer.

Definition at line 50 of file feedback-player-impl.cpp.

References FeedbackPlayer().

Referenced by Get().

Here is the call graph for this function:

Here is the caller graph for this function:

FeedbackPlayer& Dali::Internal::Adaptor::FeedbackPlayer::operator= ( FeedbackPlayer )
private
void Dali::Internal::Adaptor::FeedbackPlayer::PlayFeedbackPattern ( int  type,
int  pattern 
)

Definition at line 105 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::PlayFeedbackPattern().

Here is the call graph for this function:

void Dali::Internal::Adaptor::FeedbackPlayer::PlayFile ( const std::string &  filePath)

Definition at line 85 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::PlayHaptic().

Here is the call graph for this function:

void Dali::Internal::Adaptor::FeedbackPlayer::PlayMonotone ( unsigned int  duration)

Definition at line 80 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::PlayHapticMonotone().

Here is the call graph for this function:

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

Definition at line 95 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::PlaySound().

Here is the call graph for this function:

void Dali::Internal::Adaptor::FeedbackPlayer::Stop ( )

Definition at line 90 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::StopHaptic().

Here is the call graph for this function:

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

Definition at line 100 of file feedback-player-impl.cpp.

References mPlugin, and Dali::Internal::Adaptor::FeedbackPluginProxy::StopSound().

Here is the call graph for this function:

Member Data Documentation

FeedbackPluginProxy Dali::Internal::Adaptor::FeedbackPlayer::mPlugin
private

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