File indexing completed on 2024-09-15 05:03:22
0001 /* generated by rust_qt_binding_generator */ 0002 #ifndef TEST_OBJECT_TYPES_RUST_H 0003 #define TEST_OBJECT_TYPES_RUST_H 0004 0005 #include <QtCore/QObject> 0006 #include <QtCore/QAbstractItemModel> 0007 0008 class Object; 0009 0010 class Object : public QObject 0011 { 0012 Q_OBJECT 0013 public: 0014 class Private; 0015 private: 0016 Private * m_d; 0017 bool m_ownsPrivate; 0018 Q_PROPERTY(bool boolean READ boolean WRITE setBoolean NOTIFY booleanChanged FINAL) 0019 Q_PROPERTY(QByteArray bytearray READ bytearray WRITE setBytearray NOTIFY bytearrayChanged FINAL) 0020 Q_PROPERTY(float f32 READ f32 WRITE setF32 NOTIFY f32Changed FINAL) 0021 Q_PROPERTY(double f64 READ f64 WRITE setF64 NOTIFY f64Changed FINAL) 0022 Q_PROPERTY(qint16 i16 READ i16 WRITE setI16 NOTIFY i16Changed FINAL) 0023 Q_PROPERTY(qint32 i32 READ i32 WRITE setI32 NOTIFY i32Changed FINAL) 0024 Q_PROPERTY(qint64 i64 READ i64 WRITE setI64 NOTIFY i64Changed FINAL) 0025 Q_PROPERTY(qint8 i8 READ i8 WRITE setI8 NOTIFY i8Changed FINAL) 0026 Q_PROPERTY(QVariant optionalBoolean READ optionalBoolean WRITE setOptionalBoolean NOTIFY optionalBooleanChanged FINAL) 0027 Q_PROPERTY(QByteArray optionalBytearray READ optionalBytearray WRITE setOptionalBytearray NOTIFY optionalBytearrayChanged FINAL) 0028 Q_PROPERTY(QString optionalString READ optionalString WRITE setOptionalString NOTIFY optionalStringChanged FINAL) 0029 Q_PROPERTY(QVariant optionalU64 READ optionalU64 WRITE setOptionalU64 NOTIFY optionalU64Changed FINAL) 0030 Q_PROPERTY(QString string READ string WRITE setString NOTIFY stringChanged FINAL) 0031 Q_PROPERTY(QString stringByFunction READ stringByFunction WRITE setStringByFunction NOTIFY stringByFunctionChanged FINAL) 0032 Q_PROPERTY(quint16 u16 READ u16 WRITE setU16 NOTIFY u16Changed FINAL) 0033 Q_PROPERTY(quint32 u32 READ u32 WRITE setU32 NOTIFY u32Changed FINAL) 0034 Q_PROPERTY(quint64 u64 READ u64 WRITE setU64 NOTIFY u64Changed FINAL) 0035 Q_PROPERTY(quint8 u8 READ u8 WRITE setU8 NOTIFY u8Changed FINAL) 0036 explicit Object(bool owned, QObject *parent); 0037 public: 0038 explicit Object(QObject *parent = nullptr); 0039 ~Object(); 0040 bool boolean() const; 0041 void setBoolean(bool v); 0042 QByteArray bytearray() const; 0043 void setBytearray(const QByteArray& v); 0044 float f32() const; 0045 void setF32(float v); 0046 double f64() const; 0047 void setF64(double v); 0048 qint16 i16() const; 0049 void setI16(qint16 v); 0050 qint32 i32() const; 0051 void setI32(qint32 v); 0052 qint64 i64() const; 0053 void setI64(qint64 v); 0054 qint8 i8() const; 0055 void setI8(qint8 v); 0056 QVariant optionalBoolean() const; 0057 void setOptionalBoolean(const QVariant& v); 0058 QByteArray optionalBytearray() const; 0059 void setOptionalBytearray(const QByteArray& v); 0060 QString optionalString() const; 0061 void setOptionalString(const QString& v); 0062 QVariant optionalU64() const; 0063 void setOptionalU64(const QVariant& v); 0064 QString string() const; 0065 void setString(const QString& v); 0066 QString stringByFunction() const; 0067 void setStringByFunction(const QString& v); 0068 quint16 u16() const; 0069 void setU16(quint16 v); 0070 quint32 u32() const; 0071 void setU32(quint32 v); 0072 quint64 u64() const; 0073 void setU64(quint64 v); 0074 quint8 u8() const; 0075 void setU8(quint8 v); 0076 Q_SIGNALS: 0077 void booleanChanged(); 0078 void bytearrayChanged(); 0079 void f32Changed(); 0080 void f64Changed(); 0081 void i16Changed(); 0082 void i32Changed(); 0083 void i64Changed(); 0084 void i8Changed(); 0085 void optionalBooleanChanged(); 0086 void optionalBytearrayChanged(); 0087 void optionalStringChanged(); 0088 void optionalU64Changed(); 0089 void stringChanged(); 0090 void stringByFunctionChanged(); 0091 void u16Changed(); 0092 void u32Changed(); 0093 void u64Changed(); 0094 void u8Changed(); 0095 }; 0096 #endif // TEST_OBJECT_TYPES_RUST_H