#include <QQuickWindow>
#include <libhomescreen.hpp>
#include <qlibwindowmanager.h>
-#include <bluetooth.h>
#include <mediaplayer.h>
#include <unistd.h>
if(qwm->init(port,secret) != 0){
exit(EXIT_FAILURE);
}
+ AGLScreenInfo screenInfo(qwm->get_scale_factor());
// Request a surface as described in layers.json windowmanager’s file
if (qwm->requestSurface(myname) != 0) {
exit(EXIT_FAILURE);
}
});
- context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress));
- context->setContextProperty("bluetooth_connection", new Bluetooth(bindingAddress));
+ context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context));
+ context->setContextProperty(QStringLiteral("screenInfo"), &screenInfo);
usleep(300000);