Classempathy::radio::Subscriber
radio
Bases
Subclasses
Constructors
Member Functions

Classempathy::radio::Subscriber

See empathy::radio::Event to know more about events.

Bases

UniqueObject

The class to give everyone a unique identification.

Subclasses

moonlight::MoonLight

The audio implementation for Empathy.

life_event::LifeEvent
You

You have all the brains. And the brains manipulate lifeEvents on You.

brain::Brain

Brain: the controller of lifevents.

Constructors

Subscriber ( )

Default constructor.

Member Functions

void
createRepeatingTimeout ( GLfloat start,
GLfloat interval,
int )

Create a repeating timeout after equivalent to setInterval() of JavaScript,

start
interval
void
createRepeatingTimeout ( GLfloat interval,
int )

Start immediately

interval
void
createRepeatingTimeout ( GLfloat start,
GLfloat interval,
Event & event )

Create a repeating timeout after equivalent to setInterval() of JavaScript,

start
interval
event
void
createRepeatingTimeout ( GLfloat interval,
Event & event )

start immediately

interval
event
void
createTimeOut ( GLfloat after,
int id )

Create a timeout after equivalent to setTimeout() of JavaScript,

after
id
void
createTimeOut ( GLfloat after,
Event & event )

Create a timeout after equivalent to setTimeout() of JavaScript,

after
event
void
emit ( Event & )

Emit an event in the system.

void
emit ( std::__cxx11::string )

Create and emit an event of certain string.

void
listen ( std::__cxx11::string )

Listen to a specific channel.

void
listenAll ( )

Listen to ALL channels, become a VIP subscriber.

  • virtual
void
onReceiveEvent ( Event & )

Called when an event is received for this subscriber.

void
playAudio ( std::__cxx11::string key )

Emit an intent to play an audio.

key
void
playKeyboardAudio ( std::__cxx11::string key )

Emit an intent to play a musical keyboard key

key
  • protected
createEvent ( )

Create an empty event. of empty action.

return
  • protected
createEvent ( std::__cxx11::string action )

Create an empty event.

action
return