reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
kurento::Object Class Reference

#include <Object.hxx>

Inheritance diagram for kurento::Object:
[legend]

Public Member Functions

bool valid ()
 
const std::string & getName () const
 
const std::string & getId () const
 
std::shared_ptr< KurentoConnection > getConnection ()
 
void processResponse (const std::string &id, std::shared_ptr< KurentoResponseHandler > krh, const json::Object &message) override
 
virtual void create (ContinuationVoid c)
 
virtual void release (ContinuationVoid c)
 
virtual void onEvent (const std::string &eventType, const json::Object &message)
 
void sendNotifications (const std::string &eventType, const json::Object &message)
 
- Public Member Functions inherited from kurento::KurentoResponseHandler
virtual ~KurentoResponseHandler ()
 

Protected Types

typedef std::function< void(const json::Object &message) > ContinuationInternal
 

Protected Member Functions

 Object (const std::string &name, std::shared_ptr< KurentoConnection > connection)
 
virtual ~Object ()
 
void createObject (ContinuationVoid c, const json::Object &constructorParams=json::Object())
 
void invokeVoidMethod (const std::string &methodName, ContinuationVoid c, const json::Object &methodParams=json::Object())
 
void invokeStringMethod (const std::string &methodName, ContinuationString c, const json::Object &methodParams=json::Object())
 
void addListener (const std::string &eventName, std::shared_ptr< EventListener > l, ContinuationVoid c)
 

Detailed Description

Definition at line 27 of file Object.hxx.

Member Typedef Documentation

◆ ContinuationInternal

typedef std::function<void(const json::Object& message) > kurento::Object::ContinuationInternal
protected

Definition at line 49 of file Object.hxx.

Constructor & Destructor Documentation

◆ Object()

Object::Object ( const std::string &  name,
std::shared_ptr< KurentoConnection >  connection 
)
protected

Definition at line 26 of file Object.cxx.

◆ ~Object()

Object::~Object ( )
protectedvirtual

Definition at line 32 of file Object.cxx.

Member Function Documentation

◆ addListener()

void Object::addListener ( const std::string &  eventName,
std::shared_ptr< EventListener >  l,
ContinuationVoid  c 
)
protected

Definition at line 117 of file Object.cxx.

◆ create()

virtual void kurento::Object::create ( ContinuationVoid  c)
inlinevirtual

◆ createObject()

void Object::createObject ( ContinuationVoid  c,
const json::Object &  constructorParams = json::Object() 
)
protected

Definition at line 56 of file Object.cxx.

◆ getConnection()

std::shared_ptr< KurentoConnection > kurento::Object::getConnection ( )
inline

Definition at line 34 of file Object.hxx.

◆ getId()

const std::string & kurento::Object::getId ( ) const
inline

Definition at line 32 of file Object.hxx.

◆ getName()

const std::string & kurento::Object::getName ( ) const
inline

Definition at line 31 of file Object.hxx.

◆ invokeStringMethod()

void Object::invokeStringMethod ( const std::string &  methodName,
ContinuationString  c,
const json::Object &  methodParams = json::Object() 
)
protected

Definition at line 142 of file Object.cxx.

◆ invokeVoidMethod()

void Object::invokeVoidMethod ( const std::string &  methodName,
ContinuationVoid  c,
const json::Object &  methodParams = json::Object() 
)
protected

Definition at line 129 of file Object.cxx.

◆ onEvent()

void Object::onEvent ( const std::string &  eventType,
const json::Object &  message 
)
virtual

Definition at line 85 of file Object.cxx.

◆ processResponse()

void Object::processResponse ( const std::string &  id,
std::shared_ptr< KurentoResponseHandler >  krh,
const json::Object &  message 
)
overridevirtual

Implements kurento::KurentoResponseHandler.

Definition at line 155 of file Object.cxx.

◆ release()

void Object::release ( ContinuationVoid  c)
virtual

Definition at line 76 of file Object.cxx.

◆ sendNotifications()

void Object::sendNotifications ( const std::string &  eventType,
const json::Object &  message 
)

Definition at line 97 of file Object.cxx.

◆ valid()

bool kurento::Object::valid ( )
inline

Definition at line 30 of file Object.hxx.


The documentation for this class was generated from the following files: