Qt 4.8
Classes | Typedefs | Functions
qscriptcontextinfo.h File Reference
#include <QtCore/qobjectdefs.h>
#include <QtCore/qlist.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qsharedpointer.h>

Go to the source code of this file.

Classes

class  QScriptContextInfo
 The QScriptContextInfo class provides additional information about a QScriptContext. More...
 

Typedefs

typedef QList< QScriptContextInfoQScriptContextInfoList
 

Functions

Q_SCRIPT_EXPORT QDataStreamoperator<< (QDataStream &, const QScriptContextInfo &)
 
Q_SCRIPT_EXPORT QDataStreamoperator>> (QDataStream &, QScriptContextInfo &)
 

Typedef Documentation

◆ QScriptContextInfoList

Definition at line 95 of file qscriptcontextinfo.h.

Function Documentation

◆ operator<<()

Q_SCRIPT_EXPORT QDataStream& operator<< ( QDataStream ,
const QScriptContextInfo  
)

Definition at line 499 of file qscriptcontextinfo.cpp.

500 {
501  out << info.scriptId();
502  out << (qint32)info.lineNumber();
503  out << (qint32)info.columnNumber();
504 
505  out << (quint32)info.functionType();
506  out << (qint32)info.functionStartLineNumber();
507  out << (qint32)info.functionEndLineNumber();
508  out << (qint32)info.functionMetaIndex();
509 
510  out << info.fileName();
511  out << info.functionName();
512  out << info.functionParameterNames();
513 
514  return out;
515 }
static mach_timebase_info_data_t info
int qint32
Definition: qglobal.h:937
unsigned int quint32
Definition: qglobal.h:938

◆ operator>>()

Definition at line 528 of file qscriptcontextinfo.cpp.

529 {
530  if (!info.d_ptr) {
531  info.d_ptr = new QScriptContextInfoPrivate();
532  }
533 
534  in >> info.d_ptr->scriptId;
535 
536  qint32 line;
537  in >> line;
538  info.d_ptr->lineNumber = line;
539 
540  qint32 column;
541  in >> column;
542  info.d_ptr->columnNumber = column;
543 
544  quint32 ftype;
545  in >> ftype;
546  info.d_ptr->functionType = QScriptContextInfo::FunctionType(ftype);
547 
548  qint32 startLine;
549  in >> startLine;
550  info.d_ptr->functionStartLineNumber = startLine;
551 
552  qint32 endLine;
553  in >> endLine;
554  info.d_ptr->functionEndLineNumber = endLine;
555 
556  qint32 metaIndex;
557  in >> metaIndex;
558  info.d_ptr->functionMetaIndex = metaIndex;
559 
560  in >> info.d_ptr->fileName;
561  in >> info.d_ptr->functionName;
562  in >> info.d_ptr->parameterNames;
563 
564  return in;
565 }
static mach_timebase_info_data_t info
int qint32
Definition: qglobal.h:937
FunctionType
This enum specifies the type of function being called.
unsigned int quint32
Definition: qglobal.h:938