Avionics
Dropship Simulator
Devices::TeamSpeak Class Reference

#include <TeamSpeak.h>

Collaboration diagram for Devices::TeamSpeak:
[legend]

Public Member Functions

void Initialize (Logger *prmLogger, TeamSpeakConfig *prmConfig, Bus *prmBus)
 
void FrameMove ()
 
void Connect () const
 
void Destroy () const
 

Private Member Functions

void Log (char *method, const char *msg, Logger::Level level=Logger::Level::Info, int errorno=0) const
 
void SetPTT (bool shouldTalk) const
 

Static Private Member Functions

static void onUserLoggingMessageEvent (const char *logMessage, int logLevel, const char *logChannel, uint64 logID, const char *logTime, const char *completeLogString)
 
static void onConnectStatusChangeEvent (uint64 serverConnectionHandlerID, int newStatus, unsigned int errorNumber)
 
static void onNewChannelEvent (uint64 serverConnectionHandlerID, uint64 channelID, uint64 channelParentID)
 
static void onNewChannelCreatedEvent (uint64 serverConnectionHandlerID, uint64 channelID, uint64 channelParentID, anyID invokerID, const char *invokerName, const char *invokerUniqueIdentifier)
 
static void onDelChannelEvent (uint64 serverConnectionHandlerID, uint64 channelID, anyID invokerID, const char *invokerName, const char *invokerUniqueIdentifier)
 
static void onClientMoveEvent (uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility, const char *moveMessage)
 
static void onClientMoveSubscriptionEvent (uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility)
 
static void onClientMoveTimeoutEvent (uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility, const char *timeoutMessage)
 
static void onTalkStatusChangeEvent (uint64 serverConnectionHandlerID, int status, int isReceivedWhisper, anyID clientID)
 
static void onIgnoredWhisperEvent (uint64 serverConnectionHandlerID, anyID clientID)
 
static void onServerErrorEvent (uint64 serverConnectionHandlerID, const char *errorMessage, unsigned int error, const char *returnCode, const char *extraMessage)
 

Private Attributes

Loggerlogger = nullptr
 
TeamSpeakConfigconfig = nullptr
 
Busbus = nullptr
 
uint64 scHandlerID = 0
 
bool lostConnection = false
 

Detailed Description

Definition at line 23 of file TeamSpeak.h.

Member Function Documentation

◆ Connect()

void Devices::TeamSpeak::Connect ( ) const

Definition at line 287 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Destroy()

void Devices::TeamSpeak::Destroy ( ) const

Definition at line 531 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FrameMove()

void Devices::TeamSpeak::FrameMove ( )

see if there is a PTT command change from the RTU

Definition at line 582 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

void Devices::TeamSpeak::Initialize ( Logger prmLogger,
TeamSpeakConfig prmConfig,
Bus prmBus 
)

turn off noise suppression

Set gain

signals to turn off VAD for PTT

0 is default

Todo:
SetTSVolume();

Definition at line 297 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log()

void Devices::TeamSpeak::Log ( char *  method,
const char *  msg,
Logger::Level  level = Logger::Level::Info,
int  errorno = 0 
) const
private

Definition at line 560 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onClientMoveEvent()

void Devices::TeamSpeak::onClientMoveEvent ( uint64  serverConnectionHandlerID,
anyID  clientID,
uint64  oldChannelID,
uint64  newChannelID,
int  visibility,
const char *  moveMessage 
)
staticprivate

Definition at line 146 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onClientMoveSubscriptionEvent()

void Devices::TeamSpeak::onClientMoveSubscriptionEvent ( uint64  serverConnectionHandlerID,
anyID  clientID,
uint64  oldChannelID,
uint64  newChannelID,
int  visibility 
)
staticprivate

Definition at line 164 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onClientMoveTimeoutEvent()

void Devices::TeamSpeak::onClientMoveTimeoutEvent ( uint64  serverConnectionHandlerID,
anyID  clientID,
uint64  oldChannelID,
uint64  newChannelID,
int  visibility,
const char *  timeoutMessage 
)
staticprivate

Definition at line 190 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onConnectStatusChangeEvent()

void Devices::TeamSpeak::onConnectStatusChangeEvent ( uint64  serverConnectionHandlerID,
int  newStatus,
unsigned int  errorNumber 
)
staticprivate
Warning
Cannot call TeamSpeak crap from within TeamSpeak event handlers so we have to set a flag for later processing
Bug:
https://unistellar.fogbugz.com/default.asp?2730

Definition at line 22 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onDelChannelEvent()

void Devices::TeamSpeak::onDelChannelEvent ( uint64  serverConnectionHandlerID,
uint64  channelID,
anyID  invokerID,
const char *  invokerName,
const char *  invokerUniqueIdentifier 
)
staticprivate

Definition at line 128 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onIgnoredWhisperEvent()

void Devices::TeamSpeak::onIgnoredWhisperEvent ( uint64  serverConnectionHandlerID,
anyID  clientID 
)
staticprivate

Definition at line 235 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onNewChannelCreatedEvent()

void Devices::TeamSpeak::onNewChannelCreatedEvent ( uint64  serverConnectionHandlerID,
uint64  channelID,
uint64  channelParentID,
anyID  invokerID,
const char *  invokerName,
const char *  invokerUniqueIdentifier 
)
staticprivate

Definition at line 104 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onNewChannelEvent()

void Devices::TeamSpeak::onNewChannelEvent ( uint64  serverConnectionHandlerID,
uint64  channelID,
uint64  channelParentID 
)
staticprivate

Definition at line 72 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onServerErrorEvent()

void Devices::TeamSpeak::onServerErrorEvent ( uint64  serverConnectionHandlerID,
const char *  errorMessage,
unsigned int  error,
const char *  returnCode,
const char *  extraMessage 
)
staticprivate

Definition at line 252 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTalkStatusChangeEvent()

void Devices::TeamSpeak::onTalkStatusChangeEvent ( uint64  serverConnectionHandlerID,
int  status,
int  isReceivedWhisper,
anyID  clientID 
)
staticprivate

Definition at line 206 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onUserLoggingMessageEvent()

void Devices::TeamSpeak::onUserLoggingMessageEvent ( const char *  logMessage,
int  logLevel,
const char *  logChannel,
uint64  logID,
const char *  logTime,
const char *  completeLogString 
)
staticprivate

Definition at line 270 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPTT()

void Devices::TeamSpeak::SetPTT ( bool  shouldTalk) const
private

Definition at line 604 of file TeamSpeak.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bus

Bus* Devices::TeamSpeak::bus = nullptr
private

Definition at line 28 of file TeamSpeak.h.

◆ config

TeamSpeakConfig* Devices::TeamSpeak::config = nullptr
private

Definition at line 27 of file TeamSpeak.h.

◆ logger

Logger* Devices::TeamSpeak::logger = nullptr
private

Definition at line 26 of file TeamSpeak.h.

◆ lostConnection

bool Devices::TeamSpeak::lostConnection = false
private

Definition at line 31 of file TeamSpeak.h.

◆ scHandlerID

uint64 Devices::TeamSpeak::scHandlerID = 0
private

Definition at line 30 of file TeamSpeak.h.


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