get rid of "Llcon"

This commit is contained in:
Volker Fischer 2013-03-24 11:38:00 +00:00
parent 0841ec12a4
commit 28defb82cb
6 changed files with 15 additions and 15 deletions

View file

@ -250,14 +250,14 @@ void CNetBufWithStats::UpdateAutoSetting()
} }
// apply non-linear IIR filter // apply non-linear IIR filter
LlconMath().UpDownIIR1 ( dCurIIRFilterResult, MathUtils().UpDownIIR1 ( dCurIIRFilterResult,
static_cast<double> ( iCurDecision ), static_cast<double> ( iCurDecision ),
dWeightUp, dWeightUp,
dWeightDown ); dWeightDown );
// apply a hysteresis // apply a hysteresis
iCurAutoBufferSizeSetting = iCurAutoBufferSizeSetting =
LlconMath().DecideWithHysteresis ( dCurIIRFilterResult, MathUtils().DecideWithHysteresis ( dCurIIRFilterResult,
iCurDecidedResult, iCurDecidedResult,
dHysteresisValue ); dHysteresisValue );

View file

@ -319,8 +319,8 @@ void CClient::SetDoAutoSockBufSize ( const bool bValue )
bool CClient::SetServerAddr ( QString strNAddr ) bool CClient::SetServerAddr ( QString strNAddr )
{ {
CHostAddress HostAddress; CHostAddress HostAddress;
if ( LlconNetwUtil().ParseNetworkAddress ( strNAddr, if ( NetworkUtil().ParseNetworkAddress ( strNAddr,
HostAddress ) ) HostAddress ) )
{ {
// apply address to the channel // apply address to the channel
Channel.SetAddress ( HostAddress ); Channel.SetAddress ( HostAddress );
@ -1231,5 +1231,5 @@ int CClient::EstimatedOverallDelay ( const int iPingTimeMs )
dTotalSoundCardDelayMs + dTotalSoundCardDelayMs +
dAdditionalAudioCodecDelayMs; dAdditionalAudioCodecDelayMs;
return LlconMath::round ( dTotalBufferDelayMs + iPingTimeMs ); return MathUtils::round ( dTotalBufferDelayMs + iPingTimeMs );
} }

View file

@ -159,8 +159,8 @@ void CConnectDlg::showEvent ( QShowEvent* )
// get the IP address of the central server (using the ParseNetworAddress // get the IP address of the central server (using the ParseNetworAddress
// function) when the connect dialog is opened, this seems to be the correct // function) when the connect dialog is opened, this seems to be the correct
// time to do it // time to do it
if ( LlconNetwUtil().ParseNetworkAddress ( strCentralServerAddress, if ( NetworkUtil().ParseNetworkAddress ( strCentralServerAddress,
CentralServerAddress ) ) CentralServerAddress ) )
{ {
// send the request for the server list // send the request for the server list
emit ReqServerListQuery ( CentralServerAddress ); emit ReqServerListQuery ( CentralServerAddress );
@ -371,7 +371,7 @@ void CConnectDlg::OnTimerPing()
// try to parse host address string which is stored as user data // try to parse host address string which is stored as user data
// in the server list item GUI control element // in the server list item GUI control element
if ( LlconNetwUtil().ParseNetworkAddress ( if ( NetworkUtil().ParseNetworkAddress (
lvwServers->topLevelItem ( iIdx )-> lvwServers->topLevelItem ( iIdx )->
data ( 0, Qt::UserRole ).toString(), data ( 0, Qt::UserRole ).toString(),
CurServerAddress ) ) CurServerAddress ) )

View file

@ -118,7 +118,7 @@ CServerListManager::CServerListManager ( const quint16 iNPortNum,
true ); true );
// [server n address] // [server n address]
LlconNetwUtil().ParseNetworkAddress ( NetworkUtil().ParseNetworkAddress (
slServInfoSeparateParams[iCurUsedServInfoSplitItems], slServInfoSeparateParams[iCurUsedServInfoSplitItems],
NewServerListEntry.HostAddr ); NewServerListEntry.HostAddr );
@ -469,8 +469,8 @@ void CServerListManager::SlaveServerRegisterServer ( const bool bIsRegister )
// Note that we always have to parse the server address again since if // Note that we always have to parse the server address again since if
// it is an URL of a dynamic IP address, the IP address might have // it is an URL of a dynamic IP address, the IP address might have
// changed in the meanwhile. // changed in the meanwhile.
if ( LlconNetwUtil().ParseNetworkAddress ( strCurCentrServAddr, if ( NetworkUtil().ParseNetworkAddress ( strCurCentrServAddr,
SlaveCurCentServerHostAddress ) ) SlaveCurCentServerHostAddress ) )
{ {
if ( bIsRegister ) if ( bIsRegister )
{ {

View file

@ -421,8 +421,8 @@ CLlconHelpMenu::CLlconHelpMenu ( QWidget* parent ) : QMenu ( "&?", parent )
* Other Classes * * Other Classes *
\******************************************************************************/ \******************************************************************************/
// Network utility functions --------------------------------------------------- // Network utility functions ---------------------------------------------------
bool LlconNetwUtil::ParseNetworkAddress ( QString strAddress, bool NetworkUtil::ParseNetworkAddress ( QString strAddress,
CHostAddress& HostAddress ) CHostAddress& HostAddress )
{ {
QHostAddress InetAddr; QHostAddress InetAddr;
quint16 iNetPort = LLCON_DEFAULT_PORT_NUMBER; quint16 iNetPort = LLCON_DEFAULT_PORT_NUMBER;

View file

@ -851,7 +851,7 @@ public:
// Network utility functions --------------------------------------------------- // Network utility functions ---------------------------------------------------
class LlconNetwUtil class NetworkUtil
{ {
public: public:
static bool ParseNetworkAddress ( QString strAddress, static bool ParseNetworkAddress ( QString strAddress,
@ -900,7 +900,7 @@ protected:
// Mathematics utilities ------------------------------------------------------- // Mathematics utilities -------------------------------------------------------
class LlconMath class MathUtils
{ {
public: public:
static int round ( double x ) static int round ( double x )