PythonQtWrapper_QSqlField.h
52 lines
| 2.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSQLFIELD_H | ||
#define PYTHONQTWRAPPER_QSQLFIELD_H | ||||
#include <qsqlfield.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qsqlfield.h> | ||||
class PythonQtWrapper_QSqlField : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(RequiredStatus ) | ||||
enum RequiredStatus{ | ||||
Unknown = QSqlField::Unknown, Optional = QSqlField::Optional, Required = QSqlField::Required}; | ||||
public slots: | ||||
QSqlField* new_QSqlField(const QSqlField& other); | ||||
QSqlField* new_QSqlField(const QString& fieldName = QString(), QVariant::Type type = QVariant::Invalid); | ||||
void delete_QSqlField(QSqlField* obj) { delete obj; } | ||||
florianlink
|
r73 | bool isGenerated(QSqlField* theWrappedObject) const; | ||
bool isValid(QSqlField* theWrappedObject) const; | ||||
int length(QSqlField* theWrappedObject) const; | ||||
bool operator_equal(QSqlField* theWrappedObject, const QSqlField& other) const; | ||||
void setReadOnly(QSqlField* theWrappedObject, bool readOnly); | ||||
florianlink
|
r24 | void clear(QSqlField* theWrappedObject); | ||
florianlink
|
r73 | void setAutoValue(QSqlField* theWrappedObject, bool autoVal); | ||
int precision(QSqlField* theWrappedObject) const; | ||||
void setGenerated(QSqlField* theWrappedObject, bool gen); | ||||
florianlink
|
r24 | void setType(QSqlField* theWrappedObject, QVariant::Type type); | ||
florianlink
|
r73 | bool isReadOnly(QSqlField* theWrappedObject) const; | ||
florianlink
|
r24 | QVariant value(QSqlField* theWrappedObject) const; | ||
bool isNull(QSqlField* theWrappedObject) const; | ||||
QVariant::Type type(QSqlField* theWrappedObject) const; | ||||
void setRequired(QSqlField* theWrappedObject, bool required); | ||||
int typeID(QSqlField* theWrappedObject) const; | ||||
florianlink
|
r73 | QString name(QSqlField* theWrappedObject) const; | ||
QSqlField::RequiredStatus requiredStatus(QSqlField* theWrappedObject) const; | ||||
florianlink
|
r24 | bool isAutoValue(QSqlField* theWrappedObject) const; | ||
void setPrecision(QSqlField* theWrappedObject, int precision); | ||||
void setValue(QSqlField* theWrappedObject, const QVariant& value); | ||||
QVariant defaultValue(QSqlField* theWrappedObject) const; | ||||
florianlink
|
r73 | void setName(QSqlField* theWrappedObject, const QString& name); | ||
florianlink
|
r13 | void setDefaultValue(QSqlField* theWrappedObject, const QVariant& value); | ||
void setLength(QSqlField* theWrappedObject, int fieldLength); | ||||
florianlink
|
r73 | void setRequiredStatus(QSqlField* theWrappedObject, QSqlField::RequiredStatus status); | ||
void setSqlType(QSqlField* theWrappedObject, int type); | ||||
QString toString(QSqlField*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSQLFIELD_H | ||||