32 lines
790 B
C++
32 lines
790 B
C++
/* generated by rust_qt_binding_generator */
|
|
#ifndef TEST_FUNCTIONS_RUST_H
|
|
#define TEST_FUNCTIONS_RUST_H
|
|
|
|
#include <QObject>
|
|
#include <QAbstractItemModel>
|
|
|
|
class Person;
|
|
|
|
class Person : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
class Private;
|
|
private:
|
|
Private * m_d;
|
|
bool m_ownsPrivate;
|
|
Q_PROPERTY(QString userName READ userName WRITE setUserName NOTIFY userNameChanged FINAL)
|
|
explicit Person(bool owned, QObject *parent);
|
|
public:
|
|
explicit Person(QObject *parent = nullptr);
|
|
~Person();
|
|
QString userName() const;
|
|
void setUserName(const QString& v);
|
|
Q_INVOKABLE void doubleName();
|
|
Q_INVOKABLE QString greet(const QString& Name) const;
|
|
Q_INVOKABLE quint8 vowelsInName() const;
|
|
signals:
|
|
void userNameChanged();
|
|
};
|
|
#endif // TEST_FUNCTIONS_RUST_H
|