summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/pcop.h
diff options
context:
space:
mode:
Diffstat (limited to 'dcoppython/shell/pcop.h')
-rw-r--r--dcoppython/shell/pcop.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/dcoppython/shell/pcop.h b/dcoppython/shell/pcop.h
index ecfe0f65..c9728e37 100644
--- a/dcoppython/shell/pcop.h
+++ b/dcoppython/shell/pcop.h
@@ -13,9 +13,9 @@
#include <Python.h>
-#include <qcstring.h>
-#include <qlist.h>
-#include <qasciidict.h>
+#include <tqcstring.h>
+#include <tqlist.h>
+#include <tqasciidict.h>
#include <dcopclient.h>
#include <dcopobject.h>
@@ -58,7 +58,7 @@ namespace PythonDCOP {
DCOPClient *m_dcop;
// ImportedModules *m_module;
static Client *s_instance;
- QApplication *m_qapp;
+ TQApplication *m_qapp;
};
/**
@@ -85,7 +85,7 @@ namespace PythonDCOP {
* Process method fun, whose arguments are marshalled in data.
* Set replyType to be the reply type and marshall the reply data into replyData.
*/
- virtual bool process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData);
+ virtual bool process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData);
/**
* Return list of supported functions (methods).
@@ -97,7 +97,7 @@ namespace PythonDCOP {
* The key of the QT dictionary is the method signature; the data in
* the dictionary is a pointer to the python method to which it corresponds.
*/
- virtual bool setMethodList(QAsciiDict<PyObject> meth_list);
+ virtual bool setMethodList(TQAsciiDict<PyObject> meth_list);
/**
* Returns the current list of methods, as set by setMethodList.
@@ -108,10 +108,10 @@ namespace PythonDCOP {
* Matches an 'incoming' method signature (fun) and returns a PCOPMethod pointer,
* or NULL if none match.
*/
- PCOPMethod *matchMethod(const QCString &fun);
+ PCOPMethod *matchMethod(const TQCString &fun);
private:
- virtual bool py_process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData);
+ virtual bool py_process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData);
/**
* The Python object holding this CObject.
@@ -121,7 +121,7 @@ namespace PythonDCOP {
/**
* The list of methods this object supports.
*/
- QAsciiDict<PCOPMethod> m_methods;
+ TQAsciiDict<PCOPMethod> m_methods;
};
@@ -131,23 +131,23 @@ namespace PythonDCOP {
class PCOPType
{
public:
- PCOPType( const QCString& dcop_representation);
+ PCOPType( const TQCString& dcop_representation);
~PCOPType();
- QCString signature() const;
+ TQCString signature() const;
- PyObject* demarshal( QDataStream& str ) const;
- bool marshal( PyObject* obj, QDataStream& str ) const;
+ PyObject* demarshal( TQDataStream& str ) const;
+ bool marshal( PyObject* obj, TQDataStream& str ) const;
// checks if the given PyObject can be marshalled as this PCOPType
bool isMarshallable( PyObject *obj ) const;
- const QCString &type() const { return m_type; }
+ const TQCString &type() const { return m_type; }
const PCOPType *leftType() const { return m_leftType; }
const PCOPType *rightType() const { return m_rightType; }
// TODO: make these private
- QCString m_type;
+ TQCString m_type;
PCOPType* m_leftType;
PCOPType* m_rightType;
@@ -159,23 +159,23 @@ namespace PythonDCOP {
class PCOPMethod
{
public:
- PCOPMethod( const QCString& dcop_signature );
+ PCOPMethod( const TQCString& dcop_signature );
~PCOPMethod();
int paramCount() const;
-// QCString signature() const;
-// QCString name() const;
+// TQCString signature() const;
+// TQCString name() const;
PCOPType* param( int );
const PCOPType* param( int ) const;
bool setPythonMethod(PyObject *py_method);
PyObject *pythonMethod() const { return m_py_method; }
- const QCString &signature() const { return m_signature; }
- const QCString &name() const { return m_name; }
+ const TQCString &signature() const { return m_signature; }
+ const TQCString &name() const { return m_name; }
const PCOPType *type() const { return m_type; }
- QCString m_signature;
- QCString m_name;
+ TQCString m_signature;
+ TQCString m_name;
PCOPType* m_type;
QList<PCOPType> m_params;
private:
@@ -191,10 +191,10 @@ namespace PythonDCOP {
PCOPClass( const QCStringList& dcop_style_methods);
~PCOPClass();
- const PCOPMethod* method( const QCString &name, PyObject *argTuple = 0 );
+ const PCOPMethod* method( const TQCString &name, PyObject *argTuple = 0 );
QCStringList m_ifaces;
- QAsciiDict<PCOPMethod> m_methods;
+ TQAsciiDict<PCOPMethod> m_methods;
};
}