Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4895

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" />
<!-- qaxscript.cpp -->
  <title>Qt 4.8: QAxScript 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="qaxcontainer.html">QAxContainer</a></li>
<li>QAxScript</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="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAxScript Class Reference</h1>
<!-- $$$QAxScript-brief -->
<p>The QAxScript class provides a wrapper around script code. <a href="#details">More...</a></p>
<!-- @@@QAxScript -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAxScript&gt;</span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<ul>
<li><a href="qaxscript-members.html">List of all members, including inherited 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="qaxscript.html#FunctionFlags-enum">FunctionFlags</a></b> { FunctionNames, FunctionSignatures }</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="qaxscript.html#QAxScript">QAxScript</a></b> ( const QString &amp; <i>name</i>, QAxScriptManager * <i>manager</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#dtor.QAxScript">~QAxScript</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#call">call</a></b> ( const QString &amp; <i>function</i>, const QVariant &amp; <i>var1</i> = QVariant(), const QVariant &amp; <i>var2</i> = QVariant(), const QVariant &amp; <i>var3</i> = QVariant(), const QVariant &amp; <i>var4</i> = QVariant(), const QVariant &amp; <i>var5</i> = QVariant(), const QVariant &amp; <i>var6</i> = QVariant(), const QVariant &amp; <i>var7</i> = QVariant(), const QVariant &amp; <i>var8</i> = QVariant() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#call-2">call</a></b> ( const QString &amp; <i>function</i>, QList&lt;QVariant&gt; &amp; <i>arguments</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#functions">functions</a></b> ( FunctionFlags <i>flags</i> = FunctionNames ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#load">load</a></b> ( const QString &amp; <i>code</i>, const QString &amp; <i>language</i> = QString() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#scriptCode">scriptCode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAxScriptEngine * </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#scriptEngine">scriptEngine</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#scriptName">scriptName</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#entered">entered</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#error">error</a></b> ( int <i>code</i>, const QString &amp; <i>description</i>, int <i>sourcePosition</i>, const QString &amp; <i>sourceText</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#finished">finished</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#finished-2">finished</a></b> ( const QVariant &amp; <i>result</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#finished-3">finished</a></b> ( int <i>code</i>, const QString &amp; <i>source</i>, const QString &amp; <i>description</i>, const QString &amp; <i>help</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaxscript.html#stateChanged">stateChanged</a></b> ( int <i>state</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAxScript-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAxScript class provides a wrapper around script code.</p>
<p>Every instance of the QAxScript class represents a piece of scripting code in a particular scripting language. The code is loaded into the script engine using <a href="qaxscript.html#load">load</a>(). Functions declared in the code can be called using <a href="qaxscript.html#call">call</a>().</p>
<p>The script provides <a href="qaxscript.html#scriptEngine">scriptEngine</a>() provides feedback to the application through signals. The most important signal is the <a href="qaxscript.html#error">error</a>() signal. Direct access to the <a href="qaxscriptengine.html">QAxScriptEngine</a> is provided through the <a href="qaxscript.html#scriptEngine">scriptEngine</a>() function.</p>
<p><b>Warning:</b> This class is not available with the bcc5.5 and MingW compilers.</p>
</div>
<p><b>See also </b><a href="qaxscriptengine.html">QAxScriptEngine</a>, <a href="qaxscriptmanager.html">QAxScriptManager</a>, <a href="qaxbase.html">QAxBase</a>, and <a href="activeqt.html#activeqt-framework">ActiveQt Framework</a>.</p>
<!-- @@@QAxScript -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FunctionFlags$$$FunctionNames$$$FunctionSignatures -->
<h3 class="fn"><a name="FunctionFlags-enum"></a>enum QAxScript::<span class="name">FunctionFlags</span></h3>
<p>This FunctionFlags enum describes formatting for function introspection.</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>QAxScript::FunctionNames</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Only function names are returned.</td></tr>
<tr><td class="topAlign"><tt>QAxScript::FunctionSignatures</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Returns the functions with signatures.</td></tr>
</table>
<!-- @@@FunctionFlags -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAxScript[overload1]$$$QAxScriptconstQString&QAxScriptManager* -->
<h3 class="fn"><a name="QAxScript"></a>QAxScript::<span class="name">QAxScript</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i>, <span class="type"><a href="qaxscriptmanager.html">QAxScriptManager</a></span> * <i>manager</i> )</h3>
<p>Constructs a <a href="qaxscript.html">QAxScript</a> object called <i>name</i> and registers it with the <a href="qaxscriptmanager.html">QAxScriptManager</a> <i>manager</i>. This is usually done by the <a href="qaxscriptmanager.html">QAxScriptManager</a> class when <a href="qaxscriptmanager.html#load">loading a script</a>.</p>
<p>A script should always have a name. A manager is necessary to allow the script code to reference objects in the application. The <i>manager</i> takes ownership of the object.</p>
<!-- @@@QAxScript -->
<!-- $$$~QAxScript[overload1]$$$~QAxScript -->
<h3 class="fn"><a name="dtor.QAxScript"></a>QAxScript::<span class="name">~QAxScript</span> ()</h3>
<p>Destroys the object, releasing all allocated resources.</p>
<!-- @@@~QAxScript -->
<!-- $$$call[overload1]$$$callconstQString&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant& -->
<h3 class="fn"><a name="call"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QAxScript::<span class="name">call</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>function</i>, const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var1</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var2</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var3</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var4</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var5</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var6</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var7</i> = QVariant(), const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>var8</i> = QVariant() )</h3>
<p>Calls <i>function</i>, passing the parameters <i>var1</i>, <i>var1</i>, <i>var2</i>, <i>var3</i>, <i>var4</i>, <i>var5</i>, <i>var6</i>, <i>var7</i> and <i>var8</i> as arguments and returns the value returned by the function, or an invalid <a href="qvariant.html">QVariant</a> if the function does not return a value or when the function call failed.</p>
<p>See <a href="qaxscriptmanager.html#call">QAxScriptManager::call</a>() for more information about how to call script functions.</p>
<!-- @@@call -->
<!-- $$$call$$$callconstQString&QList<QVariant>& -->
<h3 class="fn"><a name="call-2"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QAxScript::<span class="name">call</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>function</i>, <span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="qvariant.html">QVariant</a></span>&gt; &amp; <i>arguments</i> )</h3>
<p>This is an overloaded function.</p>
<p>Calls <i>function</i> passing <i>arguments</i> as parameters, and returns the result. Returns when the script's execution has finished.</p>
<p>See <a href="qaxscriptmanager.html#call">QAxScriptManager::call</a>() for more information about how to call script functions.</p>
<!-- @@@call -->
<!-- $$$entered[overload1]$$$entered -->
<h3 class="fn"><a name="entered"></a><span class="type">void</span> QAxScript::<span class="name">entered</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when a script engine has started executing code.</p>
<!-- @@@entered -->
<!-- $$$error[overload1]$$$errorintconstQString&intconstQString& -->
<h3 class="fn"><a name="error"></a><span class="type">void</span> QAxScript::<span class="name">error</span> ( <span class="type">int</span> <i>code</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>description</i>, <span class="type">int</span> <i>sourcePosition</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>sourceText</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when an execution error occurred while running a script.</p>
<p><i>code</i>, <i>description</i>, <i>sourcePosition</i> and <i>sourceText</i> contain information about the execution error.</p>
<!-- @@@error -->
<!-- $$$finished[overload1]$$$finished -->
<h3 class="fn"><a name="finished"></a><span class="type">void</span> QAxScript::<span class="name">finished</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when a script engine has finished executing code.</p>
<!-- @@@finished -->
<!-- $$$finished$$$finishedconstQVariant& -->
<h3 class="fn"><a name="finished-2"></a><span class="type">void</span> QAxScript::<span class="name">finished</span> ( const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>result</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p><i>result</i> contains the script's result. This will be an invalid <a href="qvariant.html">QVariant</a> if the script has no return value.</p>
<!-- @@@finished -->
<!-- $$$finished$$$finishedintconstQString&constQString&constQString& -->
<h3 class="fn"><a name="finished-3"></a><span class="type">void</span> QAxScript::<span class="name">finished</span> ( <span class="type">int</span> <i>code</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>source</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>description</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>help</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p><i>code</i>, <i>source</i>, <i>description</i> and <i>help</i> contain exception information when the script terminated.</p>
<!-- @@@finished -->
<!-- $$$functions[overload1]$$$functionsFunctionFlags -->
<h3 class="fn"><a name="functions"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> QAxScript::<span class="name">functions</span> ( <span class="type"><a href="qaxscript.html#FunctionFlags-enum">FunctionFlags</a></span> <i>flags</i> = FunctionNames ) const</h3>
<p>Returns a list of all the functions in this script if the respective script engine supports introspection; otherwise returns an empty list. The functions are either provided with full prototypes or only as names, depending on the value of <i>flags</i>.</p>
<p><b>See also </b><a href="qaxscriptengine.html#hasIntrospection">QAxScriptEngine::hasIntrospection</a>().</p>
<!-- @@@functions -->
<!-- $$$load[overload1]$$$loadconstQString&constQString& -->
<h3 class="fn"><a name="load"></a><span class="type">bool</span> QAxScript::<span class="name">load</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>code</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>language</i> = QString() )</h3>
<p>Loads the script source <i>code</i> written in language <i>language</i> into the script engine. Returns true if <i>code</i> was successfully entered into the script engine; otherwise returns false.</p>
<p>If <i>language</i> is empty (the default) it will be determined heuristically. If <i>code</i> contains the string <tt>End Sub</tt> it will be interpreted as VBScript, otherwise as JScript. Additional scripting languages can be registered using QAxScript::registerEngine().</p>
<p>This function can only be called once for each <a href="qaxscript.html">QAxScript</a> object, which is done automatically when using <a href="qaxscriptmanager.html#load">QAxScriptManager::load</a>().</p>
<!-- @@@load -->
<!-- $$$scriptCode[overload1]$$$scriptCode -->
<h3 class="fn"><a name="scriptCode"></a><span class="type"><a href="qstring.html">QString</a></span> QAxScript::<span class="name">scriptCode</span> () const</h3>
<p>Returns the script's code, or the null-string if no code has been loaded yet.</p>
<p><b>See also </b><a href="qaxscript.html#load">load</a>().</p>
<!-- @@@scriptCode -->
<!-- $$$scriptEngine[overload1]$$$scriptEngine -->
<h3 class="fn"><a name="scriptEngine"></a><span class="type"><a href="qaxscriptengine.html">QAxScriptEngine</a></span> * QAxScript::<span class="name">scriptEngine</span> () const</h3>
<p>Returns a pointer to the script engine.</p>
<p>You can use the object returned to connect signals to the script functions, or to access the script engine directly.</p>
<!-- @@@scriptEngine -->
<!-- $$$scriptName[overload1]$$$scriptName -->
<h3 class="fn"><a name="scriptName"></a><span class="type"><a href="qstring.html">QString</a></span> QAxScript::<span class="name">scriptName</span> () const</h3>
<p>Returns the name of the script.</p>
<!-- @@@scriptName -->
<!-- $$$stateChanged[overload1]$$$stateChangedint -->
<h3 class="fn"><a name="stateChanged"></a><span class="type">void</span> QAxScript::<span class="name">stateChanged</span> ( <span class="type">int</span> <i>state</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a script engine changes state. <i>state</i> can be any value in the QAxScriptEngineState enumeration.</p>
<!-- @@@stateChanged -->
</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>