~dandrader/qtmir/coordinateTranslator

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/mirserver.h

  • Committer: CI Train Bot
  • Author(s): Alan Griffiths
  • Date: 2016-05-20 08:41:29 UTC
  • mfrom: (484.2.11 qtmir0)
  • Revision ID: ci-train-bot@canonical.com-20160520084129-co95olzpjkt1z4lh
Reduce coupling to MirServer - it has  been misused as a context object.
Approved by: Alan Griffiths, Unity8 CI Bot, Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
class MirDisplayConfigurationPolicy;
26
26
class SessionListener;
27
27
class SessionAuthorizer;
28
 
using MirShell = mir::shell::Shell;
29
28
class PromptSessionListener;
30
29
class ScreensModel;
31
30
class MirWindowManager;
38
37
 
39
38
    Q_PROPERTY(SessionAuthorizer* sessionAuthorizer READ sessionAuthorizer CONSTANT)
40
39
    Q_PROPERTY(SessionListener* sessionListener READ sessionListener CONSTANT)
41
 
    Q_PROPERTY(MirShell* shell READ shell CONSTANT)
 
40
    Q_PROPERTY(mir::shell::Shell* shell READ shell CONSTANT)
42
41
    Q_PROPERTY(PromptSessionListener* promptSessionListener READ promptSessionListener CONSTANT)
43
42
 
44
43
public:
47
46
 
48
47
    /* mir specific */
49
48
    using mir::Server::run;
50
 
    using mir::Server::the_compositor;
51
49
    using mir::Server::the_display;
52
50
    using mir::Server::the_display_configuration_controller;
53
51
    using mir::Server::the_gl_config;
54
52
    using mir::Server::the_main_loop;
55
 
    using mir::Server::the_prompt_session_listener;
56
53
    using mir::Server::the_prompt_session_manager;
57
 
    using mir::Server::the_session_authorizer;
58
 
    using mir::Server::the_session_listener;
59
54
 
60
55
    void stop();
61
56
 
65
60
    SessionListener *sessionListener();
66
61
    PromptSessionListener *promptSessionListener();
67
62
    MirWindowManager *windowManager();
68
 
    MirShell *shell();
 
63
    mir::shell::Shell *shell();
69
64
 
70
65
private:
71
 
    std::weak_ptr<MirShell> m_shell;
72
66
    std::weak_ptr<MirWindowManager> m_windowManager;
73
67
    const QSharedPointer<ScreensModel> m_screensModel;
74
68
};