mirror of
https://github.com/libretro/Mu.git
synced 2026-07-24 01:24:31 +00:00
35 lines
584 B
C++
35 lines
584 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
#include <mutex>
|
|
#include <vector>
|
|
|
|
class UserIO : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
std::mutex userData;
|
|
std::vector<QString> jsStrings;
|
|
std::vector<QString> cxxStrings;
|
|
|
|
public:
|
|
explicit UserIO(QObject* parent = nullptr);
|
|
|
|
Q_INVOKABLE bool stringAvailableJs();
|
|
Q_INVOKABLE QString readStringJs();
|
|
Q_INVOKABLE void writeStringJs(QString data);
|
|
|
|
bool stringAvailableCxx();
|
|
QString readStringCxx();
|
|
void writeStringCxx(QString data);
|
|
|
|
void resetStrings();
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
};
|