#pragma once
#include <QObject>

// Small controller exposed to QML for system actions (e.g. the "Back" button
// returning to the standard reMarkable GUI).
class AppControl : public QObject {
    Q_OBJECT
public:
    explicit AppControl(QObject *parent = nullptr) : QObject(parent) {}

    // Hand the display back to xochitl: detached so it survives this process
    // being stopped, and sequenced (stop chatter -> release panel -> start
    // xochitl) to avoid framebuffer-lock contention.
    Q_INVOKABLE void returnToStandard();
};
