diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /sip/tdecore/bytearray.sip | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/tdecore/bytearray.sip')
-rw-r--r-- | sip/tdecore/bytearray.sip | 410 |
1 files changed, 205 insertions, 205 deletions
diff --git a/sip/tdecore/bytearray.sip b/sip/tdecore/bytearray.sip index aae4780..20cd872 100644 --- a/sip/tdecore/bytearray.sip +++ b/sip/tdecore/bytearray.sip @@ -26,40 +26,40 @@ %End -void dcop_add (QDataStream&, QWidget::FocusPolicy /Constrained/); -void dcop_add (QDataStream&, int /Constrained/, const QCString& = "int"); -//void dcop_add (QDataStream&, longlong); -//void dcop_add (QDataStream&, ulonglong); -void dcop_add (QDataStream&, double, const QCString& = "double"); -void dcop_add (QDataStream&, QString); -void dcop_add (QDataStream&, QStringList); -void dcop_add (QDataStream&, QCString); -void dcop_add (QDataStream&, KURL); -void dcop_add (QDataStream&, KURL::List); -void dcop_add (QDataStream&, QSize); -void dcop_add (QDataStream&, QRect); -void dcop_add (QDataStream&, QRegion); -void dcop_add (QDataStream&, QPoint); -void dcop_add (QDataStream&, QFont); -void dcop_add (QDataStream&, QCursor); -void dcop_add (QDataStream&, QPixmap); -void dcop_add (QDataStream&, QColor); -void dcop_add (QDataStream&, QColorGroup); -void dcop_add (QDataStream&, QPalette); -void dcop_add (QDataStream&, QBrush); -void dcop_add (QDataStream&, DCOPRef); -void dcop_add (QDataStream&, QVariant); -void dcop_add (QDataStream&, QDate); -void dcop_add (QDataStream&, QTime); -void dcop_add (QDataStream&, QDateTime); -void dcop_add (QDataStream&, QImage); -void dcop_add (QDataStream&, QKeySequence); -void dcop_add (QDataStream&, QPen); -void dcop_add (QDataStream&, QPicture); -void dcop_add (QDataStream&, QPointArray); -void dcop_add (QDataStream&, QByteArray); - -void dcop_add (QDataStream&, SIP_PYDICT, QCString); +void dcop_add (TQDataStream&, TQWidget::FocusPolicy /Constrained/); +void dcop_add (TQDataStream&, int /Constrained/, const TQCString& = "int"); +//void dcop_add (TQDataStream&, longlong); +//void dcop_add (TQDataStream&, ulonglong); +void dcop_add (TQDataStream&, double, const TQCString& = "double"); +void dcop_add (TQDataStream&, TQString); +void dcop_add (TQDataStream&, TQStringList); +void dcop_add (TQDataStream&, TQCString); +void dcop_add (TQDataStream&, KURL); +void dcop_add (TQDataStream&, KURL::List); +void dcop_add (TQDataStream&, TQSize); +void dcop_add (TQDataStream&, TQRect); +void dcop_add (TQDataStream&, TQRegion); +void dcop_add (TQDataStream&, TQPoint); +void dcop_add (TQDataStream&, TQFont); +void dcop_add (TQDataStream&, TQCursor); +void dcop_add (TQDataStream&, TQPixmap); +void dcop_add (TQDataStream&, TQColor); +void dcop_add (TQDataStream&, TQColorGroup); +void dcop_add (TQDataStream&, TQPalette); +void dcop_add (TQDataStream&, TQBrush); +void dcop_add (TQDataStream&, DCOPRef); +void dcop_add (TQDataStream&, TQVariant); +void dcop_add (TQDataStream&, TQDate); +void dcop_add (TQDataStream&, TQTime); +void dcop_add (TQDataStream&, TQDateTime); +void dcop_add (TQDataStream&, TQImage); +void dcop_add (TQDataStream&, TQKeySequence); +void dcop_add (TQDataStream&, TQPen); +void dcop_add (TQDataStream&, TQPicture); +void dcop_add (TQDataStream&, TQPointArray); +void dcop_add (TQDataStream&, TQByteArray); + +void dcop_add (TQDataStream&, SIP_PYDICT, TQCString); %MethodCode const sipTypeDef *map_td = sipFindType(*a2); @@ -75,27 +75,27 @@ void dcop_add (QDataStream&, SIP_PYDICT, QCString); { sipIsErr = 1; } - else if (*a2 == "QMap<QCString,DCOPRef>") + else if (*a2 == "TQMap<TQCString,DCOPRef>") { - QMap<QCString,DCOPRef> *map = (QMap<QCString,DCOPRef> *)map_v; + TQMap<TQCString,DCOPRef> *map = (TQMap<TQCString,DCOPRef> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,DCOPRef>") + else if (*a2 == "TQMap<TQString,DCOPRef>") { - QMap<QString,DCOPRef> *map = (QMap<QString,DCOPRef> *)map_v; + TQMap<TQString,DCOPRef> *map = (TQMap<TQString,DCOPRef> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,QString>") + else if (*a2 == "TQMap<TQString,TQString>") { - QMap<QString,QString> *map = (QMap<QString,QString> *)map_v; + TQMap<TQString,TQString> *map = (TQMap<TQString,TQString> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,QByteArray>") + else if (*a2 == "TQMap<TQString,TQByteArray>") { - QMap<QString,QByteArray> *map = (QMap<QString,QByteArray> *)map_v; + TQMap<TQString,TQByteArray> *map = (TQMap<TQString,TQByteArray> *)map_v; *a0 << *map; } @@ -103,7 +103,7 @@ void dcop_add (QDataStream&, SIP_PYDICT, QCString); %End -void dcop_add (QDataStream&, SIP_PYLIST, QCString); +void dcop_add (TQDataStream&, SIP_PYLIST, TQCString); %MethodCode const sipTypeDef *list_td = sipFindType(*a2); @@ -119,15 +119,15 @@ void dcop_add (QDataStream&, SIP_PYLIST, QCString); { sipIsErr = 1; } - else if (*a2 == "QValueList<QCString>") + else if (*a2 == "TQValueList<TQCString>") { - QValueList<QCString> *list = (QValueList<QCString> *)list_v; + TQValueList<TQCString> *list = (TQValueList<TQCString> *)list_v; *a0 << *list; } - else if (*a2 == "QValueList<DCOPRef>") + else if (*a2 == "TQValueList<DCOPRef>") { - QValueList<DCOPRef> *list = (QValueList<DCOPRef> *)list_v; + TQValueList<DCOPRef> *list = (TQValueList<DCOPRef> *)list_v; *a0 << *list; } @@ -135,7 +135,7 @@ void dcop_add (QDataStream&, SIP_PYLIST, QCString); %End -void dcop_next (QDataStream&, QCString&); +void dcop_next (TQDataStream&, TQCString&); %MethodCode if (*a1 == "char") { @@ -215,23 +215,23 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return PyFloat_FromDouble (res); } - else if (*a1 == "QString") + else if (*a1 == "TQString") { - QString res; + TQString res; *a0 >> res; - return sipConvertFromNewType(new QString(res), sipType_QString, NULL); + return sipConvertFromNewType(new TQString(res), sipType_QString, NULL); } - else if (*a1 == "QStringList") + else if (*a1 == "TQStringList") { - QStringList res; + TQStringList res; *a0 >> res; - return sipConvertFromNewType(new QStringList(res), sipType_QStringList, NULL); + return sipConvertFromNewType(new TQStringList(res), sipType_QStringList, NULL); } - else if (*a1 == "QCString") + else if (*a1 == "TQCString") { - QCString res; + TQCString res; *a0 >> res; - return sipConvertFromNewType(new QCString(res), sipType_QCString, NULL); + return sipConvertFromNewType(new TQCString(res), sipType_QCString, NULL); } else if (*a1 == "KURL") { @@ -245,71 +245,71 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return sipConvertFromNewType(new KURL::List(res), sipType_KURL_List, NULL); } - else if (*a1 == "QSize") + else if (*a1 == "TQSize") { - QSize res; + TQSize res; *a0 >> res; - return sipConvertFromNewType(new QSize(res), sipType_QSize, NULL); + return sipConvertFromNewType(new TQSize(res), sipType_QSize, NULL); } - else if (*a1 == "QRect") + else if (*a1 == "TQRect") { - QRect res; + TQRect res; *a0 >> res; - return sipConvertFromNewType(new QRect(res), sipType_QRect, NULL); + return sipConvertFromNewType(new TQRect(res), sipType_QRect, NULL); } - else if (*a1 == "QRegion") + else if (*a1 == "TQRegion") { - QRect res; + TQRect res; *a0 >> res; - return sipConvertFromNewType(new QRegion(res), sipType_QRegion, NULL); + return sipConvertFromNewType(new TQRegion(res), sipType_QRegion, NULL); } - else if (*a1 == "QPoint") + else if (*a1 == "TQPoint") { - QPoint res; + TQPoint res; *a0 >> res; - return sipConvertFromNewType(new QPoint(res), sipType_QPoint, NULL); + return sipConvertFromNewType(new TQPoint(res), sipType_QPoint, NULL); } - else if (*a1 == "QFont") + else if (*a1 == "TQFont") { - QFont res; + TQFont res; *a0 >> res; - return sipConvertFromNewType(new QFont(res), sipType_QFont, NULL); + return sipConvertFromNewType(new TQFont(res), sipType_QFont, NULL); } - else if (*a1 == "QCursor") + else if (*a1 == "TQCursor") { - QCursor res; + TQCursor res; *a0 >> res; - return sipConvertFromNewType(new QCursor(res), sipType_QCursor, NULL); + return sipConvertFromNewType(new TQCursor(res), sipType_QCursor, NULL); } - else if (*a1 == "QPixmap") + else if (*a1 == "TQPixmap") { - QPixmap res; + TQPixmap res; *a0 >> res; - return sipConvertFromNewType(new QPixmap(res), sipType_QPixmap, NULL); + return sipConvertFromNewType(new TQPixmap(res), sipType_QPixmap, NULL); } - else if (*a1 == "QColor") + else if (*a1 == "TQColor") { - QColor res; + TQColor res; *a0 >> res; - return sipConvertFromNewType(new QColor(res), sipType_QColor, NULL); + return sipConvertFromNewType(new TQColor(res), sipType_QColor, NULL); } - else if (*a1 == "QColorGroup") + else if (*a1 == "TQColorGroup") { - QColorGroup res; + TQColorGroup res; *a0 >> res; - return sipConvertFromNewType(new QColorGroup(res), sipType_QColorGroup, NULL); + return sipConvertFromNewType(new TQColorGroup(res), sipType_QColorGroup, NULL); } - else if (*a1 == "QPalette") + else if (*a1 == "TQPalette") { - QPalette res; + TQPalette res; *a0 >> res; - return sipConvertFromNewType(new QPalette(res), sipType_QPalette, NULL); + return sipConvertFromNewType(new TQPalette(res), sipType_QPalette, NULL); } - else if (*a1 == "QBrush") + else if (*a1 == "TQBrush") { - QBrush res; + TQBrush res; *a0 >> res; - return sipConvertFromNewType(new QBrush(res), sipType_QBrush, NULL); + return sipConvertFromNewType(new TQBrush(res), sipType_QBrush, NULL); } else if (*a1 == "FocusPolicy") { @@ -323,99 +323,99 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return sipConvertFromNewType(new DCOPRef(res), sipType_DCOPRef, NULL); } - else if (*a1 == "QVariant") + else if (*a1 == "TQVariant") { - QVariant res; + TQVariant res; *a0 >> res; - return sipConvertFromNewType(new QVariant(res), sipType_QVariant, NULL); + return sipConvertFromNewType(new TQVariant(res), sipType_QVariant, NULL); } - else if (*a1 == "QDate") + else if (*a1 == "TQDate") { - QDate res; + TQDate res; *a0 >> res; - return sipConvertFromNewType(new QDate(res), sipType_QDate, NULL); + return sipConvertFromNewType(new TQDate(res), sipType_QDate, NULL); } - else if (*a1 == "QTime") + else if (*a1 == "TQTime") { - QTime res; + TQTime res; *a0 >> res; - return sipConvertFromNewType(new QTime(res), sipType_QTime, NULL); + return sipConvertFromNewType(new TQTime(res), sipType_QTime, NULL); } - else if (*a1 == "QDateTime") + else if (*a1 == "TQDateTime") { - QDateTime res; + TQDateTime res; *a0 >> res; - return sipConvertFromNewType(new QDateTime(res), sipType_QDateTime, NULL); + return sipConvertFromNewType(new TQDateTime(res), sipType_QDateTime, NULL); } - else if (*a1 == "QImage") + else if (*a1 == "TQImage") { - QImage res; + TQImage res; *a0 >> res; - return sipConvertFromNewType(new QImage(res), sipType_QImage, NULL); + return sipConvertFromNewType(new TQImage(res), sipType_QImage, NULL); } - else if (*a1 == "QKeySequence") + else if (*a1 == "TQKeySequence") { - QKeySequence res; + TQKeySequence res; *a0 >> res; - return sipConvertFromNewType(new QKeySequence(res), sipType_QKeySequence, NULL); + return sipConvertFromNewType(new TQKeySequence(res), sipType_QKeySequence, NULL); } - else if (*a1 == "QPen") + else if (*a1 == "TQPen") { - QPen res; + TQPen res; *a0 >> res; - return sipConvertFromNewType(new QPen(res), sipType_QPen, NULL); + return sipConvertFromNewType(new TQPen(res), sipType_QPen, NULL); } - else if (*a1 == "QPicture") + else if (*a1 == "TQPicture") { - QPicture res; + TQPicture res; *a0 >> res; - return sipConvertFromNewType(new QPicture(res), sipType_QPicture, NULL); + return sipConvertFromNewType(new TQPicture(res), sipType_QPicture, NULL); } - else if (*a1 == "QPointArray") + else if (*a1 == "TQPointArray") { - QPointArray res; + TQPointArray res; *a0 >> res; - return sipConvertFromNewType(new QPointArray(res), sipType_QPointArray, NULL); + return sipConvertFromNewType(new TQPointArray(res), sipType_QPointArray, NULL); } - else if (*a1 == "QByteArray") + else if (*a1 == "TQByteArray") { - QByteArray res; + TQByteArray res; *a0 >> res; - return sipConvertFromNewType(new QByteArray(res), sipType_QByteArray, NULL); + return sipConvertFromNewType(new TQByteArray(res), sipType_QByteArray, NULL); } - else if (*a1 == "QMap<QCString,DCOPRef>") + else if (*a1 == "TQMap<TQCString,DCOPRef>") { - QMap<QCString, DCOPRef> res; + TQMap<TQCString, DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,DCOPRef>") + else if (*a1 == "TQMap<TQString,DCOPRef>") { - QMap<QString, DCOPRef> res; + TQMap<TQString, DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,QString>") + else if (*a1 == "TQMap<TQString,TQString>") { - QMap<QString, QString> res; + TQMap<TQString, TQString> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,QByteArray>") + else if (*a1 == "TQMap<TQString,TQByteArray>") { - QMap<QString, QByteArray> res; + TQMap<TQString, TQByteArray> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QValueList<QCString>") + else if (*a1 == "TQValueList<TQCString>") { - QValueList<QCString> res; + TQValueList<TQCString> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QValueList<DCOPRef>" || *a1 == "QCStringList") + else if (*a1 == "TQValueList<DCOPRef>" || *a1 == "TQCStringList") { - QValueList<DCOPRef> res; + TQValueList<DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } @@ -430,7 +430,7 @@ void dcop_next (QDataStream&, QCString&); %ModuleCode -void dcop_add (QDataStream& s, int value, const QCString& type_) +void dcop_add (TQDataStream& s, int value, const TQCString& type_) { if (type_ == "char") s << (Q_INT8)value; @@ -452,17 +452,17 @@ void dcop_add (QDataStream& s, int value, const QCString& type_) s << (long)value; } -/*void dcop_add (QDataStream& s, longlong value) +/*void dcop_add (TQDataStream& s, longlong value) { s << value; } -void dcop_add (QDataStream& s, ulonglong value) +void dcop_add (TQDataStream& s, ulonglong value) { s << value; }*/ -void dcop_add (QDataStream& s, double value, const QCString& type_) +void dcop_add (TQDataStream& s, double value, const TQCString& type_) { if (type_ == "double") s << value; @@ -470,142 +470,142 @@ void dcop_add (QDataStream& s, double value, const QCString& type_) s << (float)value; } -void dcop_add (QDataStream& s, QString value) +void dcop_add (TQDataStream& s, TQString value) { s << value; } -void dcop_add (QDataStream& s, QStringList value) +void dcop_add (TQDataStream& s, TQStringList value) { s << value; } -void dcop_add (QDataStream& s, QCString value) +void dcop_add (TQDataStream& s, TQCString value) { s << value; } -void dcop_add (QDataStream& s, KURL value) +void dcop_add (TQDataStream& s, KURL value) { s << value; } -void dcop_add (QDataStream& s, KURL::List value) +void dcop_add (TQDataStream& s, KURL::List value) { s << value; } -void dcop_add (QDataStream& s, QSize value) +void dcop_add (TQDataStream& s, TQSize value) { s << value; } -void dcop_add (QDataStream& s, QRect value) +void dcop_add (TQDataStream& s, TQRect value) { s << value; } -void dcop_add (QDataStream& s, QRegion value) +void dcop_add (TQDataStream& s, TQRegion value) { s << value; } -void dcop_add (QDataStream& s, QPoint value) +void dcop_add (TQDataStream& s, TQPoint value) { s << value; } -void dcop_add (QDataStream& s, QFont value) +void dcop_add (TQDataStream& s, TQFont value) { s << value; } -void dcop_add (QDataStream& s, QCursor value) +void dcop_add (TQDataStream& s, TQCursor value) { s << value; } -void dcop_add (QDataStream& s, QPixmap value) +void dcop_add (TQDataStream& s, TQPixmap value) { s << value; } -void dcop_add (QDataStream& s, QColor value) +void dcop_add (TQDataStream& s, TQColor value) { s << value; } -void dcop_add (QDataStream& s, QColorGroup value) +void dcop_add (TQDataStream& s, TQColorGroup value) { s << value; } -void dcop_add (QDataStream& s, QPalette value) +void dcop_add (TQDataStream& s, TQPalette value) { s << value; } -void dcop_add (QDataStream& s, QBrush value) +void dcop_add (TQDataStream& s, TQBrush value) { s << value; } -void dcop_add (QDataStream& s, QWidget::FocusPolicy value) +void dcop_add (TQDataStream& s, TQWidget::FocusPolicy value) { s << value; } -void dcop_add (QDataStream& s, DCOPRef value) +void dcop_add (TQDataStream& s, DCOPRef value) { s << value; } -void dcop_add (QDataStream& s, QVariant value) +void dcop_add (TQDataStream& s, TQVariant value) { s << value; } -void dcop_add (QDataStream& s, QDate value) +void dcop_add (TQDataStream& s, TQDate value) { s << value; } -void dcop_add (QDataStream& s, QTime value) +void dcop_add (TQDataStream& s, TQTime value) { s << value; } -void dcop_add (QDataStream& s, QDateTime value) +void dcop_add (TQDataStream& s, TQDateTime value) { s << value; } -void dcop_add (QDataStream& s, QImage value) +void dcop_add (TQDataStream& s, TQImage value) { s << value; } -void dcop_add (QDataStream& s, QKeySequence value) +void dcop_add (TQDataStream& s, TQKeySequence value) { s << value; } -void dcop_add (QDataStream& s, QPen value) +void dcop_add (TQDataStream& s, TQPen value) { s << value; } -void dcop_add (QDataStream& s, QPicture value) +void dcop_add (TQDataStream& s, TQPicture value) { s << value; } -void dcop_add (QDataStream& s, QPointArray value) +void dcop_add (TQDataStream& s, TQPointArray value) { s << value; } -void dcop_add (QDataStream& s, QByteArray value) +void dcop_add (TQDataStream& s, TQByteArray value) { s << value; } @@ -613,12 +613,12 @@ void dcop_add (QDataStream& s, QByteArray value) %End -%MappedType QMap<QCString,DCOPRef> -//converts a Python dict of QCString:DCOPRef +%MappedType TQMap<TQCString,DCOPRef> +//converts a Python dict of TQCString:DCOPRef { %TypeHeaderCode #include <qmap.h> -//typedef QMap<QCString,DCOPRef> DCOPRefMap; +//typedef TQMap<TQCString,DCOPRef> DCOPRefMap; %End %ConvertFromTypeCode @@ -636,16 +636,16 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QCString,DCOPRef> cppmap = *sipCpp; - QMap<QCString,DCOPRef>::ConstIterator it; + const TQMap<TQCString,DCOPRef> cppmap = *sipCpp; + TQMap<TQCString,DCOPRef>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QCString acpp = it.key (); + TQCString acpp = it.key (); DCOPRef bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QCString(acpp), sipType_QCString, NULL)) == NULL) + if (((ainst = sipConvertFromNewType(new TQCString(acpp), sipType_QCString, NULL)) == NULL) || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -661,23 +661,23 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QCString,DCOPRef> *cppmap = new QMap<QCString,DCOPRef>; + TQMap<TQCString,DCOPRef> *cppmap = new TQMap<TQCString,DCOPRef>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QCString *acpp; + TQCString *acpp; DCOPRef *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0; - acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + acpp = (TQCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) @@ -696,12 +696,12 @@ void dcop_add (QDataStream& s, QByteArray value) %End }; -%MappedType QMap<QString,DCOPRef> -//converts a Python dict of QString:DCOPRef +%MappedType TQMap<TQString,DCOPRef> +//converts a Python dict of TQString:DCOPRef { %TypeHeaderCode #include <qmap.h> -//typedef QMap<QString,DCOPRef> DCOPRefMap; +//typedef TQMap<TQString,DCOPRef> DCOPRefMap; %End %ConvertFromTypeCode @@ -719,16 +719,16 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QString,DCOPRef> cppmap = *sipCpp; - QMap<QString,DCOPRef>::ConstIterator it; + const TQMap<TQString,DCOPRef> cppmap = *sipCpp; + TQMap<TQString,DCOPRef>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); + TQString acpp = it.key (); DCOPRef bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -744,23 +744,23 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,DCOPRef> *cppmap = new QMap<QString,DCOPRef>; + TQMap<TQString,DCOPRef> *cppmap = new TQMap<TQString,DCOPRef>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; + TQString *acpp; DCOPRef *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) @@ -785,11 +785,11 @@ void dcop_add (QDataStream& s, QByteArray value) }; -//%MappedType QMap<QString,QString> is available in tdecore/kconfig.sip +//%MappedType TQMap<TQString,TQString> is available in tdecore/kconfig.sip -%MappedType QMap<QString,QByteArray> -//converts a Python dict of QString:QByteArray +%MappedType TQMap<TQString,TQByteArray> +//converts a Python dict of TQString:TQByteArray { %TypeHeaderCode #include <qmap.h> @@ -810,17 +810,17 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QString,QByteArray> cppmap = *sipCpp; - QMap<QString,QByteArray>::ConstIterator it; + const TQMap<TQString,TQByteArray> cppmap = *sipCpp; + TQMap<TQString,TQByteArray>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); - QByteArray bcpp = it.data (); + TQString acpp = it.key (); + TQByteArray bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -835,24 +835,24 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap<QString,QByteArray> on the heap. + // Convert a Python dictionary to a TQMap<TQString,TQByteArray> on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,QByteArray> *cppmap = new QMap<QString,QByteArray>; + TQMap<TQString,TQByteArray> *cppmap = new TQMap<TQString,TQByteArray>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QByteArray *bcpp; + TQString *acpp; + TQByteArray *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state, bcpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); if (iserr) { @@ -878,7 +878,7 @@ void dcop_add (QDataStream& s, QByteArray value) -%MappedType QValueList<DCOPRef> +%MappedType TQValueList<DCOPRef> //converts a Python list of DCOPRef { %TypeHeaderCode @@ -894,11 +894,11 @@ void dcop_add (QDataStream& s, QByteArray value) if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<DCOPRef> *cpplist = (QValueList<DCOPRef> *)sipCpp; + TQValueList<DCOPRef> *cpplist = (TQValueList<DCOPRef> *)sipCpp; PyObject *inst; // Get it. - QValueList<DCOPRef>::Iterator it; + TQValueList<DCOPRef>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new DCOPRef(*it), sipType_DCOPRef, NULL)) == NULL) @@ -917,7 +917,7 @@ void dcop_add (QDataStream& s, QByteArray value) if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<DCOPRef> *cpplist = new QValueList<DCOPRef>; + TQValueList<DCOPRef> *cpplist = new TQValueList<DCOPRef>; PyObject *elem; DCOPRef *cpp; |