Changeset 846 for trunk/tools/runonphone/symbianutils/launcher.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/runonphone/symbianutils/launcher.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 44 44 45 45 #include "trkdevice.h" 46 #include "trkutils.h" 46 47 47 48 #include <QtCore/QObject> … … 70 71 ActionCopyInstall = ActionCopy | ActionInstall, 71 72 ActionRun = 0x4, 73 ActionDownload = 0x8, 72 74 ActionCopyRun = ActionCopy | ActionRun, 73 75 ActionInstallRun = ActionInstall | ActionRun, … … 95 97 void setFileName(const QString &name); 96 98 void setCopyFileName(const QString &srcName, const QString &dstName); 99 void setDownloadFileName(const QString &srcName, const QString &dstName); 97 100 void setInstallFileName(const QString &name); 98 101 void setCommandLineArgs(const QStringList &args); 99 102 bool startServer(QString *errorMessage); 100 void setVerbose(int v); 103 void setVerbose(int v); 101 104 void setSerialFrame(bool b); 102 105 bool serialFrame() const; … … 110 113 QString deviceDescription(unsigned verbose = 0u) const; 111 114 115 // Acquire a device from SymbianDeviceManager, return 0 if not available. 116 // The device will be released on destruction. 117 static Launcher *acquireFromDeviceManager(const QString &serverName, 118 QObject *parent, 119 QString *errorMessage); 120 // Preliminary release of device, disconnecting the signal. 121 static void releaseToDeviceManager(Launcher *l); 122 123 // Create Trk message to start a process. 112 124 static QByteArray startProcessMessage(const QString &executable, 113 125 const QStringList &arguments); 126 // Create Trk message to read memory 127 static QByteArray readMemoryMessage(uint pid, uint tid, uint from, uint len); 128 static QByteArray readRegistersMessage(uint pid, uint tid); 114 129 // Parse a TrkNotifyStopped message 115 130 static bool parseNotifyStopped(const QByteArray &a, … … 120 135 121 136 signals: 137 void deviceDescriptionReceived(const QString &port, const QString &description); 122 138 void copyingStarted(); 123 139 void canNotConnect(const QString &errorMessage); 124 140 void canNotCreateFile(const QString &filename, const QString &errorMessage); 141 void canNotOpenFile(const QString &filename, const QString &errorMessage); 142 void canNotOpenLocalFile(const QString &filename, const QString &errorMessage); 125 143 void canNotWriteFile(const QString &filename, const QString &errorMessage); 126 144 void canNotCloseFile(const QString &filename, const QString &errorMessage); … … 136 154 void stateChanged(int); 137 155 void processStopped(uint pc, uint pid, uint tid, const QString& reason); 156 void processResumed(uint pid, uint tid); 157 void libraryLoaded(const trk::Library &lib); 158 void libraryUnloaded(const trk::Library &lib); 159 void registersAndCallStackReadComplete(const QList<uint>& registers, const QByteArray& stack); 160 // Emitted by the destructor, for releasing devices of SymbianDeviceManager by name 161 void destroyed(const QString &serverName); 138 162 139 163 public slots: 140 164 void terminate(); 141 165 void resumeProcess(uint pid, uint tid); 166 //can be used to obtain traceback after a breakpoint / exception 167 void getRegistersAndCallStack(uint pid, uint tid); 142 168 143 169 private slots: … … 153 179 void handleConnect(const TrkResult &result); 154 180 void handleFileCreation(const TrkResult &result); 181 void handleFileOpened(const TrkResult &result); 155 182 void handleCopy(const TrkResult &result); 183 void handleRead(const TrkResult &result); 156 184 void continueCopying(uint lastCopiedBlockSize = 0); 185 void continueReading(); 157 186 void closeRemoteFile(bool failed = false); 158 187 void handleFileCopied(const TrkResult &result); … … 164 193 void handleSupportMask(const TrkResult &result); 165 194 void handleTrkVersion(const TrkResult &result); 195 void handleReadRegisters(const TrkResult &result); 196 void handleReadStack(const TrkResult &result); 166 197 167 198 void copyFileToRemote(); 199 void copyFileFromRemote(); 168 200 void installRemotePackageSilently(); 169 201 void startInferiorIfNeeded(); 202 void handleFinished(); 170 203 171 204 void logMessage(const QString &msg);
Note:
See TracChangeset
for help on using the changeset viewer.