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
LlconMath().UpDownIIR1 ( dCurIIRFilterResult,
MathUtils().UpDownIIR1 ( dCurIIRFilterResult,
static_cast<double> ( iCurDecision ),
dWeightUp,
dWeightDown );
// apply a hysteresis
iCurAutoBufferSizeSetting =
LlconMath().DecideWithHysteresis ( dCurIIRFilterResult,
MathUtils().DecideWithHysteresis ( dCurIIRFilterResult,
iCurDecidedResult,
dHysteresisValue );

View File

@ -319,8 +319,8 @@ void CClient::SetDoAutoSockBufSize ( const bool bValue )
bool CClient::SetServerAddr ( QString strNAddr )
{
CHostAddress HostAddress;
if ( LlconNetwUtil().ParseNetworkAddress ( strNAddr,
HostAddress ) )
if ( NetworkUtil().ParseNetworkAddress ( strNAddr,
HostAddress ) )
{
// apply address to the channel
Channel.SetAddress ( HostAddress );
@ -1231,5 +1231,5 @@ int CClient::EstimatedOverallDelay ( const int iPingTimeMs )
dTotalSoundCardDelayMs +
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
// function) when the connect dialog is opened, this seems to be the correct
// time to do it
if ( LlconNetwUtil().ParseNetworkAddress ( strCentralServerAddress,
CentralServerAddress ) )
if ( NetworkUtil().ParseNetworkAddress ( strCentralServerAddress,
CentralServerAddress ) )
{
// send the request for the server list
emit ReqServerListQuery ( CentralServerAddress );
@ -371,7 +371,7 @@ void CConnectDlg::OnTimerPing()
// try to parse host address string which is stored as user data
// in the server list item GUI control element
if ( LlconNetwUtil().ParseNetworkAddress (
if ( NetworkUtil().ParseNetworkAddress (
lvwServers->topLevelItem ( iIdx )->
data ( 0, Qt::UserRole ).toString(),
CurServerAddress ) )

View File

@ -118,7 +118,7 @@ CServerListManager::CServerListManager ( const quint16 iNPortNum,
true );
// [server n address]
LlconNetwUtil().ParseNetworkAddress (
NetworkUtil().ParseNetworkAddress (
slServInfoSeparateParams[iCurUsedServInfoSplitItems],
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
// it is an URL of a dynamic IP address, the IP address might have
// changed in the meanwhile.
if ( LlconNetwUtil().ParseNetworkAddress ( strCurCentrServAddr,
SlaveCurCentServerHostAddress ) )
if ( NetworkUtil().ParseNetworkAddress ( strCurCentrServAddr,
SlaveCurCentServerHostAddress ) )
{
if ( bIsRegister )
{

View File

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

View File

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