LLVoiceClient Class Reference

#include <llvoiceclient.h>

Inheritance diagram for LLVoiceClient:

Inheritance graph
[legend]
Collaboration diagram for LLVoiceClient:

Collaboration graph
[legend]

List of all members.

Public Types

enum  serviceType { serviceTypeUnknown, serviceTypeA, serviceTypeB, serviceTypeC }
typedef std::map< std::string,
participantState * > 
participantMap
typedef std::vector< std::string > deviceList

Public Member Functions

 LLVoiceClient ()
 ~LLVoiceClient ()
void connect ()
void connectorCreate ()
void connectorShutdown ()
void requestVoiceAccountProvision (S32 retries=3)
void userAuthorized (const std::string &firstName, const std::string &lastName, const LLUUID &agentID)
void login (const std::string &accountName, const std::string &password)
void loginSendMessage ()
void logout ()
void logoutSendMessage ()
void channelGetListSendMessage ()
void sessionCreateSendMessage ()
void sessionConnectSendMessage ()
void sessionTerminate ()
void sessionTerminateSendMessage ()
void sessionTerminateByHandle (std::string &sessionHandle)
void getCaptureDevicesSendMessage ()
void getRenderDevicesSendMessage ()
void clearCaptureDevices ()
void addCaptureDevice (const std::string &name)
void setCaptureDevice (const std::string &name)
void clearRenderDevices ()
void addRenderDevice (const std::string &name)
void setRenderDevice (const std::string &name)
void tuningStart ()
void tuningStop ()
bool inTuningMode ()
bool inTuningStates ()
void tuningRenderStartSendMessage (const std::string &name, bool loop)
void tuningRenderStopSendMessage ()
void tuningCaptureStartSendMessage (int duration)
void tuningCaptureStopSendMessage ()
void tuningSetMicVolume (float volume)
void tuningSetSpeakerVolume (float volume)
float tuningGetEnergy (void)
bool deviceSettingsAvailable ()
void refreshDeviceLists (bool clearCurrentList=true)
void daemonDied ()
void giveUp ()
void connectorCreateResponse (int statusCode, std::string &statusString, std::string &connectorHandle)
void loginResponse (int statusCode, std::string &statusString, std::string &accountHandle)
void channelGetListResponse (int statusCode, std::string &statusString)
void sessionCreateResponse (int statusCode, std::string &statusString, std::string &sessionHandle)
void sessionConnectResponse (int statusCode, std::string &statusString)
void sessionTerminateResponse (int statusCode, std::string &statusString)
void logoutResponse (int statusCode, std::string &statusString)
void connectorShutdownResponse (int statusCode, std::string &statusString)
void loginStateChangeEvent (std::string &accountHandle, int statusCode, std::string &statusString, int state)
void sessionNewEvent (std::string &accountHandle, std::string &eventSessionHandle, int state, std::string &nameString, std::string &uriString)
void sessionStateChangeEvent (std::string &uriString, int statusCode, std::string &statusString, std::string &sessionHandle, int state, bool isChannel, std::string &nameString)
void participantStateChangeEvent (std::string &uriString, int statusCode, std::string &statusString, int state, std::string &nameString, std::string &displayNameString, int participantType)
void participantPropertiesEvent (std::string &uriString, int statusCode, std::string &statusString, bool isLocallyMuted, bool isModeratorMuted, bool isSpeaking, int volume, F32 energy)
void auxAudioPropertiesEvent (F32 energy)
void muteListChanged ()
void setCameraPosition (const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot)
void setAvatarPosition (const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot)
bool channelFromRegion (LLViewerRegion *region, std::string &name)
void leaveChannel (void)
void setMuteMic (bool muted)
void setUserPTTState (bool ptt)
bool getUserPTTState ()
void toggleUserPTTState (void)
void setVoiceEnabled (bool enabled)
void setUsePTT (bool usePTT)
void setPTTIsToggle (bool PTTIsToggle)
void setPTTKey (std::string &key)
void setEarLocation (S32 loc)
void setVoiceVolume (F32 volume)
void setMicGain (F32 volume)
void setUserVolume (const LLUUID &id, F32 volume)
void setVivoxDebugServerName (std::string &serverName)
void setLipSyncEnabled (U32 enabled)
U32 lipSyncEnabled ()
void keyDown (KEY key, MASK mask)
void keyUp (KEY key, MASK mask)
void middleMouseState (bool down)
BOOL getVoiceEnabled (const LLUUID &id)
BOOL getIsSpeaking (const LLUUID &id)
BOOL getIsModeratorMuted (const LLUUID &id)
F32 getCurrentPower (const LLUUID &id)
BOOL getPTTPressed (const LLUUID &id)
BOOL getOnMuteList (const LLUUID &id)
F32 getUserVolume (const LLUUID &id)
LLString getDisplayName (const LLUUID &id)
BOOL getUsingPTT (const LLUUID &id)
serviceType getServiceType (const LLUUID &id)
std::string getGroupID (const LLUUID &id)
BOOL getAreaVoiceDisabled ()
participantStatefindParticipant (const std::string &uri)
participantStatefindParticipantByAvatar (LLVOAvatar *avatar)
participantStatefindParticipantByID (const LLUUID &id)
participantMapgetParticipantList (void)
void addObserver (LLVoiceClientParticipantObserver *observer)
void removeObserver (LLVoiceClientParticipantObserver *observer)
void addStatusObserver (LLVoiceClientStatusObserver *observer)
void removeStatusObserver (LLVoiceClientStatusObserver *observer)
deviceListgetCaptureDevices ()
deviceListgetRenderDevices ()
void setNonSpatialChannel (const std::string &uri, const std::string &credentials)
void setSpatialChannel (const std::string &uri, const std::string &credentials)
void callUser (LLUUID &uuid)
void answerInvite (std::string &sessionHandle, LLUUID &other_user_id)
void declineInvite (std::string &sessionHandle)
void leaveNonSpatialChannel ()
std::string getCurrentChannel ()
bool inProximalChannel ()
std::string sipURIFromID (const LLUUID &id)

Static Public Member Functions

static void init (LLPumpIO *pump)
static void terminate ()
static bool voiceEnabled ()
static void onAvatarNameLookup (const LLUUID &id, const char *first, const char *last, BOOL is_group, void *user_data)

Static Public Attributes

static F32 OVERDRIVEN_POWER_LEVEL = 0.7f

Protected Member Functions

bool writeString (const std::string &str)

Private Types

enum  state {
  stateDisabled, stateStart, stateDaemonLaunched, stateConnecting,
  stateIdle, stateConnectorStart, stateConnectorStarting, stateConnectorStarted,
  stateMicTuningNoLogin, stateLoginRetry, stateLoginRetryWait, stateNeedsLogin,
  stateLoggingIn, stateLoggedIn, stateNoChannel, stateMicTuningStart,
  stateMicTuningRunning, stateMicTuningStop, stateSessionCreate, stateSessionConnect,
  stateJoiningSession, stateSessionJoined, stateRunning, stateLeavingSession,
  stateSessionTerminated, stateLoggingOut, stateLoggedOut, stateConnectorStopping,
  stateConnectorStopped, stateConnectorFailed, stateConnectorFailedWaiting, stateLoginFailed,
  stateLoginFailedWaiting, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateJail
}
enum  { earLocCamera = 0, earLocAvatar, earLocMixed }
typedef std::map< std::string,
std::string > 
channelMap
typedef std::set
< LLVoiceClientParticipantObserver * > 
observer_set_t
typedef std::set
< LLVoiceClientStatusObserver * > 
status_observer_set_t

Private Member Functions

 LOG_CLASS (LLVoiceClient)
void setState (state inState)
state getState (void)
void stateMachine ()
void closeSocket (void)
participantStateaddParticipant (const std::string &uri)
void removeParticipant (participantState *participant)
void removeAllParticipants ()
void updateMuteState (participantState *participant)
void clearChannelMap (void)
void addChannelMapEntry (std::string &name, std::string &uri)
std::string findChannelURI (std::string &name)
void parcelChanged ()
void switchChannel (std::string uri=std::string(), bool spatial=true, bool noReconnect=false, std::string hash="")
void joinSession (std::string handle, std::string uri)
std::string nameFromAvatar (LLVOAvatar *avatar)
std::string nameFromID (const LLUUID &id)
bool IDFromName (const std::string name, LLUUID &uuid)
std::string displayNameFromAvatar (LLVOAvatar *avatar)
std::string sipURIFromAvatar (LLVOAvatar *avatar)
std::string sipURIFromName (std::string &name)
void sendPositionalUpdate (void)
void buildSetCaptureDevice (std::ostringstream &stream)
void buildSetRenderDevice (std::ostringstream &stream)
void enforceTether (void)
void notifyObservers ()
void notifyStatusObservers (LLVoiceClientStatusObserver::EStatusType status)

Static Private Member Functions

static const char * state2string (state inState)
static void idle (void *user_data)

Private Attributes

state mState
bool mSessionTerminateRequested
bool mNonSpatialChannel
LLHost mDaemonHost
LLSocket::ptr_t mSocket
bool mConnected
LLPumpIOmPump
std::string mAccountName
std::string mAccountPassword
std::string mAccountDisplayName
std::string mAccountFirstName
std::string mAccountLastName
std::string mNextP2PSessionURI
std::string mNextSessionURI
std::string mNextSessionHandle
std::string mNextSessionHash
bool mNextSessionSpatial
bool mNextSessionNoReconnect
bool mNextSessionResetOnClose
std::string mSessionStateEventHandle
std::string mSessionStateEventURI
bool mTuningMode
float mTuningEnergy
std::string mTuningAudioFile
int mTuningMicVolume
bool mTuningMicVolumeDirty
int mTuningSpeakerVolume
bool mTuningSpeakerVolumeDirty
state mTuningExitState
std::string mSpatialSessionURI
bool mSessionResetOnClose
int mVivoxErrorStatusCode
std::string mVivoxErrorStatusString
std::string mChannelName
bool mAreaVoiceDisabled
std::string mSessionURI
bool mSessionP2P
S32 mCurrentParcelLocalID
std::string mCurrentRegionName
std::string mConnectorHandle
std::string mAccountHandle
std::string mSessionHandle
U32 mCommandCookie
std::string mAccountServerName
std::string mAccountServerURI
int mLoginRetryCount
participantMap mParticipantMap
bool mParticipantMapChanged
deviceList mCaptureDevices
deviceList mRenderDevices
std::string mCaptureDevice
std::string mRenderDevice
bool mCaptureDeviceDirty
bool mRenderDeviceDirty
channelMap mChannelMap
bool mSpatialCoordsDirty
LLVector3d mCameraPosition
LLVector3d mCameraRequestedPosition
LLVector3 mCameraVelocity
LLMatrix3 mCameraRot
LLVector3d mAvatarPosition
LLVector3 mAvatarVelocity
LLMatrix3 mAvatarRot
bool mPTTDirty
bool mPTT
bool mUsePTT
bool mPTTIsMiddleMouse
KEY mPTTKey
bool mPTTIsToggle
bool mUserPTTState
bool mMuteMic
bool mVolumeDirty
S32 mEarLocation
bool mSpeakerVolumeDirty
bool mSpeakerMuteDirty
int mSpeakerVolume
int mMicVolume
bool mMicVolumeDirty
bool mVoiceEnabled
bool mWriteInProgress
std::string mWriteString
size_t mWriteOffset
LLTimer mUpdateTimer
U32 mLipSyncEnabled
observer_set_t mObservers
status_observer_set_t mStatusObservers

Friends

class LLVivoxProtocolParser

Classes

struct  participantState


Detailed Description

Definition at line 80 of file llvoiceclient.h.


Member Typedef Documentation

typedef std::map<std::string, participantState*> LLVoiceClient::participantMap

Definition at line 263 of file llvoiceclient.h.

typedef std::vector<std::string> LLVoiceClient::deviceList

Definition at line 278 of file llvoiceclient.h.

typedef std::map<std::string, std::string> LLVoiceClient::channelMap [private]

Definition at line 444 of file llvoiceclient.h.

Definition at line 523 of file llvoiceclient.h.

Definition at line 528 of file llvoiceclient.h.


Member Enumeration Documentation

Enumerator:
serviceTypeUnknown 
serviceTypeA 
serviceTypeB 
serviceTypeC 

Definition at line 96 of file llvoiceclient.h.

enum LLVoiceClient::state [private]

Enumerator:
stateDisabled 
stateStart 
stateDaemonLaunched 
stateConnecting 
stateIdle 
stateConnectorStart 
stateConnectorStarting 
stateConnectorStarted 
stateMicTuningNoLogin 
stateLoginRetry 
stateLoginRetryWait 
stateNeedsLogin 
stateLoggingIn 
stateLoggedIn 
stateNoChannel 
stateMicTuningStart 
stateMicTuningRunning 
stateMicTuningStop 
stateSessionCreate 
stateSessionConnect 
stateJoiningSession 
stateSessionJoined 
stateRunning 
stateLeavingSession 
stateSessionTerminated 
stateLoggingOut 
stateLoggedOut 
stateConnectorStopping 
stateConnectorStopped 
stateConnectorFailed 
stateConnectorFailedWaiting 
stateLoginFailed 
stateLoginFailedWaiting 
stateJoinSessionFailed 
stateJoinSessionFailedWaiting 
stateJail 

Definition at line 308 of file llvoiceclient.h.

anonymous enum [private]

Enumerator:
earLocCamera 
earLocAvatar 
earLocMixed 

Definition at line 498 of file llvoiceclient.h.


Constructor & Destructor Documentation

LLVoiceClient::LLVoiceClient (  ) 

LLVoiceClient::~LLVoiceClient (  ) 

Definition at line 874 of file llvoiceclient.cpp.


Member Function Documentation

LLVoiceClient::LOG_CLASS ( LLVoiceClient   )  [private]

void LLVoiceClient::init ( LLPumpIO pump  )  [static]

Definition at line 882 of file llvoiceclient.cpp.

References LLSingleton< LLVoiceClient >::getInstance(), and mPump.

Referenced by LLAppViewer::mainLoop().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::terminate (  )  [static]

Definition at line 888 of file llvoiceclient.cpp.

References closeSocket(), connectorShutdown(), logout(), NULL, and sessionTerminateSendMessage().

Referenced by LLAppViewer::cleanup().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::writeString ( const std::string &  str  )  [protected]

void LLVoiceClient::connect (  ) 

void LLVoiceClient::connectorCreate (  ) 

Definition at line 955 of file llvoiceclient.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LLControlGroup::getString(), gSavedSettings, LL_DEBUGS, LL_ENDL, LL_PATH_LOGS, mAccountServerURI, mCommandCookie, setState(), stateConnectorStarting, and writeString().

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::connectorShutdown (  ) 

Definition at line 989 of file llvoiceclient.cpp.

References mCommandCookie, mConnectorHandle, setState(), stateConnectorStopping, and writeString().

Referenced by stateMachine(), and terminate().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::requestVoiceAccountProvision ( S32  retries = 3  ) 

Definition at line 1044 of file llvoiceclient.cpp.

References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), mVoiceEnabled, and LLHTTPClient::post().

Referenced by LLViewerVoiceAccountProvisionResponder::error(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::userAuthorized ( const std::string &  firstName,
const std::string &  lastName,
const LLUUID agentID 
)

void LLVoiceClient::login ( const std::string &  accountName,
const std::string &  password 
)

Definition at line 1061 of file llvoiceclient.cpp.

References getState(), LL_ENDL, LL_ERRS, LL_WARNS, mAccountName, mAccountPassword, stateLoggedOut, and stateLoggingIn.

Referenced by LLViewerVoiceAccountProvisionResponder::result().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::loginSendMessage (  ) 

Definition at line 1890 of file llvoiceclient.cpp.

References mAccountName, mAccountPassword, mCommandCookie, mConnectorHandle, and writeString().

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::logout (  ) 

Definition at line 1904 of file llvoiceclient.cpp.

References logoutSendMessage(), mAccountPassword, setState(), and stateLoggingOut.

Referenced by stateMachine(), and terminate().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::logoutSendMessage (  ) 

Definition at line 1911 of file llvoiceclient.cpp.

References mAccountHandle, mCommandCookie, and writeString().

Referenced by logout().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::channelGetListSendMessage (  ) 

Definition at line 1928 of file llvoiceclient.cpp.

References mAccountHandle, mCommandCookie, and writeString().

Here is the call graph for this function:

void LLVoiceClient::sessionCreateSendMessage (  ) 

void LLVoiceClient::sessionConnectSendMessage (  ) 

Definition at line 1979 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCommandCookie, mNextP2PSessionURI, mNextSessionHandle, mNextSessionResetOnClose, mNextSessionSpatial, mNonSpatialChannel, mSessionHandle, mSessionP2P, mSessionResetOnClose, mSessionURI, and writeString().

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionTerminate (  ) 

Definition at line 2003 of file llvoiceclient.cpp.

References mSessionTerminateRequested.

Referenced by joinSession(), leaveChannel(), switchChannel(), and tuningStart().

Here is the caller graph for this function:

void LLVoiceClient::sessionTerminateSendMessage (  ) 

void LLVoiceClient::sessionTerminateByHandle ( std::string &  sessionHandle  ) 

Definition at line 2044 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCommandCookie, and writeString().

Referenced by declineInvite(), sessionCreateResponse(), and sessionTerminateSendMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::getCaptureDevicesSendMessage (  ) 

Definition at line 2058 of file llvoiceclient.cpp.

References mCommandCookie, and writeString().

Referenced by refreshDeviceLists(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::getRenderDevicesSendMessage (  ) 

Definition at line 2068 of file llvoiceclient.cpp.

References mCommandCookie, and writeString().

Referenced by refreshDeviceLists(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::clearCaptureDevices (  ) 

Definition at line 2078 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mCaptureDevices.

Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().

Here is the caller graph for this function:

void LLVoiceClient::addCaptureDevice ( const std::string &  name  ) 

Definition at line 2085 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mCaptureDevices.

Referenced by LLVivoxProtocolParser::EndTag().

Here is the caller graph for this function:

void LLVoiceClient::setCaptureDevice ( const std::string &  name  ) 

Definition at line 2098 of file llvoiceclient.cpp.

References mCaptureDevice, and mCaptureDeviceDirty.

Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().

Here is the caller graph for this function:

void LLVoiceClient::clearRenderDevices (  ) 

Definition at line 2118 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mRenderDevices.

Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().

Here is the caller graph for this function:

void LLVoiceClient::addRenderDevice ( const std::string &  name  ) 

Definition at line 2125 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mRenderDevices.

Referenced by LLVivoxProtocolParser::EndTag().

Here is the caller graph for this function:

void LLVoiceClient::setRenderDevice ( const std::string &  name  ) 

Definition at line 2137 of file llvoiceclient.cpp.

References mRenderDevice, and mRenderDeviceDirty.

Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().

Here is the caller graph for this function:

void LLVoiceClient::tuningStart (  ) 

Definition at line 2158 of file llvoiceclient.cpp.

References getState(), mTuningMode, sessionTerminate(), and stateNoChannel.

Referenced by LLPanelVoiceDeviceSettings::onOpen().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::tuningStop (  ) 

Definition at line 2167 of file llvoiceclient.cpp.

References mTuningMode.

Referenced by LLPanelVoiceDeviceSettings::onClose().

Here is the caller graph for this function:

bool LLVoiceClient::inTuningMode (  ) 

Definition at line 2172 of file llvoiceclient.cpp.

References getState(), and stateMicTuningRunning.

Referenced by LLPanelVoiceDeviceSettings::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::inTuningStates (  ) 

void LLVoiceClient::tuningRenderStartSendMessage ( const std::string &  name,
bool  loop 
)

Definition at line 2186 of file llvoiceclient.cpp.

References mCommandCookie, mTuningAudioFile, and writeString().

Here is the call graph for this function:

void LLVoiceClient::tuningRenderStopSendMessage (  ) 

Definition at line 2199 of file llvoiceclient.cpp.

References mCommandCookie, mTuningAudioFile, and writeString().

Here is the call graph for this function:

void LLVoiceClient::tuningCaptureStartSendMessage ( int  duration  ) 

Definition at line 2210 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCommandCookie, and writeString().

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::tuningCaptureStopSendMessage (  ) 

Definition at line 2223 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCommandCookie, mTuningEnergy, and writeString().

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::tuningSetMicVolume ( float  volume  ) 

Definition at line 2237 of file llvoiceclient.cpp.

References mTuningMicVolume, and mTuningMicVolumeDirty.

Referenced by LLPanelVoiceDeviceSettings::refresh().

Here is the caller graph for this function:

void LLVoiceClient::tuningSetSpeakerVolume ( float  volume  ) 

Definition at line 2247 of file llvoiceclient.cpp.

References mTuningSpeakerVolume, and mTuningSpeakerVolumeDirty.

float LLVoiceClient::tuningGetEnergy ( void   ) 

Definition at line 2266 of file llvoiceclient.cpp.

References mTuningEnergy.

Referenced by LLPanelVoiceDeviceSettings::draw().

Here is the caller graph for this function:

bool LLVoiceClient::deviceSettingsAvailable (  ) 

Definition at line 2271 of file llvoiceclient.cpp.

References mConnected, and mRenderDevices.

Referenced by LLPanelVoiceDeviceSettings::refresh().

Here is the caller graph for this function:

void LLVoiceClient::refreshDeviceLists ( bool  clearCurrentList = true  ) 

Definition at line 2284 of file llvoiceclient.cpp.

References clearCaptureDevices(), clearRenderDevices(), getCaptureDevicesSendMessage(), and getRenderDevicesSendMessage().

Referenced by LLPanelVoiceDeviceSettings::onOpen().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::daemonDied (  ) 

Definition at line 2295 of file llvoiceclient.cpp.

References closeSocket(), LL_ENDL, LL_WARNS, removeAllParticipants(), setState(), and stateDisabled.

Referenced by writeString().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::giveUp (  ) 

Definition at line 2307 of file llvoiceclient.cpp.

References closeSocket(), removeAllParticipants(), setState(), and stateJail.

Referenced by LLViewerVoiceAccountProvisionResponder::error().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::connectorCreateResponse ( int  statusCode,
std::string &  statusString,
std::string &  connectorHandle 
)

Definition at line 2555 of file llvoiceclient.cpp.

References getState(), LL_ENDL, LL_WARNS, mConnectorHandle, setState(), stateConnectorFailed, stateConnectorStarted, and stateConnectorStarting.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::loginResponse ( int  statusCode,
std::string &  statusString,
std::string &  accountHandle 
)

Definition at line 2573 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, LL_INFOS, LL_WARNS, mAccountHandle, setState(), stateLoginFailed, and stateLoginRetry.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::channelGetListResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2602 of file llvoiceclient.cpp.

References findChannelURI(), LL_ENDL, LL_INFOS, LL_WARNS, mChannelName, and switchChannel().

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionCreateResponse ( int  statusCode,
std::string &  statusString,
std::string &  sessionHandle 
)

Definition at line 2629 of file llvoiceclient.cpp.

References getState(), LL_DEBUGS, LL_ENDL, LL_WARNS, mSessionHandle, mVivoxErrorStatusCode, mVivoxErrorStatusString, sessionTerminateByHandle(), setState(), stateJoiningSession, and stateJoinSessionFailed.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionConnectResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2687 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, LL_WARNS, mVivoxErrorStatusCode, mVivoxErrorStatusString, setState(), and stateJoinSessionFailed.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionTerminateResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2710 of file llvoiceclient.cpp.

References getState(), LL_ENDL, LL_WARNS, setState(), stateLeavingSession, and stateSessionTerminated.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::logoutResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2725 of file llvoiceclient.cpp.

References getState(), LL_ENDL, LL_WARNS, setState(), stateLoggedOut, and stateLoggingOut.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::connectorShutdownResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2739 of file llvoiceclient.cpp.

References getState(), LL_ENDL, LL_WARNS, mConnected, setState(), stateConnectorStopped, and stateConnectorStopping.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::loginStateChangeEvent ( std::string &  accountHandle,
int  statusCode,
std::string &  statusString,
int  state 
)

Definition at line 2857 of file llvoiceclient.cpp.

References getState(), LL_DEBUGS, LL_ENDL, setState(), stateLoggedIn, and stateLoggingIn.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionNewEvent ( std::string &  accountHandle,
std::string &  eventSessionHandle,
int  state,
std::string &  nameString,
std::string &  uriString 
)

Definition at line 2890 of file llvoiceclient.cpp.

References LLIMMgr::computeSessionID(), gIMMgr, IDFromName(), IM_SESSION_P2P_INVITE, LLIMMgr::INVITATION_TYPE_VOICE, LLIMMgr::inviteToSession(), LL_DEBUGS, LL_ENDL, LL_WARNS, and LLStringBase< char >::null.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::sessionStateChangeEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
std::string &  sessionHandle,
int  state,
bool  isChannel,
std::string &  nameString 
)

void LLVoiceClient::participantStateChangeEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
int  state,
std::string &  nameString,
std::string &  displayNameString,
int  participantType 
)

Definition at line 2932 of file llvoiceclient.cpp.

References addParticipant(), findParticipant(), LL_DEBUGS, LL_ENDL, LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mName, NULL, and removeParticipant().

Referenced by LLVivoxProtocolParser::processResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::participantPropertiesEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
bool  isLocallyMuted,
bool  isModeratorMuted,
bool  isSpeaking,
int  volume,
F32  energy 
)

void LLVoiceClient::auxAudioPropertiesEvent ( F32  energy  ) 

Definition at line 2997 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mTuningEnergy.

Referenced by LLVivoxProtocolParser::processResponse().

Here is the caller graph for this function:

void LLVoiceClient::muteListChanged (  ) 

Definition at line 3003 of file llvoiceclient.cpp.

References mParticipantMap, p, and updateMuteState().

Referenced by LLVoiceClientMuteListObserver::onChange().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setCameraPosition ( const LLVector3d position,
const LLVector3 velocity,
const LLMatrix3 rot 
)

Definition at line 3506 of file llvoiceclient.cpp.

References mCameraRequestedPosition, mCameraRot, mCameraVelocity, and mSpatialCoordsDirty.

Referenced by LLAgent::updateCamera().

Here is the caller graph for this function:

void LLVoiceClient::setAvatarPosition ( const LLVector3d position,
const LLVector3 velocity,
const LLMatrix3 rot 
)

Definition at line 3523 of file llvoiceclient.cpp.

References dist_vec(), mAvatarPosition, mAvatarRot, mAvatarVelocity, and mSpatialCoordsDirty.

Referenced by LLVOAvatar::updateCharacter().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::channelFromRegion ( LLViewerRegion region,
std::string &  name 
)

Definition at line 3544 of file llvoiceclient.cpp.

References LLViewerRegion::getName().

Here is the call graph for this function:

void LLVoiceClient::leaveChannel ( void   ) 

Definition at line 3559 of file llvoiceclient.cpp.

References getState(), LL_DEBUGS, LL_ENDL, mChannelName, sessionTerminate(), and stateRunning.

Referenced by LLAppViewer::sendLogoutRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setMuteMic ( bool  muted  ) 

Definition at line 3569 of file llvoiceclient.cpp.

References mMuteMic.

Referenced by audio_update_volume().

Here is the caller graph for this function:

void LLVoiceClient::setUserPTTState ( bool  ptt  ) 

Definition at line 3574 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by keyDown(), keyUp(), middleMouseState(), LLVoiceRemoteCtrl::onBtnTalkHeld(), and LLVoiceRemoteCtrl::onBtnTalkReleased().

Here is the caller graph for this function:

bool LLVoiceClient::getUserPTTState (  ) 

Definition at line 3579 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by LLVoiceRemoteCtrl::draw().

Here is the caller graph for this function:

void LLVoiceClient::toggleUserPTTState ( void   ) 

Definition at line 3584 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by keyDown(), middleMouseState(), and LLVoiceRemoteCtrl::onBtnTalkClicked().

Here is the caller graph for this function:

void LLVoiceClient::setVoiceEnabled ( bool  enabled  ) 

Definition at line 3589 of file llvoiceclient.cpp.

References LLVoiceChannel::activate(), LLVoiceChannel::getCurrentVoiceChannel(), and mVoiceEnabled.

Referenced by handleVoiceClientPrefsChanged(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::voiceEnabled (  )  [static]

void LLVoiceClient::setUsePTT ( bool  usePTT  ) 

Definition at line 3629 of file llvoiceclient.cpp.

References mUsePTT, and mUserPTTState.

Referenced by handleVoiceClientPrefsChanged().

Here is the caller graph for this function:

void LLVoiceClient::setPTTIsToggle ( bool  PTTIsToggle  ) 

Definition at line 3639 of file llvoiceclient.cpp.

References mPTTIsToggle, and mUserPTTState.

Referenced by handleVoiceClientPrefsChanged().

Here is the caller graph for this function:

void LLVoiceClient::setPTTKey ( std::string &  key  ) 

Definition at line 3651 of file llvoiceclient.cpp.

References KEY_NONE, LLKeyboard::keyFromString(), mPTTIsMiddleMouse, and mPTTKey.

Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setEarLocation ( S32  loc  ) 

Definition at line 3668 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mEarLocation, and mSpatialCoordsDirty.

Referenced by handleVoiceClientPrefsChanged().

Here is the caller graph for this function:

void LLVoiceClient::setVoiceVolume ( F32  volume  ) 

Definition at line 3679 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mSpeakerMuteDirty, mSpeakerVolume, and mSpeakerVolumeDirty.

Referenced by audio_update_volume(), and LLVoiceClient().

Here is the caller graph for this function:

void LLVoiceClient::setMicGain ( F32  volume  ) 

Definition at line 3705 of file llvoiceclient.cpp.

References mMicVolume, and mMicVolumeDirty.

Referenced by audio_update_volume().

Here is the caller graph for this function:

void LLVoiceClient::setUserVolume ( const LLUUID id,
F32  volume 
)

Definition at line 3910 of file llvoiceclient.cpp.

References findParticipantByID(), llclamp(), LLVoiceClient::participantState::mUserVolume, mVolumeDirty, LLVoiceClient::participantState::mVolumeDirty, S32, and TRUE.

Referenced by LLSpeaker::LLSpeaker(), LLFloaterIMPanel::onVolumeChange(), and LLPanelActiveSpeakers::onVolumeChange().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setVivoxDebugServerName ( std::string &  serverName  ) 

Definition at line 3715 of file llvoiceclient.cpp.

References mAccountServerName, and sConnectingToAgni.

Referenced by handleVoiceClientPrefsChanged().

Here is the caller graph for this function:

void LLVoiceClient::setLipSyncEnabled ( U32  enabled  ) 

Definition at line 3611 of file llvoiceclient.cpp.

References mLipSyncEnabled.

Referenced by handleVoiceClientPrefsChanged().

Here is the caller graph for this function:

U32 LLVoiceClient::lipSyncEnabled (  ) 

Definition at line 3616 of file llvoiceclient.cpp.

References getState(), mLipSyncEnabled, mVoiceEnabled, and stateDisabled.

Referenced by LLVOAvatar::idleUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::keyDown ( KEY  key,
MASK  mask 
)

Definition at line 3728 of file llvoiceclient.cpp.

References LLKeyboard::getKeyDown(), LLKeyboard::getKeyRepeated(), gKeyboard, KEY_NONE, LL_DEBUGS, LL_ENDL, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, setUserPTTState(), LLKeyboard::stringFromKey(), and toggleUserPTTState().

Referenced by LLViewerWindow::handleTranslatedKeyDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::keyUp ( KEY  key,
MASK  mask 
)

Definition at line 3753 of file llvoiceclient.cpp.

References LLKeyboard::getKeyDown(), gKeyboard, KEY_NONE, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, and setUserPTTState().

Referenced by LLViewerWindow::handleTranslatedKeyUp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::middleMouseState ( bool  down  ) 

Definition at line 3763 of file llvoiceclient.cpp.

References mPTTIsMiddleMouse, mPTTIsToggle, setUserPTTState(), and toggleUserPTTState().

Referenced by LLViewerWindow::handleMiddleMouseDown(), and LLViewerWindow::handleMiddleMouseUp().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVoiceClient::getVoiceEnabled ( const LLUUID id  ) 

Definition at line 3783 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and TRUE.

Referenced by LLVOAvatar::idleUpdate(), LLVOAvatar::LLVOAvatar(), LLPanelActiveSpeakers::refreshSpeakers(), and LLSpeakerMgr::update().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVoiceClient::getIsSpeaking ( const LLUUID id  ) 

BOOL LLVoiceClient::getIsModeratorMuted ( const LLUUID id  ) 

Definition at line 3814 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mIsModeratorMuted.

Referenced by LLSpeakerMgr::update().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLVoiceClient::getCurrentPower ( const LLUUID id  ) 

Definition at line 3827 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mPower.

Referenced by LLVoiceRemoteCtrl::draw(), LLVOAvatar::idleUpdate(), and LLSpeakerMgr::update().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVoiceClient::getPTTPressed ( const LLUUID id  ) 

Definition at line 3868 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mPTT.

Here is the call graph for this function:

BOOL LLVoiceClient::getOnMuteList ( const LLUUID id  ) 

Definition at line 3881 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mOnMuteList.

Referenced by LLSpeakerMgr::update().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLVoiceClient::getUserVolume ( const LLUUID id  ) 

Definition at line 3896 of file llvoiceclient.cpp.

References findParticipantByID(), LLVoiceClient::participantState::mUserVolume, S32, and sqrtf.

Referenced by LLFloaterIMPanel::draw(), and LLPanelActiveSpeakers::refreshSpeakers().

Here is the call graph for this function:

Here is the caller graph for this function:

LLString LLVoiceClient::getDisplayName ( const LLUUID id  ) 

Definition at line 3840 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mDisplayName.

Here is the call graph for this function:

BOOL LLVoiceClient::getUsingPTT ( const LLUUID id  ) 

Definition at line 3853 of file llvoiceclient.cpp.

References FALSE, and findParticipantByID().

Here is the call graph for this function:

LLVoiceClient::serviceType LLVoiceClient::getServiceType ( const LLUUID id  ) 

Definition at line 3925 of file llvoiceclient.cpp.

References findParticipantByID(), LLVoiceClient::participantState::mServiceType, and serviceTypeUnknown.

Here is the call graph for this function:

std::string LLVoiceClient::getGroupID ( const LLUUID id  ) 

Definition at line 3938 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mGroupID.

Here is the call graph for this function:

BOOL LLVoiceClient::getAreaVoiceDisabled (  ) 

Definition at line 3951 of file llvoiceclient.cpp.

References mAreaVoiceDisabled.

LLVoiceClient::participantState * LLVoiceClient::findParticipant ( const std::string &  uri  ) 

Definition at line 3107 of file llvoiceclient.cpp.

References mConnected, mParticipantMap, and NULL.

Referenced by findParticipantByAvatar(), findParticipantByID(), participantPropertiesEvent(), and participantStateChangeEvent().

Here is the caller graph for this function:

LLVoiceClient::participantState * LLVoiceClient::findParticipantByAvatar ( LLVOAvatar avatar  ) 

LLVoiceClient::participantState * LLVoiceClient::findParticipantByID ( const LLUUID id  ) 

Definition at line 3157 of file llvoiceclient.cpp.

References findParticipant(), nameFromID(), and NULL.

Referenced by getCurrentPower(), getDisplayName(), getGroupID(), getIsModeratorMuted(), getIsSpeaking(), getOnMuteList(), getPTTPressed(), getServiceType(), getUserVolume(), getUsingPTT(), getVoiceEnabled(), onAvatarNameLookup(), and setUserVolume().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVoiceClient::participantMap * LLVoiceClient::getParticipantList ( void   ) 

Definition at line 3101 of file llvoiceclient.cpp.

References mParticipantMap.

Referenced by LLSpeakerMgr::updateSpeakerList().

Here is the caller graph for this function:

void LLVoiceClient::addObserver ( LLVoiceClientParticipantObserver observer  ) 

Definition at line 3956 of file llvoiceclient.cpp.

References mObservers.

void LLVoiceClient::removeObserver ( LLVoiceClientParticipantObserver observer  ) 

Definition at line 3961 of file llvoiceclient.cpp.

References mObservers.

void LLVoiceClient::addStatusObserver ( LLVoiceClientStatusObserver observer  ) 

Definition at line 3979 of file llvoiceclient.cpp.

References mStatusObservers.

Referenced by LLVoiceChannel::LLVoiceChannel().

Here is the caller graph for this function:

void LLVoiceClient::removeStatusObserver ( LLVoiceClientStatusObserver observer  ) 

Definition at line 3984 of file llvoiceclient.cpp.

References mStatusObservers.

Referenced by LLVoiceChannel::~LLVoiceChannel().

Here is the caller graph for this function:

void LLVoiceClient::onAvatarNameLookup ( const LLUUID id,
const char *  first,
const char *  last,
BOOL  is_group,
void *  user_data 
) [static]

Definition at line 4039 of file llvoiceclient.cpp.

References findParticipantByID(), llformat(), LLVoiceClient::participantState::mDisplayName, and notifyObservers().

Here is the call graph for this function:

LLVoiceClient::deviceList * LLVoiceClient::getCaptureDevices (  ) 

Definition at line 2093 of file llvoiceclient.cpp.

References mCaptureDevices.

Referenced by LLPanelVoiceDeviceSettings::refresh().

Here is the caller graph for this function:

LLVoiceClient::deviceList * LLVoiceClient::getRenderDevices (  ) 

Definition at line 2132 of file llvoiceclient.cpp.

References mRenderDevices.

Referenced by LLPanelVoiceDeviceSettings::refresh().

Here is the caller graph for this function:

void LLVoiceClient::setNonSpatialChannel ( const std::string &  uri,
const std::string &  credentials 
)

Definition at line 3302 of file llvoiceclient.cpp.

References switchChannel().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setSpatialChannel ( const std::string &  uri,
const std::string &  credentials 
)

Definition at line 3309 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, LL_INFOS, mAreaVoiceDisabled, mNextSessionSpatial, mNonSpatialChannel, mSpatialSessionURI, and switchChannel().

Referenced by LLViewerParcelVoiceInfo::post(), and LLVoiceClientCapResponder::result().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::callUser ( LLUUID uuid  ) 

Definition at line 3329 of file llvoiceclient.cpp.

References sipURIFromID(), and switchChannel().

Referenced by LLVoiceChannelP2P::activate(), and LLVoiceChannelP2P::setSessionHandle().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::answerInvite ( std::string &  sessionHandle,
LLUUID other_user_id 
)

Definition at line 3336 of file llvoiceclient.cpp.

References joinSession(), and sipURIFromID().

Referenced by LLVoiceChannelP2P::activate().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::declineInvite ( std::string &  sessionHandle  ) 

Definition at line 3341 of file llvoiceclient.cpp.

References sessionTerminateByHandle().

Referenced by LLIMMgr::inviteUserResponse().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::leaveNonSpatialChannel (  ) 

Definition at line 3346 of file llvoiceclient.cpp.

References mSpatialSessionURI, and switchChannel().

Referenced by LLVoiceChannelProximal::activate(), and LLVoiceChannelGroup::deactivate().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLVoiceClient::getCurrentChannel (  ) 

Definition at line 3351 of file llvoiceclient.cpp.

References getState(), mSessionTerminateRequested, mSessionURI, and stateRunning.

Referenced by LLVoiceChannel::isActive().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::inProximalChannel (  ) 

Definition at line 3361 of file llvoiceclient.cpp.

References getState(), mNonSpatialChannel, mSessionTerminateRequested, and stateRunning.

Referenced by LLVOAvatar::idleUpdate(), LLVoiceChannelProximal::isActive(), LLSpeakerMgr::update(), and LLSpeakerMgr::updateSpeakerList().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLVoiceClient::sipURIFromID ( const LLUUID id  ) 

Definition at line 3373 of file llvoiceclient.cpp.

References mAccountServerName, and nameFromID().

Referenced by answerInvite(), and callUser().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::setState ( state  inState  )  [private]

state LLVoiceClient::getState ( void   )  [inline, private]

const char * LLVoiceClient::state2string ( LLVoiceClient::state  inState  )  [static, private]

void LLVoiceClient::stateMachine (  )  [private]

Definition at line 1175 of file llvoiceclient.cpp.

References LLPumpIO::addChain(), LLMuteList::addObserver(), buildSetCaptureDevice(), buildSetRenderDevice(), closeSocket(), CONNECT_THROTTLE_SECONDS, connectorCreate(), connectorShutdown(), LLSocket::create(), enforceTether(), LLVoiceClientStatusObserver::ERROR_UNKNOWN, FALSE, gAgent, gAPRPoolp, gDirUtilp, gDisconnected, LLViewerParcelMgr::getAgentParcel(), LLDir::getAppRODataDir(), LLControlGroup::getBOOL(), LLViewerRegion::getCapability(), getCaptureDevicesSendMessage(), LLDir::getDirDelimiter(), LLMuteList::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getLocalID(), LLViewerRegion::getName(), LLAgent::getRegion(), getRenderDevicesSendMessage(), getState(), LLControlGroup::getString(), LLControlGroup::getU32(), gSavedSettings, LLTimer::hasExpired(), i, isGatewayRunning(), killGateway(), LL_DEBUGS, LL_ENDL, LL_INFOS, LL_WARNS, LLVivoxProtocolParser, LOGIN_RETRY_SECONDS, loginSendMessage(), logout(), mAccountName, mAccountPassword, mAccountServerURI, MAX_LOGIN_RETRIES, mCaptureDevice, mCaptureDeviceDirty, mCommandCookie, mConnected, mCurrentParcelLocalID, mCurrentRegionName, mDaemonHost, mLoginRetryCount, mMuteMic, mNextSessionHandle, mNextSessionSpatial, mNextSessionURI, mNonSpatialChannel, mParticipantMapChanged, mPTT, mPTTDirty, mPump, mRenderDevice, mRenderDeviceDirty, mSessionHandle, mSessionP2P, mSessionTerminateRequested, mSocket, mSpatialCoordsDirty, mSpeakerVolumeDirty, mTuningExitState, mTuningMicVolume, mTuningMicVolumeDirty, mTuningMode, mTuningSpeakerVolume, mTuningSpeakerVolumeDirty, mUpdateTimer, mUsePTT, mUserPTTState, mVivoxErrorStatusCode, mVivoxErrorStatusString, mVoiceEnabled, mVolumeDirty, NEVER_CHAIN_EXPIRY_SECS, notifyObservers(), notifyStatusObservers(), NULL, parcelChanged(), removeAllParticipants(), requestVoiceAccountProvision(), S32, sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateSendMessage(), setState(), LLTimer::setTimerExpirySec(), setVoiceEnabled(), sMuteListListener_listening, LLTimer::start(), LLFile::stat(), stateConnecting, stateConnectorFailed, stateConnectorFailedWaiting, stateConnectorStart, stateConnectorStarted, stateConnectorStarting, stateConnectorStopped, stateConnectorStopping, stateDaemonLaunched, stateDisabled, stateIdle, stateJail, stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateLoggedIn, stateLoggedOut, stateLoggingIn, stateLoggingOut, stateLoginFailed, stateLoginFailedWaiting, stateLoginRetry, stateLoginRetryWait, stateMicTuningNoLogin, stateMicTuningRunning, stateMicTuningStart, stateMicTuningStop, stateNeedsLogin, stateNoChannel, stateRunning, stateSessionConnect, stateSessionCreate, stateSessionJoined, stateSessionTerminated, stateStart, LLVoiceClientStatusObserver::STATUS_JOINED, LLVoiceClientStatusObserver::STATUS_JOINING, LLVoiceClientStatusObserver::STATUS_LEFT_CHANNEL, LLVoiceClientStatusObserver::STATUS_LOGGED_IN, LLVoiceClientStatusObserver::STATUS_LOGIN_RETRY, LLSocket::STREAM_TCP, tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), UPDATE_THROTTLE_SECONDS, and writeString().

Here is the call graph for this function:

void LLVoiceClient::idle ( void *  user_data  )  [static, private]

Definition at line 1082 of file llvoiceclient.cpp.

Referenced by LLVoiceClient().

Here is the caller graph for this function:

void LLVoiceClient::closeSocket ( void   )  [private]

Definition at line 1884 of file llvoiceclient.cpp.

References mConnected, and mSocket.

Referenced by daemonDied(), giveUp(), stateMachine(), and terminate().

Here is the caller graph for this function:

LLVoiceClient::participantState * LLVoiceClient::addParticipant ( const std::string &  uri  )  [private]

void LLVoiceClient::removeParticipant ( LLVoiceClient::participantState participant  )  [private]

void LLVoiceClient::removeAllParticipants (  )  [private]

Definition at line 3091 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mParticipantMap, and removeParticipant().

Referenced by daemonDied(), giveUp(), sessionStateChangeEvent(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::updateMuteState ( participantState participant  )  [private]

void LLVoiceClient::clearChannelMap ( void   )  [private]

Definition at line 3169 of file llvoiceclient.cpp.

References mChannelMap.

void LLVoiceClient::addChannelMapEntry ( std::string &  name,
std::string &  uri 
) [private]

Definition at line 3174 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, and mChannelMap.

Referenced by LLVivoxProtocolParser::EndTag().

Here is the caller graph for this function:

std::string LLVoiceClient::findChannelURI ( std::string &  name  )  [private]

Definition at line 3180 of file llvoiceclient.cpp.

References mChannelMap.

Referenced by channelGetListResponse().

Here is the caller graph for this function:

void LLVoiceClient::parcelChanged (  )  [private]

Definition at line 3194 of file llvoiceclient.cpp.

References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), getState(), LL_DEBUGS, LL_ENDL, LL_INFOS, mCurrentParcelLocalID, mCurrentRegionName, LLHTTPClient::post(), and stateLoggedIn.

Referenced by sessionStateChangeEvent(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::switchChannel ( std::string  uri = std::string(),
bool  spatial = true,
bool  noReconnect = false,
std::string  hash = "" 
) [private]

void LLVoiceClient::joinSession ( std::string  handle,
std::string  uri 
) [private]

Definition at line 3282 of file llvoiceclient.cpp.

References getState(), mNextP2PSessionURI, mNextSessionHandle, mNextSessionHash, mNextSessionNoReconnect, mNextSessionSpatial, mNextSessionURI, sessionTerminate(), and stateNoChannel.

Referenced by answerInvite().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLVoiceClient::nameFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3398 of file llvoiceclient.cpp.

References LLVOAvatar::getID(), and nameFromID().

Referenced by findParticipantByAvatar().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLVoiceClient::nameFromID ( const LLUUID id  )  [private]

Definition at line 3408 of file llvoiceclient.cpp.

References LLBase64::encode(), LLStringBase< char >::replaceChar(), LLUUID::toCompressedString(), and UUID_BYTES.

Referenced by findParticipantByID(), nameFromAvatar(), sipURIFromAvatar(), sipURIFromID(), and userAuthorized().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVoiceClient::IDFromName ( const std::string  name,
LLUUID uuid 
) [private]

Definition at line 3430 of file llvoiceclient.cpp.

References LLUUID::mData, LLStringBase< char >::replaceChar(), and UUID_BYTES.

Referenced by addParticipant(), and sessionNewEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLVoiceClient::displayNameFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3462 of file llvoiceclient.cpp.

References LLVOAvatar::getFullname().

Here is the call graph for this function:

std::string LLVoiceClient::sipURIFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3384 of file llvoiceclient.cpp.

References LLVOAvatar::getID(), mAccountServerName, and nameFromID().

Here is the call graph for this function:

std::string LLVoiceClient::sipURIFromName ( std::string &  name  )  [private]

Definition at line 3467 of file llvoiceclient.cpp.

References mAccountServerName.

void LLVoiceClient::sendPositionalUpdate ( void   )  [private]

void LLVoiceClient::buildSetCaptureDevice ( std::ostringstream &  stream  )  [private]

Definition at line 2530 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCaptureDevice, and mCommandCookie.

Referenced by sendPositionalUpdate(), and stateMachine().

Here is the caller graph for this function:

void LLVoiceClient::buildSetRenderDevice ( std::ostringstream &  stream  )  [private]

Definition at line 2541 of file llvoiceclient.cpp.

References LL_DEBUGS, LL_ENDL, mCommandCookie, and mRenderDevice.

Referenced by sendPositionalUpdate(), and stateMachine().

Here is the caller graph for this function:

void LLVoiceClient::enforceTether ( void   )  [private]

Definition at line 3483 of file llvoiceclient.cpp.

References dist_vec(), LLVector3d::magVec(), mAvatarPosition, mCameraPosition, mCameraRequestedPosition, and mSpatialCoordsDirty.

Referenced by stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::notifyObservers (  )  [private]

Definition at line 3966 of file llvoiceclient.cpp.

References mObservers, and LLVoiceClientParticipantObserver::onChange().

Referenced by onAvatarNameLookup(), and stateMachine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceClient::notifyStatusObservers ( LLVoiceClientStatusObserver::EStatusType  status  )  [private]


Friends And Related Function Documentation

friend class LLVivoxProtocolParser [friend]

Definition at line 372 of file llvoiceclient.h.

Referenced by stateMachine().


Member Data Documentation

Definition at line 354 of file llvoiceclient.h.

Referenced by getState(), and setState().

Definition at line 365 of file llvoiceclient.h.

Referenced by stateMachine().

Definition at line 366 of file llvoiceclient.h.

Referenced by closeSocket(), stateMachine(), and writeString().

bool LLVoiceClient::mConnected [private]

Definition at line 371 of file llvoiceclient.h.

Referenced by init(), LLVoiceClient(), and stateMachine().

std::string LLVoiceClient::mAccountName [private]

Definition at line 374 of file llvoiceclient.h.

Referenced by login(), loginSendMessage(), stateMachine(), and userAuthorized().

std::string LLVoiceClient::mAccountPassword [private]

Definition at line 375 of file llvoiceclient.h.

Referenced by login(), loginSendMessage(), logout(), and stateMachine().

std::string LLVoiceClient::mAccountDisplayName [private]

Definition at line 376 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mAccountFirstName [private]

Definition at line 377 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mAccountLastName [private]

Definition at line 378 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mNextP2PSessionURI [private]

Definition at line 380 of file llvoiceclient.h.

Referenced by joinSession(), sessionConnectSendMessage(), and switchChannel().

std::string LLVoiceClient::mNextSessionURI [private]

std::string LLVoiceClient::mNextSessionHandle [private]

std::string LLVoiceClient::mNextSessionHash [private]

Definition at line 383 of file llvoiceclient.h.

Referenced by joinSession(), sessionCreateSendMessage(), and switchChannel().

Definition at line 388 of file llvoiceclient.h.

Referenced by sessionStateChangeEvent().

std::string LLVoiceClient::mSessionStateEventURI [private]

Definition at line 389 of file llvoiceclient.h.

Referenced by sessionStateChangeEvent().

Definition at line 391 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), tuningStart(), and tuningStop().

std::string LLVoiceClient::mTuningAudioFile [private]

Definition at line 393 of file llvoiceclient.h.

Referenced by tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().

Definition at line 394 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().

Definition at line 395 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().

Definition at line 396 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().

Definition at line 397 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().

Definition at line 398 of file llvoiceclient.h.

Referenced by stateMachine().

std::string LLVoiceClient::mSpatialSessionURI [private]

Definition at line 400 of file llvoiceclient.h.

Referenced by leaveNonSpatialChannel(), and setSpatialChannel().

std::string LLVoiceClient::mChannelName [private]

Definition at line 407 of file llvoiceclient.h.

Referenced by channelGetListResponse(), leaveChannel(), and sessionCreateSendMessage().

Definition at line 408 of file llvoiceclient.h.

Referenced by getAreaVoiceDisabled(), LLVoiceClient(), and setSpatialChannel().

std::string LLVoiceClient::mSessionURI [private]

Definition at line 412 of file llvoiceclient.h.

Referenced by LLVoiceClient(), parcelChanged(), and stateMachine().

std::string LLVoiceClient::mCurrentRegionName [private]

Definition at line 413 of file llvoiceclient.h.

Referenced by parcelChanged(), and stateMachine().

std::string LLVoiceClient::mConnectorHandle [private]

std::string LLVoiceClient::mAccountHandle [private]

std::string LLVoiceClient::mSessionHandle [private]

std::string LLVoiceClient::mAccountServerName [private]

std::string LLVoiceClient::mAccountServerURI [private]

Definition at line 421 of file llvoiceclient.h.

Referenced by connectorCreate(), stateMachine(), and userAuthorized().

Definition at line 423 of file llvoiceclient.h.

Referenced by LLVoiceClient(), and stateMachine().

Definition at line 428 of file llvoiceclient.h.

Referenced by addCaptureDevice(), clearCaptureDevices(), and getCaptureDevices().

std::string LLVoiceClient::mCaptureDevice [private]

Definition at line 431 of file llvoiceclient.h.

Referenced by buildSetCaptureDevice(), setCaptureDevice(), and stateMachine().

std::string LLVoiceClient::mRenderDevice [private]

Definition at line 432 of file llvoiceclient.h.

Referenced by buildSetRenderDevice(), setRenderDevice(), and stateMachine().

Definition at line 445 of file llvoiceclient.h.

Referenced by addChannelMapEntry(), clearChannelMap(), and findChannelURI().

Definition at line 475 of file llvoiceclient.h.

Referenced by enforceTether(), and sendPositionalUpdate().

Definition at line 476 of file llvoiceclient.h.

Referenced by enforceTether(), and setCameraPosition().

Definition at line 477 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setCameraPosition().

Definition at line 478 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setCameraPosition().

Definition at line 480 of file llvoiceclient.h.

Referenced by enforceTether(), sendPositionalUpdate(), and setAvatarPosition().

Definition at line 481 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setAvatarPosition().

Definition at line 482 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setAvatarPosition().

bool LLVoiceClient::mPTTDirty [private]

Definition at line 484 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().

bool LLVoiceClient::mPTT [private]

Definition at line 485 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().

bool LLVoiceClient::mUsePTT [private]

Definition at line 487 of file llvoiceclient.h.

Referenced by LLVoiceClient(), setUsePTT(), and stateMachine().

Definition at line 488 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), middleMouseState(), and setPTTKey().

Definition at line 489 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), and setPTTKey().

Definition at line 490 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), LLVoiceClient(), middleMouseState(), and setPTTIsToggle().

bool LLVoiceClient::mMuteMic [private]

Definition at line 492 of file llvoiceclient.h.

Referenced by LLVoiceClient(), setMuteMic(), and stateMachine().

Definition at line 505 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setEarLocation().

Definition at line 507 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), setVoiceVolume(), and stateMachine().

Definition at line 508 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setVoiceVolume().

Definition at line 509 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setVoiceVolume().

Definition at line 511 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().

Definition at line 512 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().

Definition at line 515 of file llvoiceclient.h.

Referenced by LLVoiceClient().

std::string LLVoiceClient::mWriteString [private]

Definition at line 516 of file llvoiceclient.h.

size_t LLVoiceClient::mWriteOffset [private]

Definition at line 517 of file llvoiceclient.h.

Definition at line 519 of file llvoiceclient.h.

Referenced by stateMachine().

Definition at line 521 of file llvoiceclient.h.

Referenced by lipSyncEnabled(), LLVoiceClient(), and setLipSyncEnabled().

Definition at line 524 of file llvoiceclient.h.

Referenced by addObserver(), notifyObservers(), and removeObserver().

Definition at line 529 of file llvoiceclient.h.

Referenced by addStatusObserver(), notifyStatusObservers(), and removeStatusObserver().


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

Generated on Fri May 16 09:37:15 2008 for SecondLife by  doxygen 1.5.5