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

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

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 ()
const LLUUID getSessionID ()
EState getState ()
void updateSessionID (const LLUUID &new_session_id)
const LLString::format_map_tgetNotifyArgs ()

Static Public Member Functions

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

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
LLHandle< LLPanelmLoginNotificationHandle

Static Protected Attributes

static voice_channel_map_t sVoiceChannelMap
static voice_channel_map_uri_t sVoiceChannelURIMap
static LLVoiceChannelsCurrentVoiceChannel = NULL
static LLVoiceChannelsSuspendedVoiceChannel = NULL
static BOOL sSuspended = FALSE


Detailed Description

Definition at line 50 of file llimpanel.h.


Member Typedef Documentation

Definition at line 107 of file llimpanel.h.

Definition at line 110 of file llimpanel.h.


Member Enumeration Documentation

Enumerator:
STATE_NO_CHANNEL_INFO 
STATE_ERROR 
STATE_HUNG_UP 
STATE_READY 
STATE_CALL_STARTED 
STATE_RINGING 
STATE_CONNECTED 

Definition at line 53 of file llimpanel.h.


Constructor & Destructor Documentation

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

Definition at line 345 of file llimpanel.cpp.

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

Here is the call graph for this function:

LLVoiceChannel::~LLVoiceChannel (  )  [virtual]

Definition at line 363 of file llimpanel.cpp.

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

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented in LLVoiceChannelProximal.

Definition at line 413 of file llimpanel.cpp.

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

Here is the call graph for this function:

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

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

Reimplemented in LLVoiceChannelGroup, LLVoiceChannelProximal, and LLVoiceChannelP2P.

Definition at line 477 of file llimpanel.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceChannel::deactivate (  )  [virtual]

void LLVoiceChannel::activate (  )  [virtual]

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

Reimplemented in LLVoiceChannelGroup.

Definition at line 375 of file llimpanel.cpp.

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

Referenced by LLVoiceCallCapResponder::result().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceChannel::getChannelInfo (  )  [virtual]

Reimplemented in LLVoiceChannelGroup, and LLVoiceChannelP2P.

Definition at line 542 of file llimpanel.cpp.

References sCurrentVoiceChannel, setState(), and STATE_CALL_STARTED.

Referenced by activate().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVoiceChannel::isActive ( void   )  [virtual]

BOOL LLVoiceChannel::callStarted (  )  [virtual]

const LLUUID LLVoiceChannel::getSessionID (  )  [inline]

Definition at line 80 of file llimpanel.h.

References mSessionID.

Referenced by LLSpeakerMgr::getSessionID().

Here is the caller graph for this function:

EState LLVoiceChannel::getState (  )  [inline]

Definition at line 81 of file llimpanel.h.

References mState.

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

Here is the caller graph for this function:

void LLVoiceChannel::updateSessionID ( const LLUUID new_session_id  ) 

Definition at line 580 of file llimpanel.cpp.

References mSessionID, and sVoiceChannelMap.

Referenced by LLFloaterIMPanel::sessionInitReplyReceived().

Here is the caller graph for this function:

const LLString::format_map_t& LLVoiceChannel::getNotifyArgs (  )  [inline]

Definition at line 84 of file llimpanel.h.

References mNotifyArgs.

Referenced by LLVoiceCallCapResponder::error().

Here is the caller graph for this function:

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

Definition at line 552 of file llimpanel.cpp.

References NULL, and sVoiceChannelMap.

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

Here is the caller graph for this function:

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

Definition at line 566 of file llimpanel.cpp.

References NULL, and sVoiceChannelURIMap.

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

void LLVoiceChannel::initClass (  )  [static]

Definition at line 616 of file llimpanel.cpp.

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

Referenced by LLAppViewer::mainLoop().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceChannel::suspend (  )  [static]

Definition at line 623 of file llimpanel.cpp.

References sCurrentVoiceChannel, sSuspended, sSuspendedVoiceChannel, and TRUE.

Referenced by LLPanelVoiceDeviceSettings::onOpen().

Here is the caller graph for this function:

void LLVoiceChannel::resume (  )  [static]

Definition at line 633 of file llimpanel.cpp.

References LLVoiceChannelProximal::activate(), activate(), FALSE, LLSingleton< LLVoiceChannelProximal >::getInstance(), gVoiceClient, sSuspended, sSuspendedVoiceChannel, and LLVoiceClient::voiceEnabled().

Referenced by LLPanelVoiceDeviceSettings::onClose().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 587 of file llimpanel.cpp.

References mURI, and sVoiceChannelURIMap.

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 105 of file llimpanel.h.

Referenced by handleStatusChange().

Definition at line 108 of file llimpanel.h.

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

Definition at line 111 of file llimpanel.h.

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

Definition at line 114 of file llimpanel.h.

Referenced by resume(), and suspend().

BOOL LLVoiceChannel::sSuspended = FALSE [static, protected]


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

Generated on Fri May 16 09:36:42 2008 for SecondLife by  doxygen 1.5.5