~ci-train-bot/miral/miral-ubuntu-zesty-2534

« back to all changes in this revision

Viewing changes to miral-qt/src/platforms/mirserver/mirserverhooks.h

  • Committer: Larry Price
  • Date: 2016-09-13 16:19:29 UTC
  • mto: This revision was merged to the branch mainline in revision 331.
  • Revision ID: larry.price@canonical.com-20160913161929-vs9ka1capmljq1es
Removing miral-qt from release branch, updating copyright file, and adding GPL3 license to root dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 MIRAL_MIRSERVERHOOKS_H
20
 
#define MIRAL_MIRSERVERHOOKS_H
21
 
 
22
 
#include <memory>
23
 
#include <QSharedPointer>
24
 
 
25
 
namespace mir { class Server; }
26
 
namespace mir { namespace scene { class PromptSessionManager; }}
27
 
namespace mir { namespace graphics { class Display; }}
28
 
 
29
 
class PromptSessionListener;
30
 
class SessionListener;
31
 
class ScreensController;
32
 
class ScreensModel;
33
 
 
34
 
namespace qtmir
35
 
{
36
 
class MirServerHooks
37
 
{
38
 
public:
39
 
    MirServerHooks();
40
 
 
41
 
    void operator()(mir::Server& server);
42
 
 
43
 
    SessionListener *sessionListener() const;
44
 
    PromptSessionListener *promptSessionListener() const;
45
 
    std::shared_ptr<mir::scene::PromptSessionManager> thePromptSessionManager() const;
46
 
    std::shared_ptr<mir::graphics::Display> theMirDisplay() const;
47
 
 
48
 
    QSharedPointer<ScreensController> createScreensController(QSharedPointer<ScreensModel> const &screensModel) const;
49
 
 
50
 
private:
51
 
    struct Self;
52
 
    std::shared_ptr<Self> self;
53
 
};
54
 
}
55
 
 
56
 
#endif //MIRAL_MIRSERVERHOOKS_H