tools/runonphone/main.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    49 #include "symbianutils/trkdevice.h"
    49 #include "symbianutils/trkdevice.h"
    50 #include "symbianutils/launcher.h"
    50 #include "symbianutils/launcher.h"
    51 
    51 
    52 #include "trksignalhandler.h"
    52 #include "trksignalhandler.h"
    53 #include "serenum.h"
    53 #include "serenum.h"
       
    54 #include "ossignalconverter.h"
    54 
    55 
    55 void printUsage(QTextStream& outstream, QString exeName)
    56 void printUsage(QTextStream& outstream, QString exeName)
    56 {
    57 {
    57     outstream << exeName << " [options] [program] [program arguments]" << endl
    58     outstream << exeName << " [options] [program] [program arguments]" << endl
    58             << "-s, --sis <file>                         specify sis file to install" << endl
    59             << "-s, --sis <file>                         specify sis file to install" << endl
   233     QObject::connect(&handler, SIGNAL(resume(uint,uint)), launcher.data(), SLOT(resumeProcess(uint,uint)));
   234     QObject::connect(&handler, SIGNAL(resume(uint,uint)), launcher.data(), SLOT(resumeProcess(uint,uint)));
   234     QObject::connect(&handler, SIGNAL(terminate()), launcher.data(), SLOT(terminate()));
   235     QObject::connect(&handler, SIGNAL(terminate()), launcher.data(), SLOT(terminate()));
   235     QObject::connect(&handler, SIGNAL(getRegistersAndCallStack(uint,uint)), launcher.data(), SLOT(getRegistersAndCallStack(uint,uint)));
   236     QObject::connect(&handler, SIGNAL(getRegistersAndCallStack(uint,uint)), launcher.data(), SLOT(getRegistersAndCallStack(uint,uint)));
   236     QObject::connect(launcher.data(), SIGNAL(finished()), &handler, SLOT(finished()));
   237     QObject::connect(launcher.data(), SIGNAL(finished()), &handler, SLOT(finished()));
   237 
   238 
       
   239     QObject::connect(OsSignalConverter::instance(), SIGNAL(terminate()), launcher.data(), SLOT(terminate()), Qt::QueuedConnection);
       
   240 
   238     QTimer timer;
   241     QTimer timer;
   239     timer.setSingleShot(true);
   242     timer.setSingleShot(true);
   240     QObject::connect(&timer, SIGNAL(timeout()), &handler, SLOT(timeout()));
   243     QObject::connect(&timer, SIGNAL(timeout()), &handler, SLOT(timeout()));
   241     if (timeout > 0) {
   244     if (timeout > 0) {
   242         timer.start(timeout);
   245         timer.start(timeout);