summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/marshaller.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /dcoppython/shell/marshaller.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'dcoppython/shell/marshaller.cpp')
-rw-r--r--dcoppython/shell/marshaller.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/dcoppython/shell/marshaller.cpp b/dcoppython/shell/marshaller.cpp
index 1aaebc38..ff9843d4 100644
--- a/dcoppython/shell/marshaller.cpp
+++ b/dcoppython/shell/marshaller.cpp
@@ -43,18 +43,18 @@ namespace PythonDCOP {
bool Marshaller::marsh_private(const PCOPType &type,
PyObject *obj,
- TQDataStream *str) const
+ TTQDataStream *str) const
{
- TQString ty = type.type();
+ TTQString ty = type.type();
- if (ty=="TQStringList")
- return marshalList(PCOPType("TQString"), obj, str);
- if (ty=="QCStringList")
- return marshalList(PCOPType("TQCString"), obj, str);
- if (ty=="TQValueList" && type.leftType())
+ if (ty=="TTQStringList")
+ return marshalList(PCOPType("TTQString"), obj, str);
+ if (ty=="TQCStringList")
+ return marshalList(PCOPType("TTQCString"), obj, str);
+ if (ty=="TTQValueList" && type.leftType())
return marshalList(*type.leftType(), obj, str);
- if (ty=="TQMap" && type.leftType() && type.rightType())
+ if (ty=="TTQMap" && type.leftType() && type.rightType())
return marshalDict(*type.leftType(), *type.rightType(), obj, str);
if (!m_marsh_funcs.contains(ty)) return false;
@@ -62,17 +62,17 @@ namespace PythonDCOP {
}
PyObject *Marshaller::demarsh_private(const PCOPType &type,
- TQDataStream *str) const
+ TTQDataStream *str) const
{
- TQString ty = type.type();
+ TTQString ty = type.type();
- if (ty=="TQStringList")
- return demarshalList(PCOPType("TQString"), str);
- if (ty=="QCStringList")
- return demarshalList(PCOPType("TQCString"), str);
- if (ty=="TQValueList" && type.leftType())
+ if (ty=="TTQStringList")
+ return demarshalList(PCOPType("TTQString"), str);
+ if (ty=="TQCStringList")
+ return demarshalList(PCOPType("TTQCString"), str);
+ if (ty=="TTQValueList" && type.leftType())
return demarshalList(*type.leftType(), str);
- if (ty=="TQMap" && type.leftType() && type.rightType())
+ if (ty=="TTQMap" && type.leftType() && type.rightType())
return demarshalDict(*type.leftType(), *type.rightType(), str);
if (!m_demarsh_funcs.contains(ty)) {
@@ -91,7 +91,7 @@ namespace PythonDCOP {
bool Marshaller::marshalList(const PCOPType &list_type,
PyObject *obj,
- TQDataStream *str) const {
+ TTQDataStream *str) const {
if (!PyList_Check(obj)) return false;
int count = PyList_Size(obj);
@@ -110,7 +110,7 @@ namespace PythonDCOP {
}
PyObject *Marshaller::demarshalList(const PCOPType &list_type,
- TQDataStream *str) const {
+ TTQDataStream *str) const {
Q_UINT32 count;
(*str) >> count;
@@ -124,7 +124,7 @@ namespace PythonDCOP {
bool Marshaller::marshalDict(const PCOPType &key_type,
const PCOPType &value_type,
PyObject *obj,
- TQDataStream *str) const {
+ TTQDataStream *str) const {
if (!PyDict_Check(obj)) return false;
@@ -149,7 +149,7 @@ namespace PythonDCOP {
PyObject *Marshaller::demarshalDict(const PCOPType &key_type,
const PCOPType &value_type,
- TQDataStream *str) const {
+ TTQDataStream *str) const {
PyObject *obj = PyDict_New();
Q_INT32 count;
(*str) >> count;