![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtWebSlotService class provides a Slot based webservice More...
#include <QxtWebSlotService>
Inherits QxtAbstractWebService.
The QxtWebSlotService class provides a Slot based webservice
A WebService that resolves the first part of the path to a slot name and passes the rest as arguments.
class MyService : public QxtWebSlotService { Q_OBJECT public slots: void hello(QxtWebRequestEvent* event, QString a) { postEvent(new QxtWebPageEvent(event->sessionID, event->requestID, "<h1>"+a.toUtf8()+"</h1>)); } }
/hello/foo<br> will output<br> <h1>Foo</h1><br>
See also QxtAbstractWebService.
Constructs a new QxtWebSlotService with sm and parent.
Returns the current absolute url of this service depending on the request event.
Copyright © 2007-2011 Qxt Foundation |
Qxt 0.6.2 |