28 lines
543 B
C++
28 lines
543 B
C++
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <QObject>
|
|
#include "pip.h"
|
|
|
|
struct _S {
|
|
uchar _c[164];
|
|
};
|
|
|
|
class A: public QObject, public PIObject {
|
|
PIOBJECT(A)
|
|
public:
|
|
A() {}
|
|
EVENT1(ev1, float, f)
|
|
};
|
|
|
|
class B: public QObject, public PIObject {
|
|
PIOBJECT(B)
|
|
public:
|
|
B() {}
|
|
EVENT_HANDLER0(void, eh0) {piCout << "eh0" << emitter();}
|
|
EVENT_HANDLER1(void, eh1, float, f) {piCout << "eh1_1" << f << emitter();}
|
|
EVENT_HANDLER2(void, eh1, float, f, int, s) {piCout << "eh1_2" << f << s << emitter();}
|
|
};
|
|
|
|
#endif // MAIN_H
|