More verbose uotput in terminal

This commit is contained in:
santi 2014-07-02 18:33:47 +02:00
parent 45115830c0
commit 1d6a42a3aa
9 changed files with 38 additions and 150 deletions

View file

@ -34,8 +34,6 @@ public:
olaThread(QObject *parent = 0);
virtual ~olaThread();
/** Retorna el valor de un canal
*@param int layer the layer for we want the channel
*@param int channel the channel for the value wanted
@ -54,7 +52,6 @@ public:
private:
void run ();
ola::client::OlaClientWrapper *m_clientWrapper;
@ -87,8 +84,10 @@ private:
inline void RegisterComplete(const ola::client::Result &error) {
if (error.Success()) {
qDebug() << "Register Universe success";
emit toTerminal("Register Universe success");
} else {
qWarning() << "olaThread|" << "Register command failed" << QString::fromStdString(error.Error());
emit toTerminal("olaThread| Register command failed " + QString::fromStdString(error.Error()));
}
}
@ -121,6 +120,7 @@ signals:
void finished(); // Signal for closing. Not used now.
void dmxOutput(int layer, int channel, int value); // Signal when a channel has changed
void toTerminal(QString message);
};
#endif // OLATHREAD_H