Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 4442dd9bdde98a1d9ca2177557e87d7d > files > 642

libqxt-devel-0.6.1-3.fc15.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /builddir/build/BUILD/libqxt/src/web/qxtwebslotservice.cpp -->
<head>
  <title>QxtWebSlotService Class Reference</title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtWebSlotService Class Reference<br /><span class="small-subtitle">[<a href="qxtweb.html">QxtWeb</a> module]</span>
</h1>
<p>The QxtWebSlotService class provides a Slot based webservice <a href="#details">More...</a></p>
<pre>    #include &lt;QxtWebSlotService&gt;</pre><p>Inherits <a href="qxtabstractwebservice.html">QxtAbstractWebService</a>.</p>
<ul>
<li><a href="qxtwebslotservice-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtwebslotservice.html#QxtWebSlotService">QxtWebSlotService</a></b> ( QxtAbstractWebSessionManager * <i>sm</i>, QObject * <i>parent</i> = 0 )</li>
</ul>
<ul>
<li><div class="fn"></div>3 public functions inherited from <a href="qxtabstractwebservice.html#public-functions">QxtAbstractWebService</a></li>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"></div>QUrl <b><a href="qxtwebslotservice.html#self">self</a></b> ( QxtWebRequestEvent * <i>event</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtWebSlotService class provides a Slot based webservice</p>
<p>A WebService that resolves the first part of the path to a slot name and passes the rest as arguments.</p>
<pre>    class MyService : public QxtWebSlotService
    {
    Q_OBJECT
    public slots:
        void hello(QxtWebRequestEvent* event, QString a)
        {
            postEvent(new QxtWebPageEvent(event-&gt;sessionID, event-&gt;requestID, &quot;&amp;lth1&amp;gt&quot;+a.toUtf8()+&quot;&amp;lt/h1&amp;gt));
        }
    }</pre>
<p>/hello/foo&lt;br&gt; will output&lt;br&gt; &amp;lth1&amp;gtFoo&amp;lt/h1&amp;gt&lt;br&gt;</p>
<p>See also <a href="qxtabstractwebservice.html">QxtAbstractWebService</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtWebSlotService"></a>QxtWebSlotService::QxtWebSlotService ( <a href="qxtabstractwebsessionmanager.html">QxtAbstractWebSessionManager</a> * <i>sm</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new <a href="qxtwebslotservice.html">QxtWebSlotService</a> with <i>sm</i> and <i>parent</i>.</p>
<h3 class="fn"><a name="self"></a><a href="http://doc.qtsoftware.com/4.5/qurl.html">QUrl</a> QxtWebSlotService::self ( <a href="qxtwebrequestevent.html">QxtWebRequestEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Returns the current absolute url of this service depending on the request <i>event</i>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td>
<td align="right"><div align="right">
<a href="http://libqxt.org">Qxt</a> 0.6.1</div></td>
</tr></table></div></address></body>
</html>