~vanvugt/mir/mir-display-config-header

« back to all changes in this revision

Viewing changes to include/server/mir/frontend/session_mediator_observer.h

  • Committer: Tarmac
  • Author(s): Christopher James Halse Rogers
  • Date: 2016-11-15 23:48:01 UTC
  • mfrom: (3730.3.26 reports-as-observers)
  • Revision ID: tarmac-20161115234801-2w603k4v3ffhfl3u
Replace the mir::Server-overridable Reports with Observers.

This resolves two problems:
1) It ensures that Mir will respect the various reporting options we provide, even when the shell wants to hook into some of the reports, and
2) It matches the semantic expectations around Reports vs Observers that (most of) the Mir team have. A couple of report call-sites which are unsafe for Observers are fixed in this branch.

Approved by mir-ci-bot, Kevin DuBois, Andreas Pokorny, Cemil Azizoglu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
 
20
 
#ifndef MIR_FRONTEND_SESSION_MEDIATOR_REPORT_H_
21
 
#define MIR_FRONTEND_SESSION_MEDIATOR_REPORT_H_
 
20
#ifndef MIR_FRONTEND_SESSION_MEDIATOR_OBSERVER_H_
 
21
#define MIR_FRONTEND_SESSION_MEDIATOR_OBSERVER_H_
22
22
 
23
23
#include <string>
24
24
 
29
29
namespace frontend
30
30
{
31
31
// Interface for monitoring application activity
32
 
class SessionMediatorReport
 
32
class SessionMediatorObserver
33
33
{
34
34
public:
35
 
    virtual ~SessionMediatorReport() = default;
 
35
    virtual ~SessionMediatorObserver() = default;
36
36
 
37
37
    virtual void session_connect_called(std::string const& app_name) = 0;
38
38
 
78
78
}
79
79
 
80
80
 
81
 
#endif /* MIR_FRONTEND_SESSION_MEDIATOR_REPORT_H_ */
 
81
#endif /* MIR_FRONTEND_SESSION_MEDIATOR_OBSERVER_H_ */