git-svn-id: svn://db.shs.com.ru/pip@496 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
27
main.h
Normal file
27
main.h
Normal 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
|
||||
Reference in New Issue
Block a user