Sirikata
|
SessionEventListener listens for session events -- connections and disconnections -- for objects. More...
#include <SessionEventListener.hpp>
Public Member Functions | |
virtual | ~SessionEventListener () |
virtual void | onConnected (SessionEventProviderPtr from, const SpaceObjectReference &name, int64 token) |
Invoked upon connection. | |
virtual void | onMigrated (SessionEventProviderPtr from, const SpaceObjectReference &name, int64 token) |
Invoked upon migration. | |
virtual void | onDisconnected (SessionEventProviderPtr from, const SpaceObjectReference &name) |
Invoked upon disconnection. |
SessionEventListener listens for session events -- connections and disconnections -- for objects.
virtual Sirikata::SessionEventListener::~SessionEventListener | ( | ) | [inline, virtual] |
virtual void Sirikata::SessionEventListener::onConnected | ( | SessionEventProviderPtr | from, |
const SpaceObjectReference & | name, | ||
int64 | token | ||
) | [inline, virtual] |
Invoked upon connection.
from | the SessionEventProvider the event originates from |
name | the name of the object in the space |
Reimplemented in Sirikata::JS::EmersonScript, and Sirikata::SimpleCamera::SimpleCameraObjectScript.
Referenced by Sirikata::HostedObject::handleStreamCreated().
virtual void Sirikata::SessionEventListener::onDisconnected | ( | SessionEventProviderPtr | from, |
const SpaceObjectReference & | name | ||
) | [inline, virtual] |
Invoked upon disconnection.
from | the SessionEventProvider the event originates from |
name | the name of the object in the space |
Reimplemented in Sirikata::JS::EmersonScript, Sirikata::Graphics::OgreSystem, and Sirikata::SimpleCamera::SimpleCameraObjectScript.
Referenced by Sirikata::HostedObject::iHandleDisconnected().
virtual void Sirikata::SessionEventListener::onMigrated | ( | SessionEventProviderPtr | from, |
const SpaceObjectReference & | name, | ||
int64 | token | ||
) | [inline, virtual] |
Invoked upon migration.
Streams to the space are invalidated.
from | the SessionEventProvider the event originates from |
name | the name of the object in the space |
Referenced by Sirikata::HostedObject::handleStreamCreated().