diff options
Diffstat (limited to 'networkstatus/networkstatus.cpp')
-rw-r--r-- | networkstatus/networkstatus.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/networkstatus/networkstatus.cpp b/networkstatus/networkstatus.cpp index 900ac77f5..092f2b392 100644 --- a/networkstatus/networkstatus.cpp +++ b/networkstatus/networkstatus.cpp @@ -21,9 +21,9 @@ #include "networkstatus.h" -#include <qdict.h> -#include <qtimer.h> -#include <qvaluelist.h> +#include <tqdict.h> +#include <tqtimer.h> +#include <tqvaluelist.h> #include <dcopclient.h> #include <kapplication.h> @@ -35,7 +35,7 @@ #include <kdepimmacros.h> extern "C" { - KDE_EXPORT KDEDModule* create_networkstatus( const QCString& obj ) + KDE_EXPORT KDEDModule* create_networkstatus( const TQCString& obj ) { return new NetworkStatusModule( obj ); } @@ -43,8 +43,8 @@ extern "C" { // INTERNALLY USED STRUCTS AND TYPEDEFS -//typedef QDict< Network > NetworkList; -typedef QValueList< Network * > NetworkList; +//typedef TQDict< Network > NetworkList; +typedef TQValueList< Network * > NetworkList; class NetworkStatusModule::Private { @@ -56,13 +56,13 @@ public: // CTORS/DTORS -NetworkStatusModule::NetworkStatusModule( const QCString & obj ) : KDEDModule( obj ) +NetworkStatusModule::NetworkStatusModule( const TQCString & obj ) : KDEDModule( obj ) { d = new Private; /* d->clientIface = new ClientIfaceImpl( this ); d->serviceIface = new ServiceIfaceImpl( this );*/ - connect( kapp->dcopClient(), SIGNAL( applicationRemoved( const QCString& ) ) , this, SLOT( unregisteredFromDCOP( const QCString& ) ) ); - connect( kapp->dcopClient(), SIGNAL( applicationRegistered( const QCString& ) ) , this, SLOT( registeredToDCOP( const QCString& ) ) ); + connect( kapp->dcopClient(), TQT_SIGNAL( applicationRemoved( const TQCString& ) ) , this, TQT_SLOT( unregisteredFromDCOP( const TQCString& ) ) ); + connect( kapp->dcopClient(), TQT_SIGNAL( applicationRegistered( const TQCString& ) ) , this, TQT_SLOT( registeredToDCOP( const TQCString& ) ) ); } NetworkStatusModule::~NetworkStatusModule() @@ -74,10 +74,10 @@ NetworkStatusModule::~NetworkStatusModule() // CLIENT INTERFACE -QStringList NetworkStatusModule::networks() +TQStringList NetworkStatusModule::networks() { kdDebug() << k_funcinfo << " contains " << d->networks.count() << " networks" << endl; - QStringList networks; + TQStringList networks; NetworkList::iterator end = d->networks.end(); NetworkList::iterator it = d->networks.begin(); for ( ; it != end; ++it ) @@ -85,7 +85,7 @@ QStringList NetworkStatusModule::networks() return networks; } -int NetworkStatusModule::status( const QString & host ) +int NetworkStatusModule::status( const TQString & host ) { if ( host == "127.0.0.1" || host == "localhost" ) return NetworkStatus::Online; @@ -102,7 +102,7 @@ int NetworkStatusModule::status( const QString & host ) } } -int NetworkStatusModule::request( const QString & host, bool userInitiated ) +int NetworkStatusModule::request( const TQString & host, bool userInitiated ) { // identify most suitable network for host Network * p = networkForHost( host ); @@ -110,7 +110,7 @@ int NetworkStatusModule::request( const QString & host, bool userInitiated ) return NetworkStatus::Unavailable; NetworkStatus::EnumStatus status = p->status(); - QCString appId = kapp->dcopClient()->senderId(); + TQCString appId = kapp->dcopClient()->senderId(); if ( status == NetworkStatus::Online ) { p->registerUsage( appId, host ); @@ -157,9 +157,9 @@ int NetworkStatusModule::request( const QString & host, bool userInitiated ) // return Unavailable } -void NetworkStatusModule::relinquish( const QString & host ) +void NetworkStatusModule::relinquish( const TQString & host ) { - QCString appId = kapp->dcopClient()->senderId(); + TQCString appId = kapp->dcopClient()->senderId(); // find network currently used by app for host... NetworkList::iterator end = d->networks.end(); NetworkList::iterator it = d->networks.begin(); @@ -183,7 +183,7 @@ void NetworkStatusModule::relinquish( const QString & host ) } } -bool NetworkStatusModule::reportFailure( const QString & host ) +bool NetworkStatusModule::reportFailure( const TQString & host ) { // find network for host // check IP record. remove IP usage record. if other IP exists, return true. @@ -196,7 +196,7 @@ bool NetworkStatusModule::reportFailure( const QString & host ) /* * Determine the network to use for the supplied host */ -Network * NetworkStatusModule::networkForHost( const QString & host ) const +Network * NetworkStatusModule::networkForHost( const TQString & host ) const { // return a null pointer if no networks are registered if ( d->networks.isEmpty() ) @@ -216,11 +216,11 @@ Network * NetworkStatusModule::networkForHost( const QString & host ) const } -void NetworkStatusModule::registeredToDCOP( const QCString & appId ) +void NetworkStatusModule::registeredToDCOP( const TQCString & appId ) { } -void NetworkStatusModule::unregisteredFromDCOP( const QCString & appId ) +void NetworkStatusModule::unregisteredFromDCOP( const TQCString & appId ) { // unregister any networks owned by a service that has just unregistered NetworkList::iterator it = d->networks.begin(); @@ -237,7 +237,7 @@ void NetworkStatusModule::unregisteredFromDCOP( const QCString & appId ) } // SERVICE INTERFACE // -void NetworkStatusModule::setNetworkStatus( const QString & networkName, int st ) +void NetworkStatusModule::setNetworkStatus( const TQString & networkName, int st ) { kdDebug() << k_funcinfo << endl; NetworkStatus::EnumStatus status = (NetworkStatus::EnumStatus)st; @@ -263,7 +263,7 @@ void NetworkStatusModule::setNetworkStatus( const QString & networkName, int st // notify for each host in use on that network NetworkUsageList usage = net->usage(); NetworkUsageList::iterator end = usage.end(); - QStringList notified; + TQStringList notified; for ( NetworkUsageList::iterator it = usage.begin(); it != end; ++it ) { // only notify once per host @@ -284,7 +284,7 @@ void NetworkStatusModule::setNetworkStatus( const QString & networkName, int st kdDebug() << k_funcinfo << "No network found by this name" << endl; } -void NetworkStatusModule::registerNetwork( const QString & networkName, const NetworkStatus::Properties properties ) +void NetworkStatusModule::registerNetwork( const TQString & networkName, const NetworkStatus::Properties properties ) { kdDebug() << k_funcinfo << "registering '" << networkName << "', with status " << properties.status << endl; // TODO: check for re-registration, checking appid matches @@ -292,13 +292,13 @@ void NetworkStatusModule::registerNetwork( const QString & networkName, const Ne d->networks.append( new Network( networkName, properties ) ); } -void NetworkStatusModule::unregisterNetwork( const QString & networkName ) +void NetworkStatusModule::unregisterNetwork( const TQString & networkName ) { // TODO: check appid //d->networks.remove( networkName ); } -void NetworkStatusModule::requestShutdown( const QString & networkName ) +void NetworkStatusModule::requestShutdown( const TQString & networkName ) { Q_UNUSED( networkName ); kdDebug() << k_funcinfo << "NOT IMPLEMENTED" << endl; |