2
* Copyright (C) 2013-2016 Canonical, Ltd.
4
* This program is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 3, as published by
6
* the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
* SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#include <QWeakPointer>
27
namespace qtmir { class PromptSessionManager; }
29
class QMirServerPrivate;
30
class ScreensController;
32
class QPlatformOpenGLContext;
35
class QMirServer: public QObject
40
QMirServer(int &argc, char **argv, QObject* parent=0);
41
virtual ~QMirServer();
45
bool isRunning() const;
47
QSharedPointer<ScreensModel> screensModel() const;
48
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
49
void *nativeResourceForIntegration(const QByteArray &resource) const;
50
std::shared_ptr<qtmir::PromptSessionManager> thePromptSessionManager() const;
57
QMirServerPrivate * const d_ptr;
60
Q_DISABLE_COPY(QMirServer)
61
Q_DECLARE_PRIVATE(QMirServer)
64
#endif // QMIRSERVER_H