reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
KurentoResponseHandler.hxx
Go to the documentation of this file.
1#if !defined(KurentoResponseHandler_hxx)
2#define KurentoResponseHandler_hxx
3
4#include <memory>
5#include <string>
6
7#include "cajun/json/elements.h"
8
9namespace kurento
10{
11
12class KurentoResponseHandler : public std::enable_shared_from_this<KurentoResponseHandler>
13{
14 public:
16 virtual void processResponse(const std::string& id, std::shared_ptr<KurentoResponseHandler> krh, const json::Object& message) = 0;
17};
18
19}
20
21#endif
22
23
24/* ====================================================================
25
26 Copyright (c) 2021, Software Freedom Institute https://softwarefreedom.institute
27 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
28 All rights reserved.
29
30 Redistribution and use in source and binary forms, with or without
31 modification, are permitted provided that the following conditions are
32 met:
33
34 1. Redistributions of source code must retain the above copyright
35 notice, this list of conditions and the following disclaimer.
36
37 2. Redistributions in binary form must reproduce the above copyright
38 notice, this list of conditions and the following disclaimer in the
39 documentation and/or other materials provided with the distribution.
40
41 3. Neither the name of Plantronics nor the names of its contributors
42 may be used to endorse or promote products derived from this
43 software without specific prior written permission.
44
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
46 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
47 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
48 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
49 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
50 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
51 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
52 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
53 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
55 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56
57 ==================================================================== */
virtual void processResponse(const std::string &id, std::shared_ptr< KurentoResponseHandler > krh, const json::Object &message)=0
This class is used in the logging subsystem to identify logging messages generated from the Kurento c...
void list()
Definition userAdmin.cxx:66