mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-08 02:33:37 +00:00
Added support for QAbstractListModels Fixed bug in the serialization of arguments before slot execution
30 lines
538 B
C++
30 lines
538 B
C++
#pragma once
|
|
|
|
// Qt
|
|
#include <QObject>
|
|
#include <functional>
|
|
// DOtherSide
|
|
#include "DOtherSideTypesCpp.h"
|
|
#include "DOtherSide/IDosQObject.h"
|
|
|
|
namespace DOS
|
|
{
|
|
|
|
/// This class model a QObject
|
|
class DosQObject : public QObject, public IDosQObject
|
|
{
|
|
public:
|
|
/// Constructor
|
|
DosQObject(OnMetaObject onMetaObject,
|
|
OnSlotExecuted onSlotExecuted);
|
|
|
|
/// Emit a signal
|
|
bool emitSignal(const QString& name, const std::vector<QVariant>& arguments) override;
|
|
|
|
|
|
private:
|
|
IDosQObject* m_impl;
|
|
};
|
|
|
|
} // namespace DOS
|