-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathfemon.h
30 lines (24 loc) · 950 Bytes
/
femon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <cxxtools/http/request.h>
#include <cxxtools/http/reply.h>
#include <cxxtools/http/responder.h>
#include <cxxtools/jsonserializer.h>
#include <cxxtools/serializationinfo.h>
#include <vdr/tools.h>
#include "femon/femonservice.h"
#include "tools.h"
#ifndef FEMONRESTFULAPI_H
#define FEMONRESTFULAPI_H
class FemonResponder : public cxxtools::http::Responder {
private:
cPlugin *femon;
public:
explicit FemonResponder(cxxtools::http::Service& service)
: cxxtools::http::Responder(service) { };
virtual ~FemonResponder() {};
virtual void reply(std::ostream& out, cxxtools::http::Request& request, cxxtools::http::Reply& reply);
virtual void replyJson(StreamExtension se, FemonService_v1_0& fe);
virtual void replyXml(StreamExtension se, FemonService_v1_0& fe);
};
typedef cxxtools::http::CachedService<FemonResponder> FemonService;
void operator<<= (cxxtools::SerializationInfo& si, const FemonService_v1_0& fe);
#endif