2017-10-14 16:56:03 -07:00
|
|
|
/* generated by rust_qt_binding_generator */
|
|
|
|
#ifndef TEST_FUNCTIONS_RUST_H
|
|
|
|
#define TEST_FUNCTIONS_RUST_H
|
|
|
|
|
2018-09-28 13:36:56 -07:00
|
|
|
#include <QtCore/QObject>
|
|
|
|
#include <QtCore/QAbstractItemModel>
|
2017-10-14 16:56:03 -07:00
|
|
|
|
|
|
|
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);
|
2018-05-17 01:47:18 -07:00
|
|
|
Q_INVOKABLE void append(const QString& suffix, quint32 amount);
|
2018-01-26 12:43:24 -08:00
|
|
|
Q_INVOKABLE void doubleName();
|
2018-05-16 13:38:30 -07:00
|
|
|
Q_INVOKABLE QString greet(const QString& name) const;
|
|
|
|
Q_INVOKABLE QString quote(const QString& prefix, const QString& suffix) const;
|
2018-08-05 10:52:17 -07:00
|
|
|
Q_INVOKABLE QByteArray quoteBytes(const QByteArray& prefix, const QByteArray& suffix) const;
|
2018-01-26 12:43:24 -08:00
|
|
|
Q_INVOKABLE quint8 vowelsInName() const;
|
2018-09-15 16:36:14 -07:00
|
|
|
Q_SIGNALS:
|
2017-10-14 16:56:03 -07:00
|
|
|
void userNameChanged();
|
|
|
|
};
|
|
|
|
#endif // TEST_FUNCTIONS_RUST_H
|