13 #define LIST application->list() 25 return LIST->contains(
id);
32 connect (LIST, SIGNAL( statusChanged(
const Item *)),
41 Item *item = LIST->item(
id);
43 connect(item, SIGNAL(statusChanged(
const Item *)),
56 serviceEvent(NULL, NULL, item->
webStatus());
virtual void serviceOK(HobrasoftHttpd::HttpRequest *request, HobrasoftHttpd::HttpResponse *response, const QVariant &data=QVariant())
Sends 200 OK response.
virtual bool exists(const QString &id) const
Check existence of th ID.
HttpResponse * response()
Returns new instance of HttpResponse class.
Name space for own application HTTP server.
Response to HTTP request - headers, cookies and body.
QVariantMap webStatus() const
Returns webStatus of the item.
One data item in the example.
Processes HTTP request, parses headers, body and files sent by HTTP protocol.
void sendUpdate(const Item *)
Sends data of the item to the event stream.