Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 6288

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qscriptcontextinfo.cpp -->
  <title>Qt 4.8: QScriptContextInfo Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtscript.html">QtScript</a></li>
<li>QScriptContextInfo</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QScriptContextInfo Class Reference</h1>
<!-- $$$QScriptContextInfo-brief -->
<p>The QScriptContextInfo class provides additional information about a <a href="qscriptcontext.html">QScriptContext</a>. <a href="#details">More...</a></p>
<!-- @@@QScriptContextInfo -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QScriptContextInfo&gt;</span></pre><p>This class was introduced in Qt 4.4.</p>
<ul>
<li><a href="qscriptcontextinfo-members.html">List of all members, including inherited members</a></li>
<li><a href="qscriptcontextinfo-qt3.html">Qt 3 support members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#FunctionType-enum">FunctionType</a></b> { ScriptFunction, QtFunction, QtPropertyFunction, NativeFunction }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#QScriptContextInfo">QScriptContextInfo</a></b> ( const QScriptContext * <i>context</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#QScriptContextInfo-2">QScriptContextInfo</a></b> ( const QScriptContextInfo &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#QScriptContextInfo-3">QScriptContextInfo</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#dtor.QScriptContextInfo">~QScriptContextInfo</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#fileName">fileName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionEndLineNumber">functionEndLineNumber</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionMetaIndex">functionMetaIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionName">functionName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionParameterNames">functionParameterNames</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionStartLineNumber">functionStartLineNumber</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> FunctionType </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#functionType">functionType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#isNull">isNull</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#lineNumber">lineNumber</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#scriptId">scriptId</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#operator-not-eq">operator!=</a></b> ( const QScriptContextInfo &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QScriptContextInfo &amp; </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#operator-eq">operator=</a></b> ( const QScriptContextInfo &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#operator-eq-eq">operator==</a></b> ( const QScriptContextInfo &amp; <i>other</i> ) const</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#operator-lt-lt-42">operator&lt;&lt;</a></b> ( QDataStream &amp; <i>stream</i>, const QScriptContextInfo &amp; <i>info</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qscriptcontextinfo.html#operator-gt-gt-25">operator&gt;&gt;</a></b> ( QDataStream &amp; <i>stream</i>, QScriptContextInfo &amp; <i>info</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QScriptContextInfo-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QScriptContextInfo class provides additional information about a <a href="qscriptcontext.html">QScriptContext</a>.</p>
<p>QScriptContextInfo is typically used for debugging purposes. It can provide information about the code being executed, such as the type of the called function, and the original source code location of the current statement.</p>
<p>If the called function is executing Qt Script code, you can obtain the script location with the functions <a href="qscriptcontextinfo.html#fileName">fileName</a>() and <a href="qscriptcontextinfo.html#lineNumber">lineNumber</a>().</p>
<p>You can obtain the starting line number and ending line number of a Qt Script function definition with <a href="qscriptcontextinfo.html#functionStartLineNumber">functionStartLineNumber</a>() and <a href="qscriptcontextinfo.html#functionEndLineNumber">functionEndLineNumber</a>(), respectively.</p>
<p>For Qt Script functions and Qt methods (e.g&#x2e; slots), you can call <a href="qscriptcontextinfo.html#functionParameterNames">functionParameterNames</a>() to get the names of the formal parameters of the function.</p>
<p>For Qt methods and Qt property accessors, you can obtain the index of the underlying <a href="qmetamethod.html">QMetaMethod</a> or <a href="qmetaproperty.html">QMetaProperty</a> by calling <a href="qscriptcontextinfo.html#functionMetaIndex">functionMetaIndex</a>().</p>
</div>
<p><b>See also </b><a href="qscriptcontext.html">QScriptContext</a> and <a href="qscriptengineagent.html">QScriptEngineAgent</a>.</p>
<!-- @@@QScriptContextInfo -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FunctionType$$$ScriptFunction$$$QtFunction$$$QtPropertyFunction$$$NativeFunction -->
<h3 class="fn"><a name="FunctionType-enum"></a>enum QScriptContextInfo::<span class="name">FunctionType</span></h3>
<p>This enum specifies the type of function being called.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QScriptContextInfo::ScriptFunction</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The function is a Qt Script function, i.e&#x2e; it was defined through a call to <a href="qscriptengine.html#evaluate">QScriptEngine::evaluate</a>().</td></tr>
<tr><td class="topAlign"><tt>QScriptContextInfo::QtFunction</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The function is a Qt function (a signal, slot or method).</td></tr>
<tr><td class="topAlign"><tt>QScriptContextInfo::QtPropertyFunction</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The function is a Qt property getter or setter.</td></tr>
<tr><td class="topAlign"><tt>QScriptContextInfo::NativeFunction</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The function is a built-in Qt Script function, or it was defined through a call to <a href="qscriptengine.html#newFunction">QScriptEngine::newFunction</a>().</td></tr>
</table>
<!-- @@@FunctionType -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QScriptContextInfo[overload1]$$$QScriptContextInfoconstQScriptContext* -->
<h3 class="fn"><a name="QScriptContextInfo"></a>QScriptContextInfo::<span class="name">QScriptContextInfo</span> ( const <span class="type"><a href="qscriptcontext.html">QScriptContext</a></span> * <i>context</i> )</h3>
<p>Constructs a new <a href="qscriptcontextinfo.html">QScriptContextInfo</a> from the given <i>context</i>.</p>
<p>The relevant information is extracted from the <i>context</i> at construction time; i.e&#x2e; if you continue script execution in the <i>context</i>, the new state of the context will not be reflected in a previously created <a href="qscriptcontextinfo.html">QScriptContextInfo</a>.</p>
<!-- @@@QScriptContextInfo -->
<!-- $$$QScriptContextInfo$$$QScriptContextInfoconstQScriptContextInfo& -->
<h3 class="fn"><a name="QScriptContextInfo-2"></a>QScriptContextInfo::<span class="name">QScriptContextInfo</span> ( const <span class="type">QScriptContextInfo</span> &amp; <i>other</i> )</h3>
<p>Constructs a new <a href="qscriptcontextinfo.html">QScriptContextInfo</a> from the <i>other</i> info.</p>
<!-- @@@QScriptContextInfo -->
<!-- $$$QScriptContextInfo$$$QScriptContextInfo -->
<h3 class="fn"><a name="QScriptContextInfo-3"></a>QScriptContextInfo::<span class="name">QScriptContextInfo</span> ()</h3>
<p>Constructs a null <a href="qscriptcontextinfo.html">QScriptContextInfo</a>.</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#isNull">isNull</a>().</p>
<!-- @@@QScriptContextInfo -->
<!-- $$$~QScriptContextInfo[overload1]$$$~QScriptContextInfo -->
<h3 class="fn"><a name="dtor.QScriptContextInfo"></a>QScriptContextInfo::<span class="name">~QScriptContextInfo</span> ()</h3>
<p>Destroys the <a href="qscriptcontextinfo.html">QScriptContextInfo</a>.</p>
<!-- @@@~QScriptContextInfo -->
<!-- $$$fileName[overload1]$$$fileName -->
<h3 class="fn"><a name="fileName"></a><span class="type"><a href="qstring.html">QString</a></span> QScriptContextInfo::<span class="name">fileName</span> () const</h3>
<p>Returns the name of the file where the code being executed was defined, if available; otherwise returns an empty string.</p>
<p>For Qt Script code, this function returns the fileName argument that was passed to <a href="qscriptengine.html#evaluate">QScriptEngine::evaluate</a>().</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#lineNumber">lineNumber</a>() and <a href="qscriptcontextinfo.html#functionName">functionName</a>().</p>
<!-- @@@fileName -->
<!-- $$$functionEndLineNumber[overload1]$$$functionEndLineNumber -->
<h3 class="fn"><a name="functionEndLineNumber"></a><span class="type">int</span> QScriptContextInfo::<span class="name">functionEndLineNumber</span> () const</h3>
<p>Returns the line number where the definition of the called function ends, or -1 if the line number is not available.</p>
<p>The ending line number is only available if the <a href="qscriptcontextinfo.html#functionType">functionType</a>() is <a href="qscriptcontextinfo.html#FunctionType-enum">ScriptFunction</a>.</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#functionStartLineNumber">functionStartLineNumber</a>().</p>
<!-- @@@functionEndLineNumber -->
<!-- $$$functionMetaIndex[overload1]$$$functionMetaIndex -->
<h3 class="fn"><a name="functionMetaIndex"></a><span class="type">int</span> QScriptContextInfo::<span class="name">functionMetaIndex</span> () const</h3>
<p>Returns the meta index of the called function, or -1 if the meta index is not available.</p>
<p>The meta index is only available if the <a href="qscriptcontextinfo.html#functionType">functionType</a>() is <a href="qscriptcontextinfo.html#FunctionType-enum">QtFunction</a> or <a href="qscriptcontextinfo.html#FunctionType-enum">QtPropertyFunction</a>. For <a href="qscriptcontextinfo.html#FunctionType-enum">QtFunction</a>, the meta index can be passed to <a href="qmetaobject.html#method">QMetaObject::method</a>() to obtain the corresponding method definition; for <a href="qscriptcontextinfo.html#FunctionType-enum">QtPropertyFunction</a>, the meta index can be passed to <a href="qmetaobject.html#property">QMetaObject::property</a>() to obtain the corresponding property definition.</p>
<p><b>See also </b><a href="qscriptcontext.html#thisObject">QScriptContext::thisObject</a>().</p>
<!-- @@@functionMetaIndex -->
<!-- $$$functionName[overload1]$$$functionName -->
<h3 class="fn"><a name="functionName"></a><span class="type"><a href="qstring.html">QString</a></span> QScriptContextInfo::<span class="name">functionName</span> () const</h3>
<p>Returns the name of the called function, or an empty string if the name is not available.</p>
<p>For script functions of type <a href="qscriptcontextinfo.html#FunctionType-enum">QtPropertyFunction</a>, this function always returns the name of the property; you can use <a href="qscriptcontext.html#argumentCount">QScriptContext::argumentCount</a>() to differentiate between reads and writes.</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#fileName">fileName</a>() and <a href="qscriptcontextinfo.html#functionType">functionType</a>().</p>
<!-- @@@functionName -->
<!-- $$$functionParameterNames[overload1]$$$functionParameterNames -->
<h3 class="fn"><a name="functionParameterNames"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> QScriptContextInfo::<span class="name">functionParameterNames</span> () const</h3>
<p>Returns the names of the formal parameters of the called function, or an empty <a href="qstringlist.html">QStringList</a> if the parameter names are not available.</p>
<p><b>See also </b><a href="qscriptcontext.html#argument">QScriptContext::argument</a>().</p>
<!-- @@@functionParameterNames -->
<!-- $$$functionStartLineNumber[overload1]$$$functionStartLineNumber -->
<h3 class="fn"><a name="functionStartLineNumber"></a><span class="type">int</span> QScriptContextInfo::<span class="name">functionStartLineNumber</span> () const</h3>
<p>Returns the line number where the definition of the called function starts, or -1 if the line number is not available.</p>
<p>The starting line number is only available if the <a href="qscriptcontextinfo.html#functionType">functionType</a>() is <a href="qscriptcontextinfo.html#FunctionType-enum">ScriptFunction</a>.</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#functionEndLineNumber">functionEndLineNumber</a>() and <a href="qscriptcontextinfo.html#fileName">fileName</a>().</p>
<!-- @@@functionStartLineNumber -->
<!-- $$$functionType[overload1]$$$functionType -->
<h3 class="fn"><a name="functionType"></a><span class="type"><a href="qscriptcontextinfo.html#FunctionType-enum">FunctionType</a></span> QScriptContextInfo::<span class="name">functionType</span> () const</h3>
<p>Returns the type of the called function.</p>
<p><b>See also </b><a href="qscriptcontextinfo.html#functionName">functionName</a>() and <a href="qscriptcontext.html#callee">QScriptContext::callee</a>().</p>
<!-- @@@functionType -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QScriptContextInfo::<span class="name">isNull</span> () const</h3>
<p>Returns true if this <a href="qscriptcontextinfo.html">QScriptContextInfo</a> is null, i.e&#x2e; does not contain any information.</p>
<!-- @@@isNull -->
<!-- $$$lineNumber[overload1]$$$lineNumber -->
<h3 class="fn"><a name="lineNumber"></a><span class="type">int</span> QScriptContextInfo::<span class="name">lineNumber</span> () const</h3>
<p>Returns the line number corresponding to the statement being executed, or -1 if the line number is not available.</p>
<p>The line number is only available if Qt Script code is being executed.</p>
<p><b>See also </b><a href="qscriptcontextinfo-qt3.html#columnNumber" class="compat">columnNumber</a>() and <a href="qscriptcontextinfo.html#fileName">fileName</a>().</p>
<!-- @@@lineNumber -->
<!-- $$$scriptId[overload1]$$$scriptId -->
<h3 class="fn"><a name="scriptId"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QScriptContextInfo::<span class="name">scriptId</span> () const</h3>
<p>Returns the ID of the script where the code being executed was defined, or -1 if the ID is not available (i.e&#x2e; a native function is being executed).</p>
<p><b>See also </b><a href="qscriptengineagent.html#scriptLoad">QScriptEngineAgent::scriptLoad</a>().</p>
<!-- @@@scriptId -->
<!-- $$$operator!=[overload1]$$$operator!=constQScriptContextInfo& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QScriptContextInfo::<span class="name">operator!=</span> ( const <span class="type">QScriptContextInfo</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this <a href="qscriptcontextinfo.html">QScriptContextInfo</a> is not equal to the <i>other</i> info, otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQScriptContextInfo& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QScriptContextInfo</span> &amp; QScriptContextInfo::<span class="name">operator=</span> ( const <span class="type">QScriptContextInfo</span> &amp; <i>other</i> )</h3>
<p>Assigns the <i>other</i> info to this <a href="qscriptcontextinfo.html">QScriptContextInfo</a>, and returns a reference to this <a href="qscriptcontextinfo.html">QScriptContextInfo</a>.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQScriptContextInfo& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QScriptContextInfo::<span class="name">operator==</span> ( const <span class="type">QScriptContextInfo</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this <a href="qscriptcontextinfo.html">QScriptContextInfo</a> is equal to the <i>other</i> info, otherwise returns false.</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<$$$operator<<QDataStream&constQScriptContextInfo& -->
<h3 class="fn"><a name="operator-lt-lt-42"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, const <span class="type">QScriptContextInfo</span> &amp; <i>info</i> )</h3>
<p>Writes the given <i>info</i> to the specified <i>stream</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QScriptContextInfo& -->
<h3 class="fn"><a name="operator-gt-gt-25"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, <span class="type">QScriptContextInfo</span> &amp; <i>info</i> )</h3>
<p>Reads a <a href="qscriptcontextinfo.html">QScriptContextInfo</a> from the specified <i>stream</i> into the given <i>info</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<!-- @@@operator>> -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>