mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-01-04 08:11:46 -08:00
27 lines
603 B
C++
27 lines
603 B
C++
#ifndef APP_H
|
|
#define APP_H
|
|
|
|
#include <QObject>
|
|
#include <ecl/ecl.h>
|
|
|
|
class Test : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
Test(QObject*, const QString&);
|
|
|
|
// define function acting as constructor (callable from Lisp)
|
|
// N.B. return a vanilla Qt class (here: QObject*) known to EQL5
|
|
Q_INVOKABLE QObject* newInstance(QObject*, const QString&);
|
|
|
|
public Q_SLOTS:
|
|
// you may pass any type found in '~/eql5/src/ecl_fun.cpp::toMetaArg()'
|
|
QString concat(const QStringList&);
|
|
|
|
// pass Lisp data
|
|
void processData(cl_object);
|
|
|
|
// call back to Lisp
|
|
void printMe();
|
|
};
|
|
|
|
#endif
|