~alan-griffiths/miral/fix-1645284

« back to all changes in this revision

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

  • Committer: Alan Griffiths
  • Date: 2016-11-07 17:59:19 UTC
  • mfrom: (436.1.1 miral2)
  • Revision ID: alan@octopull.co.uk-20161107175919-stbb64i7j1htgog2
[miral-qt] delete all as qtmir work on MirAL has shifted to lp:~unity-team/qtmir/miral-qt-integration and this is a needless distration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013-2016 Canonical, Ltd.
3
 
 *
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.
7
 
 *
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.
12
 
 *
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/>.
15
 
 */
16
 
 
17
 
#ifndef QMIRSERVER_H
18
 
#define QMIRSERVER_H
19
 
 
20
 
// Qt
21
 
#include <QObject>
22
 
#include <QWeakPointer>
23
 
 
24
 
#include <memory>
25
 
 
26
 
// qtmir
27
 
namespace qtmir { class PromptSessionManager; }
28
 
 
29
 
class QMirServerPrivate;
30
 
class ScreensController;
31
 
class ScreensModel;
32
 
class QPlatformOpenGLContext;
33
 
class QOpenGLContext;
34
 
 
35
 
class QMirServer: public QObject
36
 
{
37
 
    Q_OBJECT
38
 
 
39
 
public:
40
 
    QMirServer(int &argc, char **argv, QObject* parent=0);
41
 
    virtual ~QMirServer();
42
 
 
43
 
    void start();
44
 
    Q_SLOT void stop();
45
 
    bool isRunning() const;
46
 
 
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;
51
 
 
52
 
Q_SIGNALS:
53
 
    void started();
54
 
    void stopped();
55
 
 
56
 
protected:
57
 
    QMirServerPrivate * const d_ptr;
58
 
 
59
 
private:
60
 
    Q_DISABLE_COPY(QMirServer)
61
 
    Q_DECLARE_PRIVATE(QMirServer)
62
 
};
63
 
 
64
 
#endif // QMIRSERVER_H