diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksysguard/gui/ksgrd/SensorAgent.cc | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/ksgrd/SensorAgent.cc')
-rw-r--r-- | ksysguard/gui/ksgrd/SensorAgent.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksysguard/gui/ksgrd/SensorAgent.cc b/ksysguard/gui/ksgrd/SensorAgent.cc index a24bf5594..5fcb14a9c 100644 --- a/ksysguard/gui/ksgrd/SensorAgent.cc +++ b/ksysguard/gui/ksgrd/SensorAgent.cc @@ -55,7 +55,7 @@ SensorAgent::~SensorAgent() { } -bool SensorAgent::sendRequest( const QString &req, SensorClient *client, int id ) +bool SensorAgent::sendRequest( const TQString &req, SensorClient *client, int id ) { /* The request is registered with the FIFO so that the answer can be * routed back to the requesting client. */ @@ -70,7 +70,7 @@ bool SensorAgent::sendRequest( const QString &req, SensorClient *client, int id return false; } -void SensorAgent::processAnswer( const QString &buffer ) +void SensorAgent::processAnswer( const TQString &buffer ) { #if SA_TRACE kdDebug(1215) << "<- " << buffer << endl; @@ -89,7 +89,7 @@ void SensorAgent::processAnswer( const QString &buffer ) .arg( mHostName ) .arg( mErrorBuffer ) ); } - mErrorBuffer = QString::null; + mErrorBuffer = TQString::null; } } else if ( mState == 0 ) // receiving to answerBuffer mAnswerBuffer += buffer[ i ]; @@ -112,7 +112,7 @@ void SensorAgent::processAnswer( const QString &buffer ) #if SA_TRACE kdDebug(1215) << "Daemon now online!" << endl; #endif - mAnswerBuffer = QString::null; + mAnswerBuffer = TQString::null; break; } @@ -121,7 +121,7 @@ void SensorAgent::processAnswer( const QString &buffer ) if ( !req ) { kdDebug(1215) << "ERROR: Received answer but have no pending " << "request! : " << mAnswerBuffer.left( end ) << endl; - mAnswerBuffer = QString::null; + mAnswerBuffer = TQString::null; } else { if ( !req->client() ) { /* The client has disappeared before receiving the answer @@ -161,7 +161,7 @@ void SensorAgent::executeCommand() << "/" << mProcessingFIFO.count() << ")" << endl; #endif // send request to daemon - QString cmdWithNL = req->request() + "\n"; + TQString cmdWithNL = req->request() + "\n"; if ( writeMsg( cmdWithNL.ascii(), cmdWithNL.length() ) ) mTransmitting = true; else @@ -207,18 +207,18 @@ bool SensorAgent::transmitting() const return mTransmitting; } -void SensorAgent::setHostName( const QString &hostName ) +void SensorAgent::setHostName( const TQString &hostName ) { mHostName = hostName; } -const QString &SensorAgent::hostName() const +const TQString &SensorAgent::hostName() const { return mHostName; } -SensorRequest::SensorRequest( const QString &request, SensorClient *client, int id ) +SensorRequest::SensorRequest( const TQString &request, SensorClient *client, int id ) : mRequest( request ), mClient( client ), mId( id ) { } @@ -227,12 +227,12 @@ SensorRequest::~SensorRequest() { } -void SensorRequest::setRequest( const QString &request ) +void SensorRequest::setRequest( const TQString &request ) { mRequest = request; } -QString SensorRequest::request() const +TQString SensorRequest::request() const { return mRequest; } |