Skip to content
Snippets Groups Projects
Commit 01f90cf9 authored by jpbl's avatar jpbl
Browse files

We receive as much lines as we can now

parent 2acec898
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,6 @@ RequesterImpl::send(const QString &sessionId, ...@@ -50,7 +50,6 @@ RequesterImpl::send(const QString &sessionId,
const QString &command, const QString &command,
const std::list< QString > &args) const std::list< QString > &args)
{ {
DebugOutput::instance() << QObject::tr("Requester: Trying to create command \"%1\"\n").arg(command);
// We retreive the internal of a session. // We retreive the internal of a session.
SessionIO *session = getSessionIO(sessionId); SessionIO *session = getSessionIO(sessionId);
...@@ -133,7 +132,9 @@ RequesterImpl::receiveAnswer(const QString &code, ...@@ -133,7 +132,9 @@ RequesterImpl::receiveAnswer(const QString &code,
std::map< QString, Request * >::iterator pos; std::map< QString, Request * >::iterator pos;
pos = mRequests.find(sequence); pos = mRequests.find(sequence);
if(pos == mRequests.end()) { if(pos == mRequests.end()) {
_debug("Requester: We received an answer with an unknown sequence.\n"); DebugOutput::instance() << QObject::tr("Requester: We received an answer "
"with an unknown sequence (%1).\n")
.arg(sequence);
return; return;
} }
......
...@@ -58,9 +58,11 @@ void ...@@ -58,9 +58,11 @@ void
TCPSessionIO::receive() TCPSessionIO::receive()
{ {
QString s; QString s;
while(mSocket->canReadLine()) {
receive(s); receive(s);
Requester::instance().receiveAnswer(s); Requester::instance().receiveAnswer(s);
} }
}
void void
TCPSessionIO::connect() TCPSessionIO::connect()
......
...@@ -128,9 +128,6 @@ void ...@@ -128,9 +128,6 @@ void
VolumeControl::updateSlider(int value) VolumeControl::updateSlider(int value)
{ {
if(mOrientation == VolumeControl::Vertical) { if(mOrientation == VolumeControl::Vertical) {
std::cout << "Move again to : " <<
(float)value / (mMax - mMin) * mMaxPosition <<
std::endl << std::endl;
mSlider->move(mSlider->x(), (float)value / (mMax - mMin) * mMaxPosition); mSlider->move(mSlider->x(), (float)value / (mMax - mMin) * mMaxPosition);
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment