backendlogic.h 395 B

123456789101112131415161718192021
  1. #ifndef BACKENDLOGIC_H
  2. #define BACKENDLOGIC_H
  3. #include <QObject>
  4. #include <QJsonObject>
  5. class BackendLogic : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit BackendLogic(QObject *parent = nullptr) {
  10. Q_UNUSED(parent);}
  11. Q_INVOKABLE int getData() {return mValue; }
  12. Q_INVOKABLE void shutdown();
  13. Q_INVOKABLE QJsonObject getDeviceInfo();
  14. private:
  15. int mValue = 100;
  16. };
  17. #endif // BACKENDLOGIC_H