summaryrefslogtreecommitdiffstats
path: root/kontact/interfaces/uniqueapphandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/interfaces/uniqueapphandler.cpp')
-rw-r--r--kontact/interfaces/uniqueapphandler.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kontact/interfaces/uniqueapphandler.cpp b/kontact/interfaces/uniqueapphandler.cpp
index de77df7d..34de0180 100644
--- a/kontact/interfaces/uniqueapphandler.cpp
+++ b/kontact/interfaces/uniqueapphandler.cpp
@@ -90,8 +90,8 @@ int UniqueAppHandler::newInstance()
return 0;
}
-bool UniqueAppHandler::process( const QCString &fun, const QByteArray &data,
- QCString& replyType, QByteArray &replyData )
+bool UniqueAppHandler::process( const TQCString &fun, const TQByteArray &data,
+ TQCString& replyType, TQByteArray &replyData )
{
if ( fun == "newInstance()" ) {
replyType = "int";
@@ -100,15 +100,15 @@ bool UniqueAppHandler::process( const QCString &fun, const QByteArray &data,
loadCommandLineOptions(); // implemented by plugin
// This bit is duplicated from KUniqueApplication::processDelayed()
- QDataStream ds( data, IO_ReadOnly );
+ TQDataStream ds( data, IO_ReadOnly );
KCmdLineArgs::loadAppArgs( ds );
if ( !ds.atEnd() ) { // backwards compatibility
- QCString asn_id;
+ TQCString asn_id;
ds >> asn_id;
kapp->setStartupId( asn_id );
}
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << newInstance();
// OK, we're done, reload the initial kontact command line options,
@@ -121,7 +121,7 @@ bool UniqueAppHandler::process( const QCString &fun, const QByteArray &data,
replyType = "bool";
(void)mPlugin->part(); // load the part without bringing it to front
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << true;
} else {
return DCOPObject::process( fun, data, replyType, replyData );
@@ -145,7 +145,7 @@ QCStringList UniqueAppHandler::functions()
}
UniqueAppWatcher::UniqueAppWatcher( UniqueAppHandlerFactoryBase* factory, Plugin* plugin )
- : QObject( plugin ), mFactory( factory ), mPlugin( plugin )
+ : TQObject( plugin ), mFactory( factory ), mPlugin( plugin )
{
// The app is running standalone if 1) that name is known to DCOP
mRunningStandalone = kapp->dcopClient()->isApplicationRegistered( plugin->name() );
@@ -156,8 +156,8 @@ UniqueAppWatcher::UniqueAppWatcher( UniqueAppHandlerFactoryBase* factory, Plugin
if ( mRunningStandalone ) {
kapp->dcopClient()->setNotifications( true );
- connect( kapp->dcopClient(), SIGNAL( applicationRemoved( const QCString& ) ),
- this, SLOT( unregisteredFromDCOP( const QCString& ) ) );
+ connect( kapp->dcopClient(), TQT_SIGNAL( applicationRemoved( const TQCString& ) ),
+ this, TQT_SLOT( unregisteredFromDCOP( const TQCString& ) ) );
} else {
mFactory->createHandler( mPlugin );
}
@@ -171,11 +171,11 @@ UniqueAppWatcher::~UniqueAppWatcher()
delete mFactory;
}
-void UniqueAppWatcher::unregisteredFromDCOP( const QCString& appId )
+void UniqueAppWatcher::unregisteredFromDCOP( const TQCString& appId )
{
if ( appId == mPlugin->name() && mRunningStandalone ) {
- disconnect( kapp->dcopClient(), SIGNAL( applicationRemoved( const QCString& ) ),
- this, SLOT( unregisteredFromDCOP( const QCString& ) ) );
+ disconnect( kapp->dcopClient(), TQT_SIGNAL( applicationRemoved( const TQCString& ) ),
+ this, TQT_SLOT( unregisteredFromDCOP( const TQCString& ) ) );
kdDebug(5601) << k_funcinfo << appId << endl;
mFactory->createHandler( mPlugin );
kapp->dcopClient()->setNotifications( false );