git-svn-id: svn://db.shs.com.ru/pip@496 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-05-07 09:36:13 +00:00
parent b9c609ecad
commit e33406b283
10 changed files with 56 additions and 40 deletions

27
main.h Normal file
View File

@@ -0,0 +1,27 @@
#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