##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QSimpleXmlNodeModel.cpp
379 lines | 15.2 KiB | text/x-c | CppLexer
/ generated_cpp / com_trolltech_qt_xmlpatterns / PythonQtWrapper_QSimpleXmlNodeModel.cpp
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include "PythonQtWrapper_QSimpleXmlNodeModel.h"
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QVariant>
#include <qabstractxmlnodemodel.h>
#include <qurl.h>
#include <qvector.h>
#include <qxmlname.h>
#include <qxmlnamepool.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QVector<QXmlNodeModelIndex > PythonQtShell_QSimpleXmlNodeModel::attributes(const QXmlNodeModelIndex& element) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attributes");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"attributes(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QVector<QXmlNodeModelIndex > returnValue;
void* args[2] = {NULL, (void*)&element};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QVector<QXmlNodeModelIndex > *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QVector<QXmlNodeModelIndex > result;
return result;
}
QUrl PythonQtShell_QSimpleXmlNodeModel::baseUri(const QXmlNodeModelIndex& node) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "baseUri");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"baseUri(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QUrl returnValue;
void* args[2] = {NULL, (void*)&node};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QUrl *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QSimpleXmlNodeModel::baseUri(node);
}
QXmlNodeModelIndex::DocumentOrder PythonQtShell_QSimpleXmlNodeModel::compareOrder(const QXmlNodeModelIndex& ni1, const QXmlNodeModelIndex& ni2) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "compareOrder");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"compareOrder(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& ,const QXmlNodeModelIndex& )");
QXmlNodeModelIndex::DocumentOrder returnValue;
void* args[3] = {NULL, (void*)&ni1, (void*)&ni2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlNodeModelIndex::DocumentOrder *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QXmlNodeModelIndex::DocumentOrder result;
return result;
}
QUrl PythonQtShell_QSimpleXmlNodeModel::documentUri(const QXmlNodeModelIndex& ni) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "documentUri");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"documentUri(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QUrl returnValue;
void* args[2] = {NULL, (void*)&ni};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QUrl *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QUrl result;
return result;
}
QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::elementById(const QXmlName& id) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "elementById");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"elementById(QSimpleXmlNodeModel*,const QXmlName& )");
QXmlNodeModelIndex returnValue;
void* args[2] = {NULL, (void*)&id};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlNodeModelIndex *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QSimpleXmlNodeModel::elementById(id);
}
QXmlNodeModelIndex::NodeKind PythonQtShell_QSimpleXmlNodeModel::kind(const QXmlNodeModelIndex& ni) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "kind");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"kind(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QXmlNodeModelIndex::NodeKind returnValue;
void* args[2] = {NULL, (void*)&ni};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlNodeModelIndex::NodeKind *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QXmlNodeModelIndex::NodeKind result;
return result;
}
QXmlName PythonQtShell_QSimpleXmlNodeModel::name(const QXmlNodeModelIndex& ni) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"name(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QXmlName returnValue;
void* args[2] = {NULL, (void*)&ni};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlName *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QXmlName result;
return result;
}
QVector<QXmlName > PythonQtShell_QSimpleXmlNodeModel::namespaceBindings(const QXmlNodeModelIndex& arg__1) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBindings");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"namespaceBindings(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QVector<QXmlName > returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QVector<QXmlName > *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QSimpleXmlNodeModel::namespaceBindings(arg__1);
}
QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex& origin) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextFromSimpleAxis");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"nextFromSimpleAxis(QSimpleXmlNodeModel*,QAbstractXmlNodeModel::SimpleAxis ,const QXmlNodeModelIndex& )");
QXmlNodeModelIndex returnValue;
void* args[3] = {NULL, (void*)&axis, (void*)&origin};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlNodeModelIndex *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QXmlNodeModelIndex result;
return result;
}
QVector<QXmlNodeModelIndex > PythonQtShell_QSimpleXmlNodeModel::nodesByIdref(const QXmlName& idref) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nodesByIdref");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"nodesByIdref(QSimpleXmlNodeModel*,const QXmlName& )");
QVector<QXmlNodeModelIndex > returnValue;
void* args[2] = {NULL, (void*)&idref};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QVector<QXmlNodeModelIndex > *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QSimpleXmlNodeModel::nodesByIdref(idref);
}
QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::root(const QXmlNodeModelIndex& n) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "root");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"root(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QXmlNodeModelIndex returnValue;
void* args[2] = {NULL, (void*)&n};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QXmlNodeModelIndex *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QXmlNodeModelIndex result;
return result;
}
QString PythonQtShell_QSimpleXmlNodeModel::stringValue(const QXmlNodeModelIndex& node) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stringValue");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"stringValue(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QString returnValue;
void* args[2] = {NULL, (void*)&node};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QString *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QSimpleXmlNodeModel::stringValue(node);
}
QVariant PythonQtShell_QSimpleXmlNodeModel::typedValue(const QXmlNodeModelIndex& n) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "typedValue");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature(
&PythonQtWrapper_QSimpleXmlNodeModel::staticMetaObject,
"typedValue(QSimpleXmlNodeModel*,const QXmlNodeModelIndex& )");
QVariant returnValue;
void* args[2] = {NULL, (void*)&n};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
returnValue = *((QVariant *)args[0]);
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
QVariant result;
return result;
}
QSimpleXmlNodeModel* PythonQtWrapper_QSimpleXmlNodeModel::new_QSimpleXmlNodeModel(const QXmlNamePool& namePool)
{
return new PythonQtShell_QSimpleXmlNodeModel(namePool); }
florianlink
upgraded wrappers to current generator version...
r28 QXmlNamePool& PythonQtWrapper_QSimpleXmlNodeModel::namePool(QSimpleXmlNodeModel* theWrappedObject) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return theWrappedObject->namePool();
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
upgraded wrappers to current generator version...
r28 QString PythonQtWrapper_QSimpleXmlNodeModel::stringValue(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_stringValue(node);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
upgraded wrappers to current generator version...
r28 QXmlNodeModelIndex PythonQtWrapper_QSimpleXmlNodeModel::elementById(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& id) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_elementById(id);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
upgraded wrappers to current generator version...
r28 QUrl PythonQtWrapper_QSimpleXmlNodeModel::baseUri(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_baseUri(node);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
upgraded wrappers to current generator version...
r28 QVector<QXmlName > PythonQtWrapper_QSimpleXmlNodeModel::namespaceBindings(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& arg__1) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_namespaceBindings(arg__1);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QVector<QXmlNodeModelIndex > PythonQtWrapper_QSimpleXmlNodeModel::nodesByIdref(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& idref) const
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
upgraded wrappers to current generator version...
r28 return ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_nodesByIdref(idref);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }