File indexing completed on 2023-05-30 12:24:34
0001 /* generated by rust_qt_binding_generator */ 0002 #ifndef TEST_FUNCTIONS_RUST_H 0003 #define TEST_FUNCTIONS_RUST_H 0004 0005 #include <QtCore/QObject> 0006 #include <QtCore/QAbstractItemModel> 0007 0008 class Person; 0009 0010 class Person : public QObject 0011 { 0012 Q_OBJECT 0013 public: 0014 class Private; 0015 private: 0016 Private * m_d; 0017 bool m_ownsPrivate; 0018 Q_PROPERTY(QString userName READ userName WRITE setUserName NOTIFY userNameChanged FINAL) 0019 explicit Person(bool owned, QObject *parent); 0020 public: 0021 explicit Person(QObject *parent = nullptr); 0022 ~Person(); 0023 QString userName() const; 0024 void setUserName(const QString& v); 0025 Q_INVOKABLE void append(const QString& suffix, quint32 amount); 0026 Q_INVOKABLE void doubleName(); 0027 Q_INVOKABLE QString greet(const QString& name) const; 0028 Q_INVOKABLE QString quote(const QString& prefix, const QString& suffix) const; 0029 Q_INVOKABLE QByteArray quoteBytes(const QByteArray& prefix, const QByteArray& suffix) const; 0030 Q_INVOKABLE quint8 vowelsInName() const; 0031 Q_SIGNALS: 0032 void userNameChanged(); 0033 }; 0034 #endif // TEST_FUNCTIONS_RUST_H