summaryrefslogtreecommitdiff
path: root/upnpcomponents/upnpservice.h
blob: c8630b541084041516f4cb86157cc41c6e1dc3ec (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
/* 
 * File:   upnpservice.h
 * Author: savop
 *
 * Created on 21. August 2009, 18:38
 */

#ifndef _UPNPSERVICE_H
#define	_UPNPSERVICE_H

#include <upnp/upnp.h>

class cUpnpService {
public:
    cUpnpService(UpnpDevice_Handle DeviceHandle);
    virtual ~cUpnpService(){};
    virtual int subscribe(Upnp_Subscription_Request* Request) = 0;
    virtual int execute(Upnp_Action_Request* Request) = 0;
protected:
    virtual void setError(Upnp_Action_Request* Request, int Error);
    int parseIntegerValue(IN IXML_Document* Document, IN const char* Item, OUT int* Value);
    int parseStringValue(IN IXML_Document* Document, IN const char* Item, OUT char** Value);
    UpnpDevice_Handle mDeviceHandle;
};

#endif	/* _UPNPSERVICE_H */