diff options
Diffstat (limited to 'dcoppython/shell/pcop.cpp')
-rw-r--r-- | dcoppython/shell/pcop.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/dcoppython/shell/pcop.cpp b/dcoppython/shell/pcop.cpp index ea2d53ba..88e26cc1 100644 --- a/dcoppython/shell/pcop.cpp +++ b/dcoppython/shell/pcop.cpp @@ -165,8 +165,8 @@ namespace PythonDCOP { return ok; } - TQCStringList PCOPObject::functions() { - TQCStringList funcs = DCOPObject::functions(); + QCStringList PCOPObject::functions() { + QCStringList funcs = DCOPObject::functions(); for(TQAsciiDictIterator<PCOPMethod> it(m_methods); it.current(); ++it) { PCOPMethod *meth = it.current(); @@ -385,11 +385,11 @@ namespace PythonDCOP { return ((PCOPMethod*)this)->m_params.at( i ); } - PCOPClass::PCOPClass( const TQCStringList& methods ) + PCOPClass::PCOPClass( const QCStringList& methods ) { m_methods.setAutoDelete( true ); - TQCStringList::ConstIterator it = methods.begin(); + QCStringList::ConstIterator it = methods.begin(); for( ; it != methods.end(); ++it ) { PCOPMethod* m = new PCOPMethod( *it ); @@ -511,14 +511,14 @@ namespace PythonDCOP { // Determine which functions are available. // bool ok = false; - TQCStringList funcs = dcop->remoteFunctions( appname, objname, &ok ); + QCStringList funcs = dcop->remoteFunctions( appname, objname, &ok ); if ( !ok ) { PyErr_SetString( PyExc_RuntimeError, "Object is not accessible." ); return NULL; } - // for ( TQCStringList::Iterator it = funcs.begin(); it != funcs.end(); ++it ) { + // for ( QCStringList::Iterator it = funcs.begin(); it != funcs.end(); ++it ) { // qDebug( "%s", (*it).data() ); // } @@ -585,12 +585,12 @@ namespace PythonDCOP { PyObject* application_list( PyObject */*self*/, PyObject */*args*/ ) { - TQCStringList apps = Client::instance()->dcop()->registeredApplications(); + QCStringList apps = Client::instance()->dcop()->registeredApplications(); PyObject *l = PyList_New( apps.count() ); - TQCStringList::ConstIterator it = apps.begin(); - TQCStringList::ConstIterator end = apps.end(); + QCStringList::ConstIterator it = apps.begin(); + QCStringList::ConstIterator end = apps.end(); unsigned int i = 0; for (; it != end; ++it, i++ ) PyList_SetItem( l, i, PyString_FromString( (*it).data() ) ); @@ -601,7 +601,7 @@ namespace PythonDCOP { PyObject *object_list( PyObject */*self*/, PyObject *args) { const char *app; if (PyArg_ParseTuple(args, (char*)"s", &app)) { - TQCStringList objects = Client::instance()->dcop()->remoteObjects(TQCString(app)); + QCStringList objects = Client::instance()->dcop()->remoteObjects(TQCString(app)); return make_py_list(objects); } return NULL; @@ -610,7 +610,7 @@ namespace PythonDCOP { PyObject *method_list( PyObject */*self*/, PyObject *args) { const char *app, *obj; if (PyArg_ParseTuple(args, (char*)"ss", &app, &obj)) { - TQCStringList methods = Client::instance()->dcop()->remoteFunctions(TQCString(app), TQCString(obj) ); + QCStringList methods = Client::instance()->dcop()->remoteFunctions(TQCString(app), TQCString(obj) ); return make_py_list(methods); } return NULL; @@ -730,10 +730,10 @@ namespace PythonDCOP { // helpers - PyObject *make_py_list( const TQCStringList &qt_list) { + PyObject *make_py_list( const QCStringList &qt_list) { PyObject *l = PyList_New(qt_list.count()); uint c=0; - for(TQCStringList::ConstIterator it = qt_list.begin(); + for(QCStringList::ConstIterator it = qt_list.begin(); it!=qt_list.end(); ++it,c++) PyList_SetItem(l, c, PyString_FromString( (*it).data() ) ); |