39 lines
613 B
C++
39 lines
613 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QPair>
|
|
|
|
#include "ScreenXmlParser.h"
|
|
|
|
namespace Rshb {
|
|
|
|
class HomeScreenScript final : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HomeScreenScript(QObject *parent = nullptr);
|
|
|
|
~HomeScreenScript() override;
|
|
|
|
public slots:
|
|
void start();
|
|
|
|
void stop();
|
|
|
|
signals:
|
|
void finished();
|
|
|
|
private:
|
|
bool m_running = true;
|
|
ScreenXmlParser xmlScreenParser;
|
|
|
|
bool goToHomeScreen(
|
|
const QString &deviceId,
|
|
const QString &packageName,
|
|
const QString &pinCode,
|
|
int width,
|
|
int height
|
|
);
|
|
};
|
|
|
|
} // namespace Rshb
|