summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/kms/qkmsintegration.h
diff options
context:
space:
mode:
authorHannu Lyytinen <hannu.lyytinen@nomovok.com>2012-04-12 15:15:26 +0300
committerQt by Nokia <qt-info@nokia.com>2012-04-13 08:33:40 +0200
commit2a5ade68fd4b536c766de395d2657cd37c9bb98b (patch)
tree6aadeef26b2ace279512ef7ab48ec0232a89bbe4 /src/plugins/platforms/kms/qkmsintegration.h
parent5ab6a3270d1121fb4d50c3f79f497a9c52d5afa8 (diff)
Use the new udev based framework for detecting graphics cards.
Get rid of hard coded device node and support any number of graphics cards. Change-Id: I50f07fb1e6ea321a4ae751db8fb49ab439dce51e Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
Diffstat (limited to 'src/plugins/platforms/kms/qkmsintegration.h')
-rw-r--r--src/plugins/platforms/kms/qkmsintegration.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/platforms/kms/qkmsintegration.h b/src/plugins/platforms/kms/qkmsintegration.h
index 96d030f849..03fc5080a6 100644
--- a/src/plugins/platforms/kms/qkmsintegration.h
+++ b/src/plugins/platforms/kms/qkmsintegration.h
@@ -49,6 +49,8 @@ QT_BEGIN_NAMESPACE
class QKmsScreen;
class QKmsDevice;
+class QKmsUdevListener;
+class QKmsUdevDRMHandler;
class QKmsIntegration : public QPlatformIntegration
{
@@ -65,10 +67,11 @@ public:
QPlatformFontDatabase *fontDatabase() const;
QAbstractEventDispatcher *guiThreadEventDispatcher() const;
- void addScreen(QKmsScreen *screen);
-
QPlatformNativeInterface *nativeInterface() const;
+ void addScreen(QKmsScreen *screen);
+ QObject *createDevice(const char *);
+
private:
QStringList findDrmDevices();
@@ -77,6 +80,8 @@ private:
QPlatformFontDatabase *m_fontDatabase;
QAbstractEventDispatcher *m_eventDispatcher;
QPlatformNativeInterface *m_nativeInterface;
+ QKmsUdevListener *m_udevListener;
+ QKmsUdevDRMHandler *m_drmHandler;
};
QT_END_NAMESPACE