~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

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

  • Committer: Alan Griffiths
  • Date: 2015-07-29 11:33:48 UTC
  • mfrom: (347 qtmir)
  • mto: This revision was merged to the branch mainline in revision 355.
  • Revision ID: alan@octopull.co.uk-20150729113348-qot92li275wru8e1
mergeĀ lp:qtmir

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef DISPLAY_H
20
20
#define DISPLAY_H
21
21
 
22
 
#include <QObject>
23
22
#include <qpa/qplatformscreen.h>
24
 
 
25
 
class MirServer;
26
 
 
27
 
class Display : public QObject
 
23
#include <memory>
 
24
 
 
25
namespace mir { namespace graphics { class DisplayConfiguration; }}
 
26
 
 
27
class Display
28
28
{
29
 
    Q_OBJECT
30
29
public:
31
 
    Display(const QSharedPointer<MirServer> &server, QObject *parent = 0);
32
 
    ~Display();
 
30
    Display(const std::shared_ptr<mir::graphics::DisplayConfiguration> &displayConfig);
 
31
    virtual ~Display();
33
32
 
34
33
    QList<QPlatformScreen *> screens() const { return m_screens; }
35
34
 
36
35
private:
37
36
    QList<QPlatformScreen *> m_screens;
38
 
    const QSharedPointer<MirServer> m_mirServer;
39
37
};
40
38
 
41
39
#endif // DISPLAY_H