-
-
Notifications
You must be signed in to change notification settings - Fork 311
Expand file tree
/
Copy pathcachetestqobject_wrap.h
More file actions
35 lines (25 loc) · 898 Bytes
/
cachetestqobject_wrap.h
File metadata and controls
35 lines (25 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <napi.h>
#include <QPointer>
#include "Extras/Export/export.h"
#include "QtCore/QObject/qobject_macro.h"
#include "test/CacheTestQObject.h"
class DLL_EXPORT CacheTestQObjectWrap
: public Napi::ObjectWrap<CacheTestQObjectWrap>,
public EventWidget {
QOBJECT_WRAPPED_METHODS_DECLARATION_WITH_EVENT_SOURCE(this)
QOBJECT_SET_PARENT_IMPL
private:
QPointer<CacheTestQObject> instance;
public:
// class constructor
static Napi::FunctionReference constructor;
static Napi::Object init(Napi::Env env, Napi::Object exports);
CacheTestQObjectWrap(const Napi::CallbackInfo& info);
CacheTestQObject* getInternalInstance();
virtual void connectSignalsToEventEmitter();
// wrapped methods
Napi::Value foo(const Napi::CallbackInfo& info);
Napi::Value clearFoo(const Napi::CallbackInfo& info);
Napi::Value bar(const Napi::CallbackInfo& info);
};