From ed74f3e3703867255b17f736fd2a98dd65f4e146 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 4 May 2011 07:00:43 +0000 Subject: [PATCH] make it clear which functions are actually only used by the central server --- src/server.h | 6 +++--- src/serverlist.cpp | 8 ++++---- src/serverlist.h | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/server.h b/src/server.h index 53491c21..baa6139a 100755 --- a/src/server.h +++ b/src/server.h @@ -246,17 +246,17 @@ public slots: } void OnCLReqServerList ( CHostAddress InetAddr ) - { ServerListManager.QueryServerList ( InetAddr ); } + { ServerListManager.CentralServerQueryServerList ( InetAddr ); } void OnCLRegisterServerReceived ( CHostAddress InetAddr, CServerCoreInfo ServerInfo ) { - ServerListManager.RegisterServer ( InetAddr, ServerInfo ); + ServerListManager.CentralServerRegisterServer ( InetAddr, ServerInfo ); } void OnCLUnregisterServerReceived ( CHostAddress InetAddr ) { - ServerListManager.UnregisterServer ( InetAddr ); + ServerListManager.CentralServerUnregisterServer ( InetAddr ); } diff --git a/src/serverlist.cpp b/src/serverlist.cpp index 8713995c..ba0b7a3d 100755 --- a/src/serverlist.cpp +++ b/src/serverlist.cpp @@ -243,8 +243,8 @@ void CServerListManager::OnTimerPollList() } } -void CServerListManager::RegisterServer ( const CHostAddress& InetAddr, - const CServerCoreInfo& ServerInfo ) +void CServerListManager::CentralServerRegisterServer ( const CHostAddress& InetAddr, + const CServerCoreInfo& ServerInfo ) { QMutexLocker locker ( &Mutex ); @@ -296,7 +296,7 @@ void CServerListManager::RegisterServer ( const CHostAddress& InetAddr, } } -void CServerListManager::UnregisterServer ( const CHostAddress& InetAddr ) +void CServerListManager::CentralServerUnregisterServer ( const CHostAddress& InetAddr ) { QMutexLocker locker ( &Mutex ); @@ -321,7 +321,7 @@ void CServerListManager::UnregisterServer ( const CHostAddress& InetAddr ) } } -void CServerListManager::QueryServerList ( const CHostAddress& InetAddr ) +void CServerListManager::CentralServerQueryServerList ( const CHostAddress& InetAddr ) { QMutexLocker locker ( &Mutex ); diff --git a/src/serverlist.h b/src/serverlist.h index 95b29698..36f2b5b4 100755 --- a/src/serverlist.h +++ b/src/serverlist.h @@ -143,12 +143,12 @@ public: bool GetIsCentralServer() const { return bIsCentralServer; } - void RegisterServer ( const CHostAddress& InetAddr, - const CServerCoreInfo& ServerInfo ); + void CentralServerRegisterServer ( const CHostAddress& InetAddr, + const CServerCoreInfo& ServerInfo ); - void UnregisterServer ( const CHostAddress& InetAddr ); + void CentralServerUnregisterServer ( const CHostAddress& InetAddr ); - void QueryServerList ( const CHostAddress& InetAddr ); + void CentralServerQueryServerList ( const CHostAddress& InetAddr ); // set server infos -> per definition the server info of this server is