summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/marshaller.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /dcoppython/shell/marshaller.h
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);
}