LLVoiceChannel Class Reference

#include <llimpanel.h>

Inheritance diagram for LLVoiceChannel:

Inheritance graph
[legend]
Collaboration diagram for LLVoiceChannel:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLVoiceChannel::e_voice_channel_state EState
 STATE_NO_CHANNEL_INFO
 STATE_ERROR
 STATE_HUNG_UP
 STATE_READY
 STATE_CALL_STARTED
 STATE_RINGING
 STATE_CONNECTED
enum  e_voice_channel_state {
  STATE_NO_CHANNEL_INFO, STATE_ERROR, STATE_HUNG_UP, STATE_READY,
  STATE_CALL_STARTED, STATE_RINGING, STATE_CONNECTED
}

Public Member Functions

 LLVoiceChannel (const LLUUID &session_id, const LLString &session_name)
virtual ~LLVoiceChannel ()
void onChange (EStatusType status, const std::string &channelURI, bool proximal)
virtual void handleStatusChange (EStatusType status)
virtual void handleError (EStatusType status)
virtual void deactivate ()
virtual void activate ()
virtual void setChannelInfo (const LLString &uri, const LLString &credentials)
virtual void getChannelInfo ()
virtual BOOL isActive ()
virtual BOOL callStarted ()
EState getState ()
void updateSessionID (const LLUUID &new_session_id)

Static Public Member Functions

static LLVoiceChannelgetChannelByID (const LLUUID &session_id)
static LLVoiceChannelgetChannelByURI (LLString uri)
static LLVoiceChannelgetCurrentVoiceChannel ()
static void initClass ()

Protected Types

typedef std::map< LLUUID,
LLVoiceChannel * > 
voice_channel_map_t
typedef std::map< LLString,
LLVoiceChannel * > 
voice_channel_map_uri_t

Protected Member Functions

virtual void setState (EState state)
void setURI (LLString uri)

Protected Attributes

LLString mURI
LLString mCredentials
LLUUID mSessionID
EState mState
LLString mSessionName
LLString::format_map_t mNotifyArgs
BOOL mIgnoreNextSessionLeave
LLViewHandle mLoginNotificationHandle

Static Protected Attributes

static voice_channel_map_t sVoiceChannelMap
static voice_channel_map_uri_t sVoiceChannelURIMap
static LLVoiceChannelsCurrentVoiceChannel = NULL

Detailed Description

Definition at line 48 of file llimpanel.h.


Member Typedef Documentation

typedef enum LLVoiceChannel::e_voice_channel_state LLVoiceChannel::EState

typedef std::map<LLUUID, LLVoiceChannel*> LLVoiceChannel::voice_channel_map_t [protected]

Definition at line 99 of file llimpanel.h.

typedef std::map<LLString, LLVoiceChannel*> LLVoiceChannel::voice_channel_map_uri_t [protected]

Definition at line 102 of file llimpanel.h.


Member Enumeration Documentation

enum LLVoiceChannel::e_voice_channel_state

Enumerator:
STATE_NO_CHANNEL_INFO 
STATE_ERROR 
STATE_HUNG_UP 
STATE_READY 
STATE_CALL_STARTED 
STATE_RINGING 
STATE_CONNECTED 

Definition at line 51 of file llimpanel.h.


Constructor & Destructor Documentation

LLVoiceChannel::LLVoiceChannel ( const LLUUID session_id,
const LLString session_name 
)

Definition at line 225 of file llimpanel.cpp.

References LLVoiceClient::addStatusObserver(), LLSingleton< LLVoiceClient >::getInstance(), llendl, llwarns, mNotifyArgs, mSessionName, and sVoiceChannelMap.

LLVoiceChannel::~LLVoiceChannel (  )  [virtual]

Definition at line 243 of file llimpanel.cpp.

References gVoiceClient, mSessionID, mURI, LLVoiceClient::removeStatusObserver(), sVoiceChannelMap, and sVoiceChannelURIMap.


Member Function Documentation

void LLVoiceChannel::activate (  )  [virtual]

Reimplemented in LLVoiceChannelGroup, LLVoiceChannelProximal, and LLVoiceChannelP2P.

Definition at line 392 of file llimpanel.cpp.

References callStarted(), getChannelInfo(), mState, sCurrentVoiceChannel, setState(), STATE_CALL_STARTED, and STATE_NO_CHANNEL_INFO.

Referenced by LLVoiceChannelP2P::activate(), LLVoiceChannelProximal::activate(), LLVoiceChannelGroup::activate(), deactivate(), setChannelInfo(), and LLVoiceClient::setVoiceEnabled().

BOOL LLVoiceChannel::callStarted (  )  [virtual]

Definition at line 367 of file llimpanel.cpp.

References mState, and STATE_CALL_STARTED.

Referenced by LLVoiceChannelP2P::activate(), LLVoiceChannelProximal::activate(), LLVoiceChannelGroup::activate(), activate(), LLVoiceChannelProximal::deactivate(), LLVoiceChannelGroup::deactivate(), deactivate(), LLVoiceChannelP2P::handleStatusChange(), handleStatusChange(), LLIMMgr::inviteToSession(), LLVoiceChannelProximal::isActive(), isActive(), and LLVoiceChannelP2P::setSessionHandle().

void LLVoiceChannel::deactivate (  )  [virtual]

Reimplemented in LLVoiceChannelGroup, and LLVoiceChannelProximal.

Definition at line 372 of file llimpanel.cpp.

References activate(), callStarted(), LLSingleton< LLVoiceChannelProximal >::getInstance(), mIgnoreNextSessionLeave, mState, sCurrentVoiceChannel, setState(), STATE_HUNG_UP, STATE_RINGING, and TRUE.

Referenced by LLVoiceChannelGroup::deactivate(), LLVoiceCallCapResponder::error(), handleError(), handleStatusChange(), setChannelInfo(), and LLFloaterIMPanel::~LLFloaterIMPanel().

LLVoiceChannel * LLVoiceChannel::getChannelByID ( const LLUUID session_id  )  [static]

Definition at line 430 of file llimpanel.cpp.

References NULL, and sVoiceChannelMap.

Referenced by LLVoiceCallCapResponder::error(), LLIMMgr::inviteToSession(), and LLVoiceCallCapResponder::result().

LLVoiceChannel * LLVoiceChannel::getChannelByURI ( LLString  uri  )  [static]

Definition at line 444 of file llimpanel.cpp.

References NULL, and sVoiceChannelURIMap.

void LLVoiceChannel::getChannelInfo (  )  [virtual]

Reimplemented in LLVoiceChannelGroup, and LLVoiceChannelP2P.

Definition at line 420 of file llimpanel.cpp.

References sCurrentVoiceChannel, setState(), and STATE_CALL_STARTED.

Referenced by activate().

static LLVoiceChannel* LLVoiceChannel::getCurrentVoiceChannel (  )  [inline, static]

Definition at line 83 of file llimpanel.h.

References sCurrentVoiceChannel.

Referenced by LLVoiceRemoteCtrl::draw(), LLFloaterChatterBox::draw(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLVoiceClient::setVoiceEnabled(), and LLActiveSpeakerMgr::updateSpeakerList().

EState LLVoiceChannel::getState (  )  [inline]

Definition at line 77 of file llimpanel.h.

References mState.

Referenced by LLFloaterIMPanel::draw(), and LLFloaterChatterBox::draw().

void LLVoiceChannel::handleError ( EStatusType  status  )  [virtual]

Reimplemented in LLVoiceChannelGroup, LLVoiceChannelProximal, and LLVoiceChannelP2P.

Definition at line 355 of file llimpanel.cpp.

References deactivate(), setState(), and STATE_ERROR.

Referenced by LLVoiceChannelP2P::handleError(), LLVoiceChannelProximal::handleError(), LLVoiceChannelGroup::handleError(), and onChange().

void LLVoiceChannel::handleStatusChange ( EStatusType  status  )  [virtual]

Reimplemented in LLVoiceChannelGroup, LLVoiceChannelProximal, and LLVoiceChannelP2P.

Definition at line 308 of file llimpanel.cpp.

References callStarted(), deactivate(), FALSE, LLPanel::getHandle(), LLPanel::getPanelByHandle(), LLViewHandle::isDead(), LLViewHandle::markDead(), mIgnoreNextSessionLeave, mLoginNotificationHandle, mNotifyArgs, setState(), LLNotifyBox::showXml(), STATE_CONNECTED, STATE_RINGING, LLVoiceClientStatusObserver::STATUS_JOINED, LLVoiceClientStatusObserver::STATUS_JOINING, LLVoiceClientStatusObserver::STATUS_LEFT_CHANNEL, LLVoiceClientStatusObserver::STATUS_LOGGED_IN, and LLVoiceClientStatusObserver::STATUS_LOGIN_RETRY.

Referenced by LLVoiceChannelP2P::handleStatusChange(), LLVoiceChannelProximal::handleStatusChange(), LLVoiceChannelGroup::handleStatusChange(), and onChange().

void LLVoiceChannel::initClass (  )  [static]

Definition at line 494 of file llimpanel.cpp.

References LLSingleton< LLVoiceChannelProximal >::getInstance(), and sCurrentVoiceChannel.

Referenced by main_loop().

BOOL LLVoiceChannel::isActive (  )  [virtual]

Reimplemented in LLVoiceChannelProximal.

Definition at line 361 of file llimpanel.cpp.

References callStarted(), LLVoiceClient::getCurrentChannel(), LLSingleton< LLVoiceClient >::getInstance(), and mURI.

Referenced by LLVoiceRemoteCtrl::draw(), LLFloaterIMPanel::draw(), LLFloaterChatterBox::draw(), LLSpeakerMgr::isVoiceActive(), LLSpeakerMgr::update(), and LLSpeakerMgr::updateSpeakerList().

void LLVoiceChannel::onChange ( EStatusType  status,
const std::string &  channelURI,
bool  proximal 
)

Reimplemented in LLVoiceChannelProximal.

Definition at line 291 of file llimpanel.cpp.

References LLVoiceClientStatusObserver::BEGIN_ERROR_STATUS, handleError(), handleStatusChange(), and mURI.

void LLVoiceChannel::setChannelInfo ( const LLString uri,
const LLString credentials 
) [virtual]

Reimplemented in LLVoiceChannelGroup.

Definition at line 259 of file llimpanel.cpp.

References activate(), deactivate(), llendl, llwarns, mCredentials, mSessionName, mState, mURI, sCurrentVoiceChannel, setState(), setURI(), STATE_NO_CHANNEL_INFO, and STATE_READY.

Referenced by LLVoiceCallCapResponder::result().

void LLVoiceChannel::setState ( EState  state  )  [protected, virtual]

Definition at line 472 of file llimpanel.cpp.

References LLIMMgr::addSystemMessage(), gIMMgr, mNotifyArgs, mSessionID, mState, STATE_CONNECTED, STATE_HUNG_UP, and STATE_RINGING.

Referenced by activate(), LLVoiceChannelProximal::deactivate(), deactivate(), getChannelInfo(), handleError(), handleStatusChange(), setChannelInfo(), and LLVoiceChannelGroup::setState().

void LLVoiceChannel::setURI ( LLString  uri  )  [protected]

Definition at line 465 of file llimpanel.cpp.

References mURI, and sVoiceChannelURIMap.

Referenced by LLVoiceChannelP2P::LLVoiceChannelP2P(), LLVoiceChannelGroup::setChannelInfo(), setChannelInfo(), and LLVoiceChannelP2P::setSessionHandle().

void LLVoiceChannel::updateSessionID ( const LLUUID new_session_id  ) 

Definition at line 458 of file llimpanel.cpp.

References mSessionID, and sVoiceChannelMap.

Referenced by LLFloaterIMPanel::sessionInitReplyReceived().


Member Data Documentation

LLString LLVoiceChannel::mCredentials [protected]

Definition at line 91 of file llimpanel.h.

Referenced by LLVoiceChannelGroup::activate(), LLVoiceChannelGroup::setChannelInfo(), and setChannelInfo().

BOOL LLVoiceChannel::mIgnoreNextSessionLeave [protected]

Definition at line 96 of file llimpanel.h.

Referenced by deactivate(), LLVoiceChannelGroup::handleError(), LLVoiceChannelP2P::handleStatusChange(), and handleStatusChange().

LLViewHandle LLVoiceChannel::mLoginNotificationHandle [protected]

Definition at line 97 of file llimpanel.h.

Referenced by handleStatusChange().

LLString::format_map_t LLVoiceChannel::mNotifyArgs [protected]

Definition at line 95 of file llimpanel.h.

Referenced by LLVoiceChannelP2P::handleError(), LLVoiceChannelProximal::handleError(), LLVoiceChannelGroup::handleError(), LLVoiceChannelP2P::handleStatusChange(), handleStatusChange(), LLVoiceChannel(), LLVoiceChannelGroup::setState(), and setState().

LLUUID LLVoiceChannel::mSessionID [protected]

Definition at line 92 of file llimpanel.h.

Referenced by LLVoiceChannelGroup::getChannelInfo(), LLVoiceChannelGroup::handleError(), LLVoiceChannelGroup::setState(), setState(), updateSessionID(), and ~LLVoiceChannel().

LLString LLVoiceChannel::mSessionName [protected]

Definition at line 94 of file llimpanel.h.

Referenced by LLVoiceChannel(), LLVoiceChannelGroup::setChannelInfo(), and setChannelInfo().

EState LLVoiceChannel::mState [protected]

Definition at line 93 of file llimpanel.h.

Referenced by activate(), callStarted(), deactivate(), getState(), LLVoiceChannelP2P::handleStatusChange(), LLVoiceChannelGroup::setChannelInfo(), setChannelInfo(), LLVoiceChannelGroup::setState(), and setState().

LLString LLVoiceChannel::mURI [protected]

Definition at line 90 of file llimpanel.h.

Referenced by LLVoiceChannelGroup::activate(), isActive(), onChange(), LLVoiceChannelGroup::setChannelInfo(), setChannelInfo(), setURI(), and ~LLVoiceChannel().

LLVoiceChannel * LLVoiceChannel::sCurrentVoiceChannel = NULL [static, protected]

Definition at line 105 of file llimpanel.h.

Referenced by activate(), deactivate(), LLVoiceChannelP2P::getChannelInfo(), getChannelInfo(), getCurrentVoiceChannel(), initClass(), LLVoiceChannelGroup::setChannelInfo(), and setChannelInfo().

LLVoiceChannel::voice_channel_map_t LLVoiceChannel::sVoiceChannelMap [static, protected]

Definition at line 100 of file llimpanel.h.

Referenced by getChannelByID(), LLVoiceChannel(), updateSessionID(), and ~LLVoiceChannel().

LLVoiceChannel::voice_channel_map_uri_t LLVoiceChannel::sVoiceChannelURIMap [static, protected]

Definition at line 103 of file llimpanel.h.

Referenced by getChannelByURI(), setURI(), and ~LLVoiceChannel().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:01 2010 for Second Life Viewer by  doxygen 1.4.7