2
* Copyright © 2016 Canonical Ltd.
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.
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.
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/>.
16
* Authored by: Alan Griffiths <alan@octopull.co.uk>
19
#ifndef MIRAL_MIRSERVERHOOKS_H
20
#define MIRAL_MIRSERVERHOOKS_H
23
#include <QSharedPointer>
25
namespace mir { class Server; }
26
namespace mir { namespace scene { class PromptSessionManager; }}
27
namespace mir { namespace graphics { class Display; }}
29
class PromptSessionListener;
30
class SessionListener;
31
class ScreensController;
41
void operator()(mir::Server& server);
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;
48
QSharedPointer<ScreensController> createScreensController(QSharedPointer<ScreensModel> const &screensModel) const;
52
std::shared_ptr<Self> self;
56
#endif //MIRAL_MIRSERVERHOOKS_H