Mir
application_not_responding_detector_wrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program 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
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_SCENE_APPLICATION_NOT_RESPONDING_DETECTOR_WRAPPER_H_
20 #define MIR_SCENE_APPLICATION_NOT_RESPONDING_DETECTOR_WRAPPER_H_
21 
23 
24 #include <memory>
25 
26 namespace mir
27 {
28 namespace scene
29 {
31 {
32 public:
33  ApplicationNotRespondingDetectorWrapper(std::shared_ptr<ApplicationNotRespondingDetector> const& wrapped);
35 
36  virtual void register_session(frontend::Session const* session, std::function<void()> const& pinger) override;
37  virtual void unregister_session(frontend::Session const* session) override;
38  virtual void pong_received(frontend::Session const* received_for) override;
39  virtual void register_observer(std::shared_ptr<Observer> const& observer) override;
40  virtual void unregister_observer(std::shared_ptr<Observer> const& observer) override;
41 
42 protected:
43  std::shared_ptr<ApplicationNotRespondingDetector> const wrapped;
44 };
45 }
46 }
47 
48 
49 #endif //MIR_SCENE_APPLICATION_NOT_RESPONDING_DETECTOR_WRAPPER_H_
Definition: session.h:49
Definition: as_render_target.h:27
virtual void pong_received(frontend::Session const *received_for) override
Definition: application_not_responding_detector_wrapper.h:30
virtual void register_session(frontend::Session const *session, std::function< void()> const &pinger) override
ApplicationNotRespondingDetectorWrapper(std::shared_ptr< ApplicationNotRespondingDetector > const &wrapped)
virtual void unregister_session(frontend::Session const *session) override
std::shared_ptr< ApplicationNotRespondingDetector > const wrapped
Definition: application_not_responding_detector_wrapper.h:43
Definition: application_not_responding_detector.h:36
virtual void unregister_observer(std::shared_ptr< Observer > const &observer) override
virtual void register_observer(std::shared_ptr< Observer > const &observer) override

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017