<?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"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="classes.html"><font color="#004faf">Classes</font></a> · <a href="namespaces.html"><font color="#004faf">Namespaces</font></a> · <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 <QxtWebSlotService></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->sessionID, event->requestID, "&lth1&gt"+a.toUtf8()+"&lt/h1&gt)); } }</pre> <p>/hello/foo<br> will output<br> &lth1&gtFoo&lt/h1&gt<br></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> ) <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 © 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>