Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
ClientListener.h
1/*
2 * Copyright (C) 2023 Lightstreamer Srl
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef INCLUDED_Lightstreamer_ClientListener
17#define INCLUDED_Lightstreamer_ClientListener
18
19#include <string>
20
21namespace Lightstreamer {
22
33public:
34 virtual ~ClientListener() {}
39 virtual void onListenEnd() {}
44 virtual void onListenStart() {}
89 virtual void onServerError(int errorCode, const std::string& errorMessage) {}
164 virtual void onStatusChange(const std::string& status) {}
207 virtual void onPropertyChange(const std::string& property) {}
208};
209
210} // namespace Lightstreamer
211
212#endif // INCLUDED_Lightstreamer_ClientListener
Interface to be implemented to listen to LightstreamerClient events comprehending notifications of co...
Definition ClientListener.h:32
virtual void onServerError(int errorCode, const std::string &errorMessage)
Event handler that is called when the Server notifies a refusal on the client attempt to open a new c...
Definition ClientListener.h:89
virtual void onStatusChange(const std::string &status)
Event handler that receives a notification each time the LightstreamerClient status has changed.
Definition ClientListener.h:164
virtual void onListenStart()
Event handler that receives a notification when the ClientListener instance is added to a Lightstream...
Definition ClientListener.h:44
virtual void onPropertyChange(const std::string &property)
Event handler that receives a notification each time the value of a property of LightstreamerClient#c...
Definition ClientListener.h:207
virtual void onListenEnd()
Event handler that receives a notification when the ClientListener instance is removed from a Lightst...
Definition ClientListener.h:39