Diffstat (limited to 'noncore/comm/keypebble/krfbconnection.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/krfbconnection.cpp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/noncore/comm/keypebble/krfbconnection.cpp b/noncore/comm/keypebble/krfbconnection.cpp index b447046..33e0563 100644 --- a/noncore/comm/keypebble/krfbconnection.cpp +++ b/noncore/comm/keypebble/krfbconnection.cpp @@ -1,6 +1 @@ -#include <assert.h> -#include <qsocket.h> -#include <qtimer.h> -#include <string.h> - #include "krfbconnection.h" @@ -10,2 +5,14 @@ +/* OPIE */ +#include <opie2/odebug.h> +using namespace Opie::Core; + +/* QT */ +#include <qsocket.h> +#include <qtimer.h> + +/* STD */ +#include <assert.h> +#include <string.h> + KRFBConnection::KRFBConnection( QObject *parent ) @@ -45,3 +52,3 @@ void KRFBConnection::connectTo( KRFBServer server) - qWarning( "Connecting..." ); + owarn << "Connecting..." << oendl; @@ -53,3 +60,3 @@ void KRFBConnection::disconnect() { - qWarning( "Disconnecting from server" ); + owarn << "Disconnecting from server" << oendl; @@ -84,3 +91,3 @@ void KRFBConnection::gotSocketConnection() - qWarning( "Connected, logging in..." ); + owarn << "Connected, logging in..." << oendl; @@ -95,3 +102,3 @@ void KRFBConnection::gotRFBConnection() { - qWarning( "Logged into server" ); + owarn << "Logged into server" << oendl; @@ -124,3 +131,3 @@ void KRFBConnection::gotSocketError( int err ) // Do some error handling stuff - qWarning( "KRFBConnection: Socket error %d", err ); + owarn << "KRFBConnection: Socket error " << err << "" << oendl; @@ -174,3 +181,3 @@ void KRFBConnection::waitForData( unsigned int sz ) if ( sock->size() >= sz ) { - // qWarning( "No need to wait for data" ); + // owarn << "No need to wait for data" << oendl; emit gotEnoughData(); @@ -178,3 +185,3 @@ void KRFBConnection::waitForData( unsigned int sz ) else { - // qWarning( "Waiting for %u bytes", sz ); + // owarn << "Waiting for " << sz << " bytes" << oendl; minData_ = sz; |