libupnpp 0.16.0
A C++ wrapper for the Portable UPnP reference library
ohsender.hxx
1/* Copyright (C) 2006-2016 J.F.Dockes
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301 USA
17 */
18#ifndef _OHSENDER_HXX_INCLUDED_
19#define _OHSENDER_HXX_INCLUDED_
20
21#include <unordered_map>
22#include <string>
23
24#include "libupnpp/control/service.hxx"
25
26namespace UPnPClient {
27
28class UPnPDeviceDesc;
29class UPnPServiceDesc;
30class OHSender;
31
32typedef std::shared_ptr<OHSender> OHSNH;
33
37class UPNPP_API OHSender : public Service {
38public:
39 using Service::Service;
40
42 static bool isOHSenderService(const std::string& st);
43 bool serviceTypeMatch(const std::string& tp) override;
44
45 int metadata(std::string& uri, std::string& meta);
46
47protected:
48 /* My service type string */
49 static const std::string SType;
50
51private:
52 void UPNPP_LOCAL evtCallback(
53 const std::unordered_map<std::string, std::string>&);
54 void UPNPP_LOCAL registerCallback() override;
55};
56
57} // namespace UPnPClient
58
59#endif /* _OHSENDER_HXX_INCLUDED_ */
OHSender client class.
Definition ohsender.hxx:37
Definition service.hxx:88
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition avlastchg.cxx:28