From 96767ff85614974ff8c31686bce19001ec5cccd2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 20 May 2009 17:00:33 +0200 Subject: waitWhile-Methoden f?r Connection hinzugef?gt --- src/Common/ClientConnection.cpp | 8 ++++++++ src/Common/ClientConnection.h | 3 +++ src/Common/Connection.h | 2 -- src/Common/LogManager.cpp | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src/Common') diff --git a/src/Common/ClientConnection.cpp b/src/Common/ClientConnection.cpp index d061c8d..ee9f5cf 100644 --- a/src/Common/ClientConnection.cpp +++ b/src/Common/ClientConnection.cpp @@ -45,6 +45,14 @@ bool ClientConnection::isConnected() const { return connection->isConnected(); } +void ClientConnection::waitWhileConnecting() const { + connection->waitWhileConnecting(); +} + +void ClientConnection::waitWhileConnected() const { + connection->waitWhileConnected(); +} + bool ClientConnection::disconnect() { connection->disconnect(); return true; diff --git a/src/Common/ClientConnection.h b/src/Common/ClientConnection.h index 4710bd4..a455c29 100644 --- a/src/Common/ClientConnection.h +++ b/src/Common/ClientConnection.h @@ -49,6 +49,9 @@ class ClientConnection : public Connection { bool isConnecting() const; bool isConnected() const; + void waitWhileConnecting() const; + void waitWhileConnected() const; + virtual bool disconnect(); //virtual void* getCertificate(size_t *size) const; //virtual void* getPeerCertificate(size_t *size) const; diff --git a/src/Common/Connection.h b/src/Common/Connection.h index 0cfc742..5ac46a2 100644 --- a/src/Common/Connection.h +++ b/src/Common/Connection.h @@ -65,8 +65,6 @@ class Connection { //virtual void* getCertificate(size_t *size) const = 0; //virtual void* getPeerCertificate(size_t *size) const = 0; - virtual - void setAuthenticated() { authenticated = true; } diff --git a/src/Common/LogManager.cpp b/src/Common/LogManager.cpp index b17d916..bd83a5e 100644 --- a/src/Common/LogManager.cpp +++ b/src/Common/LogManager.cpp @@ -73,6 +73,9 @@ void LogManager::configFinished() { if(loggers.empty()) registerLogger(static_cast(&consoleLogger)); + // TODO Debug + consoleLogger.Logger::setLevel(LoggerBase::DEBUG); + queueLock.lock(); configured = true; queueLock.unlock(); -- cgit v1.2.3