Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/runonphone/symbianutils/launcher.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4444
    4545#include "trkdevice.h"
     46#include "trkutils.h"
    4647
    4748#include <QtCore/QObject>
     
    7071        ActionCopyInstall = ActionCopy | ActionInstall,
    7172        ActionRun = 0x4,
     73        ActionDownload = 0x8,
    7274        ActionCopyRun = ActionCopy | ActionRun,
    7375        ActionInstallRun = ActionInstall | ActionRun,
     
    9597    void setFileName(const QString &name);
    9698    void setCopyFileName(const QString &srcName, const QString &dstName);
     99    void setDownloadFileName(const QString &srcName, const QString &dstName);
    97100    void setInstallFileName(const QString &name);
    98101    void setCommandLineArgs(const QStringList &args);
    99102    bool startServer(QString *errorMessage);
    100     void setVerbose(int v);   
     103    void setVerbose(int v);
    101104    void setSerialFrame(bool b);
    102105    bool serialFrame() const;
     
    110113    QString deviceDescription(unsigned verbose = 0u) const;
    111114
     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.
    112124    static QByteArray startProcessMessage(const QString &executable,
    113125                                          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);
    114129    // Parse a TrkNotifyStopped message
    115130    static bool parseNotifyStopped(const QByteArray &a,
     
    120135
    121136signals:
     137    void deviceDescriptionReceived(const QString &port, const QString &description);
    122138    void copyingStarted();
    123139    void canNotConnect(const QString &errorMessage);
    124140    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);
    125143    void canNotWriteFile(const QString &filename, const QString &errorMessage);
    126144    void canNotCloseFile(const QString &filename, const QString &errorMessage);
     
    136154    void stateChanged(int);
    137155    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);
    138162
    139163public slots:
    140164    void terminate();
    141165    void resumeProcess(uint pid, uint tid);
     166    //can be used to obtain traceback after a breakpoint / exception
     167    void getRegistersAndCallStack(uint pid, uint tid);
    142168
    143169private slots:
     
    153179    void handleConnect(const TrkResult &result);
    154180    void handleFileCreation(const TrkResult &result);
     181    void handleFileOpened(const TrkResult &result);
    155182    void handleCopy(const TrkResult &result);
     183    void handleRead(const TrkResult &result);
    156184    void continueCopying(uint lastCopiedBlockSize = 0);
     185    void continueReading();
    157186    void closeRemoteFile(bool failed = false);
    158187    void handleFileCopied(const TrkResult &result);
     
    164193    void handleSupportMask(const TrkResult &result);
    165194    void handleTrkVersion(const TrkResult &result);
     195    void handleReadRegisters(const TrkResult &result);
     196    void handleReadStack(const TrkResult &result);
    166197
    167198    void copyFileToRemote();
     199    void copyFileFromRemote();
    168200    void installRemotePackageSilently();
    169201    void startInferiorIfNeeded();
     202    void handleFinished();
    170203
    171204    void logMessage(const QString &msg);
Note: See TracChangeset for help on using the changeset viewer.