Sirikata
Public Member Functions
Sirikata::SessionEventListener Class Reference

SessionEventListener listens for session events -- connections and disconnections -- for objects. More...

#include <SessionEventListener.hpp>

Inheritance diagram for Sirikata::SessionEventListener:

List of all members.

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.

Detailed Description

SessionEventListener listens for session events -- connections and disconnections -- for objects.


Constructor & Destructor Documentation

virtual Sirikata::SessionEventListener::~SessionEventListener ( ) [inline, virtual]

Member Function Documentation

virtual void Sirikata::SessionEventListener::onConnected ( SessionEventProviderPtr  from,
const SpaceObjectReference name,
int64  token 
) [inline, virtual]

Invoked upon connection.

Parameters:
fromthe SessionEventProvider the event originates from
namethe 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.

Parameters:
fromthe SessionEventProvider the event originates from
namethe 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.

Parameters:
fromthe SessionEventProvider the event originates from
namethe name of the object in the space

Referenced by Sirikata::HostedObject::handleStreamCreated().


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