mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-08 10:44:45 +00:00
35 lines
721 B
C++
35 lines
721 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <functional>
|
|
|
|
#include <QtCore/QList>
|
|
#include <QtCore/QMetaType>
|
|
#include <QtCore/QVariant>
|
|
|
|
class SlotData;
|
|
class QString;
|
|
|
|
class DynamicSlot
|
|
{
|
|
public:
|
|
DynamicSlot();
|
|
DynamicSlot(const QString& name,
|
|
QMetaType::Type returnType,
|
|
const QList<QMetaType::Type>& argumentsTypes);
|
|
DynamicSlot(const DynamicSlot& slot);
|
|
DynamicSlot& operator=(const DynamicSlot& slot);
|
|
~DynamicSlot();
|
|
|
|
QString name() const;
|
|
bool isValid() const;
|
|
QByteArray signature() const;
|
|
bool validate(const QVariantList& argumentsValues);
|
|
void execute(void** args);
|
|
|
|
private:
|
|
void _initSignature();
|
|
|
|
std::unique_ptr<SlotData> d;
|
|
};
|