summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/marshaller.h
diff options
context:
space:
mode:
Diffstat (limited to 'dcoppython/shell/marshaller.h')
-rw-r--r--dcoppython/shell/marshaller.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/dcoppython/shell/marshaller.h b/dcoppython/shell/marshaller.h
index 920afb05..0e678f7f 100644
--- a/dcoppython/shell/marshaller.h
+++ b/dcoppython/shell/marshaller.h
@@ -11,9 +11,9 @@
#ifndef __marshaller_h__
#define __marshaller_h__
-#include <qmap.h>
+#include <tqmap.h>
#include <Python.h>
-#include <qstring.h>
+#include <tqstring.h>
class QDataStream;
@@ -25,23 +25,23 @@ namespace PythonDCOP {
public:
Marshaller();
~Marshaller();
- bool marshal(const PCOPType &type, PyObject *obj, QDataStream &str) const
+ bool marshal(const PCOPType &type, PyObject *obj, TQDataStream &str) const
{ return marsh_private(type,obj,&str); }
bool canMarshal(const PCOPType &type, PyObject *obj) const
{ return marsh_private(type,obj,NULL); }
- bool marshalList(const PCOPType &list_type, PyObject *obj, QDataStream *str) const;
- PyObject *demarshal(const PCOPType &type, QDataStream &str) const
+ bool marshalList(const PCOPType &list_type, PyObject *obj, TQDataStream *str) const;
+ PyObject *demarshal(const PCOPType &type, TQDataStream &str) const
{ return demarsh_private(type, &str); }
- PyObject *demarshalList(const PCOPType &list_type, QDataStream *str) const;
+ PyObject *demarshalList(const PCOPType &list_type, TQDataStream *str) const;
bool marshalDict(const PCOPType &key_type, const PCOPType &value_type,
- PyObject *obj, QDataStream *str) const;
+ PyObject *obj, TQDataStream *str) const;
PyObject *demarshalDict(const PCOPType &key_type,
const PCOPType &value_type,
- QDataStream *str) const;
+ TQDataStream *str) const;
static Marshaller *instance() { return m_instance; }
protected:
- QMap<QString,bool(*)(PyObject*,QDataStream*)> m_marsh_funcs;
- QMap<QString,PyObject*(*)(QDataStream*)> m_demarsh_funcs;
+ TQMap<TQString,bool(*)(PyObject*,TQDataStream*)> m_marsh_funcs;
+ TQMap<TQString,PyObject*(*)(TQDataStream*)> m_demarsh_funcs;
static Marshaller *m_instance;
@@ -49,21 +49,21 @@ namespace PythonDCOP {
private:
bool marsh_private(const PCOPType &type,
PyObject *obj,
- QDataStream *str) const;
+ TQDataStream *str) const;
PyObject *demarsh_private(const PCOPType &type,
- QDataStream *str) const;
+ TQDataStream *str) const;
};
-// bool marshall_bool(PyObject *obj, QDataStream *str);
-// bool marshall_int(PyObject *obj, QDataStream *str);
-// bool marshall_uint(PyObject *obj, QDataStream *str);
-// bool marshall_double(PyObject *obj, QDataStream *str);
-// bool marshall_QByteArray(PyObject *obj, QDataStream *str);
-// bool marshall_QString(PyObject *obj, QDataStream *str);
-// bool marshall_QCString(PyObject *obj, QDataStream *str);
+// bool marshall_bool(PyObject *obj, TQDataStream *str);
+// bool marshall_int(PyObject *obj, TQDataStream *str);
+// bool marshall_uint(PyObject *obj, TQDataStream *str);
+// bool marshall_double(PyObject *obj, TQDataStream *str);
+// bool marshall_QByteArray(PyObject *obj, TQDataStream *str);
+// bool marshall_QString(PyObject *obj, TQDataStream *str);
+// bool marshall_QCString(PyObject *obj, TQDataStream *str);
}