summaryrefslogtreecommitdiffstats
path: root/dcop/dcop_deadlock_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dcop/dcop_deadlock_test.cpp')
-rw-r--r--dcop/dcop_deadlock_test.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/dcop/dcop_deadlock_test.cpp b/dcop/dcop_deadlock_test.cpp
index d26bc25fb..71e8ba66c 100644
--- a/dcop/dcop_deadlock_test.cpp
+++ b/dcop/dcop_deadlock_test.cpp
@@ -24,32 +24,32 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <dcop_deadlock_test.h>
#include <dcopref.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
-MyDCOPObject::MyDCOPObject(const QCString &name, const QCString &remoteName)
-: QObject(0, name), DCOPObject(name), m_remoteName(remoteName)
+MyDCOPObject::MyDCOPObject(const TQCString &name, const TQCString &remoteName)
+: TQObject(0, name), DCOPObject(name), m_remoteName(remoteName)
{
- connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotTimeout()));
+ connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
}
-bool MyDCOPObject::process(const QCString &fun, const QByteArray &data,
-QCString& replyType, QByteArray &replyData)
+bool MyDCOPObject::process(const TQCString &fun, const TQByteArray &data,
+TQCString& replyType, TQByteArray &replyData)
{
- if (fun == "function(QCString)") {
- QDataStream args( data, IO_ReadOnly );
+ if (fun == "function(TQCString)") {
+ TQDataStream args( data, IO_ReadOnly );
args >> m_remoteName;
struct timeval tv;
gettimeofday(&tv, 0);
qWarning("%s: function('%s') %d:%06d", name(), m_remoteName.data(), tv.tv_sec % 100, tv.tv_usec);
- replyType = "QString";
- QDataStream reply( replyData, IO_WriteOnly );
- reply << QString("Hey");
+ replyType = "TQString";
+ TQDataStream reply( replyData, IO_WriteOnly );
+ reply << TQString("Hey");
m_timer.start(1000, true);
return true;
}
@@ -63,15 +63,15 @@ void MyDCOPObject::slotTimeout()
qWarning("%s: slotTimeout() %d:%06d", name(), tv.tv_sec % 100, tv.tv_usec);
m_timer.start(1000, true);
- QString result;
- DCOPRef(m_remoteName, m_remoteName).call("function", QCString(name())).get(result);
+ TQString result;
+ DCOPRef(m_remoteName, m_remoteName).call("function", TQCString(name())).get(result);
gettimeofday(&tv, 0);
qWarning("%s: Got result '%s' %d:%06d", name(), result.latin1(), tv.tv_sec % 100, tv.tv_usec);
}
int main(int argc, char **argv)
{
- QCString myName = KApplication::dcopClient()->registerAs("testdcop", false);
+ TQCString myName = KApplication::dcopClient()->registerAs("testdcop", false);
KApplication app(argc, argv, "testdcop");
qWarning("%d:I am '%s'", getpid(), app.dcopClient()->appId().data());
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
system("./dcop_deadlock_test testdcop&");
}
- QCString remoteApp;
+ TQCString remoteApp;
if (argc == 2)
{
remoteApp = argv[1];