client-cpp  0.9.0
DummyKaaClientStateListener.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
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 
17 #ifndef DUMMYKAACLIENTSTATELISTENER_HPP_
18 #define DUMMYKAACLIENTSTATELISTENER_HPP_
19 
21 
22 namespace kaa {
23 
25 public:
26  virtual void onStarted() {}
27  virtual void onStartFailure(const KaaException& exception) {}
28 
29  virtual void onPaused() {}
30  virtual void onPauseFailure(const KaaException& exception) {}
31 
32  virtual void onResumed() {}
33  virtual void onResumeFailure(const KaaException& exception) {}
34 
35  virtual void onStopped() {}
36  virtual void onStopFailure(const KaaException& exception) {}
37 };
38 
39 } /* namespace kaa */
40 
41 #endif /* DUMMYKAACLIENTSTATELISTENER_HPP_ */
virtual void onResumeFailure(const KaaException &exception)
On failure during Kaa client resume. Typically failure is related to network issues.
virtual void onStopFailure(const KaaException &exception)
On failure during Kaa client stop. Typically related to failure to free some resources.
virtual void onResumed()
On successful resume of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready ...
virtual void onStartFailure(const KaaException &exception)
On failure during Kaa client startup. Typically failure is related to network issues.
virtual void onStarted()
On successful start of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready f...
virtual void onPaused()
On successful pause of Kaa client. Kaa client is successfully paused and does not consume any resourc...
virtual void onStopped()
On successful stop of Kaa client. Kaa client is successfully stopped and does not consume any resourc...
virtual void onPauseFailure(const KaaException &exception)
On failure during Kaa client pause. Typically related to failure to free some resources.
Notifies about Kaa client state changes and errors.