forked from qt-creator/qt-creator
Symbian: CODA logging service has been enabled
This commit is contained in:
@@ -760,6 +760,9 @@ void S60DeviceRunControl::slotTcftrkEvent(const TcfTrkEvent &event)
|
|||||||
case TcfTrkEvent::RunControlModuleLoadSuspended:
|
case TcfTrkEvent::RunControlModuleLoadSuspended:
|
||||||
handleModuleLoadSuspended(event);
|
handleModuleLoadSuspended(event);
|
||||||
break;
|
break;
|
||||||
|
case TcfTrkEvent::LoggingWriteEvent:
|
||||||
|
handleLogging(event);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (debug)
|
if (debug)
|
||||||
qDebug() << __FUNCTION__ << "Event not handled" << event.type();
|
qDebug() << __FUNCTION__ << "Event not handled" << event.type();
|
||||||
@@ -769,7 +772,6 @@ void S60DeviceRunControl::slotTcftrkEvent(const TcfTrkEvent &event)
|
|||||||
|
|
||||||
void S60DeviceRunControl::initCommunication()
|
void S60DeviceRunControl::initCommunication()
|
||||||
{
|
{
|
||||||
m_tcfTrkDevice->sendSettingsEnableLogCommand();
|
|
||||||
m_tcfTrkDevice->sendLoggingAddListenerCommand(TcfTrkCallback(this, &S60DeviceRunControl::handleAddListener));
|
m_tcfTrkDevice->sendLoggingAddListenerCommand(TcfTrkCallback(this, &S60DeviceRunControl::handleAddListener));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -823,6 +825,12 @@ void S60DeviceRunControl::handleModuleLoadSuspended(const TcfTrkEvent &event)
|
|||||||
m_tcfTrkDevice->sendRunControlResumeCommand(TcfTrkCallback(), me.id());
|
m_tcfTrkDevice->sendRunControlResumeCommand(TcfTrkCallback(), me.id());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void S60DeviceRunControl::handleLogging(const TcfTrkEvent &event)
|
||||||
|
{
|
||||||
|
const TcfTrkLoggingWriteEvent &me = static_cast<const TcfTrkLoggingWriteEvent &>(event);
|
||||||
|
appendMessage(me.message(), StdOutFormat);
|
||||||
|
}
|
||||||
|
|
||||||
void S60DeviceRunControl::handleAddListener(const TcfTrkCommandResult &result)
|
void S60DeviceRunControl::handleAddListener(const TcfTrkCommandResult &result)
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ private:
|
|||||||
void handleContextSuspended(const tcftrk::TcfTrkEvent &event);
|
void handleContextSuspended(const tcftrk::TcfTrkEvent &event);
|
||||||
void handleContextAdded(const tcftrk::TcfTrkEvent &event);
|
void handleContextAdded(const tcftrk::TcfTrkEvent &event);
|
||||||
void handleContextRemoved(const tcftrk::TcfTrkEvent &event);
|
void handleContextRemoved(const tcftrk::TcfTrkEvent &event);
|
||||||
|
void handleLogging(const tcftrk::TcfTrkEvent &event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handleCreateProcess(const tcftrk::TcfTrkCommandResult &result);
|
void handleCreateProcess(const tcftrk::TcfTrkCommandResult &result);
|
||||||
|
|||||||
@@ -412,7 +412,7 @@ TcfTrkEvent *TcfTrkEvent::parseEvent(Services s, const QByteArray &nameBA, const
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LoggingService:
|
case LoggingService:
|
||||||
if (nameBA == "write" && values.size() >= 2)
|
if ((nameBA == "writeln" || nameBA == "write" /*not yet used*/) && values.size() >= 2)
|
||||||
return new TcfTrkLoggingWriteEvent(values.at(0).data(), values.at(1).data());
|
return new TcfTrkLoggingWriteEvent(values.at(0).data(), values.at(1).data());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user