libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
conman.hxx
1 /* Copyright (C) 2006-2019 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 _CONMAN_H_X_INCLUDED_
19 #define _CONMAN_H_X_INCLUDED_
20 
21 #include "libupnpp/control/typedservice.hxx"
22 #include "libupnpp/upnpavutils.hxx"
23 
24 namespace UPnPClient {
25 
26 class ConnectionManager;
27 typedef std::shared_ptr<ConnectionManager> CNMH;
28 
29 class UPNPP_API ConnectionManager : public TypedService {
30 public:
31  ConnectionManager(const std::string& tp)
32  : TypedService(tp) {
33  }
34 
35  int getProtocolInfo(std::vector<UPnPP::ProtocolinfoEntry>& sourceEntries,
36  std::vector<UPnPP::ProtocolinfoEntry>& sinkEntries);
37 
38  static bool isConManService(const std::string& st);
39  virtual bool serviceTypeMatch(const std::string& tp);
40 };
41 
42 } // namespace
43 
44 #endif /* _CONMAN_H_X_INCLUDED_ */
Access an UPnP service actions through a string based interface.
Definition: typedservice.hxx:40
Definition: conman.hxx:29
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition: avlastchg.cxx:27