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.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/dcoppython/shell/pcop.h b/dcoppython/shell/pcop.h
index ee4e3094..35beef1c 100644
--- a/dcoppython/shell/pcop.h
+++ b/dcoppython/shell/pcop.h
@@ -20,7 +20,7 @@
#include <dcopclient.h>
#include <dcopobject.h>
-class TTQDataStream;
+class TQDataStream;
namespace PythonDCOP {
class Client;
@@ -58,7 +58,7 @@ namespace PythonDCOP {
DCOPClient *m_dcop;
// ImportedModules *m_module;
static Client *s_instance;
- TTQApplication *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 TTQCString &fun, const TTQByteArray &data, TTQCString& replyType, TTQByteArray &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(TTQAsciiDict<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 TTQCString &fun);
+ PCOPMethod *matchMethod(const TQCString &fun);
private:
- virtual bool py_process(const TTQCString &fun, const TTQByteArray &data, TTQCString& replyType, TTQByteArray &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.
*/
- TTQAsciiDict<PCOPMethod> m_methods;
+ TQAsciiDict<PCOPMethod> m_methods;
};
@@ -131,23 +131,23 @@ namespace PythonDCOP {
class PCOPType
{
public:
- PCOPType( const TTQCString& dcop_representation);
+ PCOPType( const TQCString& dcop_representation);
~PCOPType();
- TTQCString signature() const;
+ TQCString signature() const;
- PyObject* demarshal( TTQDataStream& str ) const;
- bool marshal( PyObject* obj, TTQDataStream& 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 TTQCString &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
- TTQCString m_type;
+ TQCString m_type;
PCOPType* m_leftType;
PCOPType* m_rightType;
@@ -159,23 +159,23 @@ namespace PythonDCOP {
class PCOPMethod
{
public:
- PCOPMethod( const TTQCString& dcop_signature );
+ PCOPMethod( const TQCString& dcop_signature );
~PCOPMethod();
int paramCount() const;
-// TTQCString signature() const;
-// TTQCString 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 TTQCString &signature() const { return m_signature; }
- const TTQCString &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; }
- TTQCString m_signature;
- TTQCString m_name;
+ TQCString m_signature;
+ TQCString m_name;
PCOPType* m_type;
TQList<PCOPType> m_params;
private:
@@ -191,10 +191,10 @@ namespace PythonDCOP {
PCOPClass( const TQCStringList& dcop_style_methods);
~PCOPClass();
- const PCOPMethod* method( const TTQCString &name, PyObject *argTuple = 0 );
+ const PCOPMethod* method( const TQCString &name, PyObject *argTuple = 0 );
TQCStringList m_ifaces;
- TTQAsciiDict<PCOPMethod> m_methods;
+ TQAsciiDict<PCOPMethod> m_methods;
};
}