Qt 4.8
Public Functions | Properties | List of all members
QScriptDebuggerShowLineJob Class Reference
Inheritance diagram for QScriptDebuggerShowLineJob:
QScriptDebuggerCommandSchedulerJob QScriptDebuggerJob QScriptDebuggerResponseHandlerInterface

Public Functions

void handleResponse (const QScriptDebuggerResponse &response, int)
 
 QScriptDebuggerShowLineJob (qint64 scriptId, int lineNumber, QScriptMessageHandlerInterface *messageHandler, QScriptDebuggerCommandSchedulerInterface *scheduler)
 
void start ()
 
- Public Functions inherited from QScriptDebuggerCommandSchedulerJob
QScriptDebuggerCommandSchedulerInterfacecommandScheduler () const
 
 QScriptDebuggerCommandSchedulerJob (QScriptDebuggerCommandSchedulerInterface *commandScheduler)
 
 ~QScriptDebuggerCommandSchedulerJob ()
 
- Public Functions inherited from QScriptDebuggerJob
virtual void evaluateFinished (const QScriptDebuggerValue &result)
 
void finish ()
 
void hibernateUntilEvaluateFinished ()
 
 QScriptDebuggerJob ()
 
virtual ~QScriptDebuggerJob ()
 
- Public Functions inherited from QScriptDebuggerResponseHandlerInterface
virtual ~QScriptDebuggerResponseHandlerInterface ()
 

Properties

int m_lineNumber
 
QScriptMessageHandlerInterfacem_messageHandler
 
qint64 m_scriptId
 

Additional Inherited Members

- Protected Functions inherited from QScriptDebuggerCommandSchedulerJob
 QScriptDebuggerCommandSchedulerJob (QScriptDebuggerCommandSchedulerJobPrivate &dd, QScriptDebuggerCommandSchedulerInterface *commandScheduler)
 
- Protected Functions inherited from QScriptDebuggerJob
 QScriptDebuggerJob (QScriptDebuggerJobPrivate &dd)
 
- Protected Variables inherited from QScriptDebuggerJob
QScopedPointer< QScriptDebuggerJobPrivated_ptr
 

Detailed Description

Definition at line 901 of file qscriptdebugger.cpp.

Constructors and Destructors

◆ QScriptDebuggerShowLineJob()

QScriptDebuggerShowLineJob::QScriptDebuggerShowLineJob ( qint64  scriptId,
int  lineNumber,
QScriptMessageHandlerInterface messageHandler,
QScriptDebuggerCommandSchedulerInterface scheduler 
)
inline

Definition at line 904 of file qscriptdebugger.cpp.

908  m_scriptId(scriptId), m_lineNumber(lineNumber),
909  m_messageHandler(messageHandler) {}
QScriptDebuggerCommandSchedulerJob(QScriptDebuggerCommandSchedulerInterface *commandScheduler)
QScriptMessageHandlerInterface * m_messageHandler

Functions

◆ handleResponse()

void QScriptDebuggerShowLineJob::handleResponse ( const QScriptDebuggerResponse response,
int   
)
inlinevirtual

Implements QScriptDebuggerResponseHandlerInterface.

Definition at line 916 of file qscriptdebugger.cpp.

917  {
919  QString line = data.lines(m_lineNumber, 1).value(0);
921  .arg(m_lineNumber).arg(line));
922  finish();
923  }
QScriptScriptData resultAsScriptData() const
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QScriptScriptData class holds data associated with a script.
QScriptMessageHandlerInterface * m_messageHandler
static const char * data(const QByteArray &arr)
T value(int i) const
Returns the value at index position i in the list.
Definition: qlist.h:661
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
QStringList lines(int startLineNumber, int count) const
virtual void message(QtMsgType type, const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1, const QVariant &data=QVariant())=0

◆ start()

void QScriptDebuggerShowLineJob::start ( )
inlinevirtual

Implements QScriptDebuggerJob.

Definition at line 911 of file qscriptdebugger.cpp.

912  {
914  frontend.scheduleGetScriptData(m_scriptId);
915  }
QScriptDebuggerCommandSchedulerInterface * commandScheduler() const

Properties

◆ m_lineNumber

int QScriptDebuggerShowLineJob::m_lineNumber
private

Definition at line 927 of file qscriptdebugger.cpp.

◆ m_messageHandler

QScriptMessageHandlerInterface* QScriptDebuggerShowLineJob::m_messageHandler
private

Definition at line 928 of file qscriptdebugger.cpp.

◆ m_scriptId

qint64 QScriptDebuggerShowLineJob::m_scriptId
private

Definition at line 926 of file qscriptdebugger.cpp.


The documentation for this class was generated from the following file: