blob: 63239b933bd4de3e26f06f5ad711145b65f93351 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* mediaReceiverRegistrar.h
*
* Created on: 28.04.2013
* Author: savop
*/
#ifndef MEDIARECEIVERREGISTRAR_H_
#define MEDIARECEIVERREGISTRAR_H_
#include "../include/service.h"
#include "../include/tools.h"
namespace upnp {
class cMediaReceiverRegistrar : public cUPnPService {
public:
cMediaReceiverRegistrar();
virtual ~cMediaReceiverRegistrar();
virtual int Subscribe(
Upnp_Subscription_Request* Request ///< Information about the subscription
);
virtual int Execute(
Upnp_Action_Request* Request ///< Input and output parameters of an action
);
private:
int IsAuthorized(Upnp_Action_Request* Request);
int RegisterDevice(Upnp_Action_Request* Request);
int IsValidated(Upnp_Action_Request* Request);
uint32_t authorizationGrantedUpdateID;
uint32_t authorizationDeniedUpdateID;
int UpdateGrantedUpdateID();
int UpdateDeniedUpdateID();
int TriggerNotificationForUpdateIDs();
} MediaReceiverRegistrar;
} // namespace upnp
#endif /* MEDIARECEIVERREGISTRAR_H_ */
|