summaryrefslogtreecommitdiffstats
path: root/networkstatus/testservice.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /networkstatus/testservice.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'networkstatus/testservice.cpp')
-rw-r--r--networkstatus/testservice.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/networkstatus/testservice.cpp b/networkstatus/testservice.cpp
index 46b19109f..d74f35ba4 100644
--- a/networkstatus/testservice.cpp
+++ b/networkstatus/testservice.cpp
@@ -31,11 +31,11 @@ TestService::TestService() : TQObject(), DCOPObject("ProviderIface")
{
kapp->dcopClient()->registerAs("testservice" );
m_service = new ServiceIface_stub( "kded", "networkstatus" );
- m_status = NetworkStatus::Offline;
- NetworkStatus::Properties nsp;
+ m_status = NetworktqStatus::Offline;
+ NetworktqStatus::Properties nsp;
nsp.internet = true;
nsp.name = "test_net";
- nsp.onDemandPolicy = NetworkStatus::All;
+ nsp.onDemandPolicy = NetworktqStatus::All;
nsp.service = kapp->dcopClient()->appId();
nsp.status = m_status;
m_service->registerNetwork( "test_net", nsp );
@@ -55,39 +55,39 @@ int TestService::status( const TQString & network )
int TestService::establish( const TQString & network )
{
Q_UNUSED( network );
- m_status = NetworkStatus::Establishing;
- m_service->setNetworkStatus( "test_net", (int)m_status );
- m_nextStatus = NetworkStatus::Online;
- TQTimer::singleShot( 5000, this, TQT_SLOT( slotStatusChange() ) );
- return (int)NetworkStatus::RequestAccepted;
+ m_status = NetworktqStatus::Establishing;
+ m_service->setNetworktqStatus( "test_net", (int)m_status );
+ m_nexttqStatus = NetworktqStatus::Online;
+ TQTimer::singleShot( 5000, this, TQT_SLOT( slottqStatusChange() ) );
+ return (int)NetworktqStatus::RequestAccepted;
}
int TestService::shutdown( const TQString & network )
{
Q_UNUSED( network );
- m_status = NetworkStatus::ShuttingDown;
- m_service->setNetworkStatus( "test_net", (int)m_status );
- m_nextStatus = NetworkStatus::Offline;
- TQTimer::singleShot( 5000, this, TQT_SLOT( slotStatusChange() ) );
- return (int)NetworkStatus::RequestAccepted;
+ m_status = NetworktqStatus::ShuttingDown;
+ m_service->setNetworktqStatus( "test_net", (int)m_status );
+ m_nexttqStatus = NetworktqStatus::Offline;
+ TQTimer::singleShot( 5000, this, TQT_SLOT( slottqStatusChange() ) );
+ return (int)NetworktqStatus::RequestAccepted;
}
void TestService::simulateFailure()
{
- m_status = NetworkStatus::OfflineFailed;
- m_service->setNetworkStatus( "test_net", (int)m_status );
+ m_status = NetworktqStatus::OfflineFailed;
+ m_service->setNetworktqStatus( "test_net", (int)m_status );
}
void TestService::simulateDisconnect()
{
- m_status = NetworkStatus::OfflineDisconnected;
- m_service->setNetworkStatus( "test_net", (int)m_status );
+ m_status = NetworktqStatus::OfflineDisconnected;
+ m_service->setNetworktqStatus( "test_net", (int)m_status );
}
-void TestService::slotStatusChange()
+void TestService::slottqStatusChange()
{
- m_status = m_nextStatus;
- m_service->setNetworkStatus( "test_net", (int)m_status );
+ m_status = m_nexttqStatus;
+ m_service->setNetworktqStatus( "test_net", (int)m_status );
}
int main( int argc, char** argv )