backend.h 459 Bytes
Newer Older
Artem Sidyakin's avatar
Artem Sidyakin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#ifndef BACKEND_H
#define BACKEND_H

#include <QObject>
#include <QProcess>
#include <QStringList>
#include <QDebug>

class Backend : public QObject
{
    Q_OBJECT
public:
    explicit Backend(QObject *parent = nullptr);

signals:
    void someError(QString errorMsg);

public slots:
    bool movePanTilt(QString basePath, int pan, int tilt);
    static QString getBasePath(QString applicationDirPath);

private:
    QProcess process;
};

#endif // BACKEND_H