##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QSqlField.h
49 lines | 2.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSQLFIELD_H
#define PYTHONQTWRAPPER_QSQLFIELD_H
#include <qsqlfield.h>
#include <QObject>
#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; }
void clear(QSqlField* theWrappedObject);
QVariant defaultValue(QSqlField* theWrappedObject) const;
bool isAutoValue(QSqlField* theWrappedObject) const;
bool isGenerated(QSqlField* theWrappedObject) const;
bool isNull(QSqlField* theWrappedObject) const;
bool isReadOnly(QSqlField* theWrappedObject) const;
bool isValid(QSqlField* theWrappedObject) const;
int length(QSqlField* theWrappedObject) const;
QString name(QSqlField* theWrappedObject) const;
bool operator_equal(QSqlField* theWrappedObject, const QSqlField& other) const;
int precision(QSqlField* theWrappedObject) const;
QSqlField::RequiredStatus requiredStatus(QSqlField* theWrappedObject) const;
void setAutoValue(QSqlField* theWrappedObject, bool autoVal);
void setDefaultValue(QSqlField* theWrappedObject, const QVariant& value);
void setGenerated(QSqlField* theWrappedObject, bool gen);
void setLength(QSqlField* theWrappedObject, int fieldLength);
void setName(QSqlField* theWrappedObject, const QString& name);
void setPrecision(QSqlField* theWrappedObject, int precision);
void setReadOnly(QSqlField* theWrappedObject, bool readOnly);
void setRequired(QSqlField* theWrappedObject, bool required);
void setRequiredStatus(QSqlField* theWrappedObject, QSqlField::RequiredStatus status);
void setSqlType(QSqlField* theWrappedObject, int type);
void setType(QSqlField* theWrappedObject, QVariant::Type type);
void setValue(QSqlField* theWrappedObject, const QVariant& value);
QVariant::Type type(QSqlField* theWrappedObject) const;
int typeID(QSqlField* theWrappedObject) const;
QVariant value(QSqlField* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QSQLFIELD_H