summaryrefslogtreecommitdiffstats
path: root/networkstatus/testservice.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /networkstatus/testservice.cpp
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 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 d74f35ba4..46b19109f 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 = NetworktqStatus::Offline;
- NetworktqStatus::Properties nsp;
+ m_status = NetworkStatus::Offline;
+ NetworkStatus::Properties nsp;
nsp.internet = true;
nsp.name = "test_net";
- nsp.onDemandPolicy = NetworktqStatus::All;
+ nsp.onDemandPolicy = NetworkStatus::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 = 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;
+ 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;
}
int TestService::shutdown( const TQString & network )
{
Q_UNUSED( network );
- 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;
+ 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;
}
void TestService::simulateFailure()
{
- m_status = NetworktqStatus::OfflineFailed;
- m_service->setNetworktqStatus( "test_net", (int)m_status );
+ m_status = NetworkStatus::OfflineFailed;
+ m_service->setNetworkStatus( "test_net", (int)m_status );
}
void TestService::simulateDisconnect()
{
- m_status = NetworktqStatus::OfflineDisconnected;
- m_service->setNetworktqStatus( "test_net", (int)m_status );
+ m_status = NetworkStatus::OfflineDisconnected;
+ m_service->setNetworkStatus( "test_net", (int)m_status );
}
-void TestService::slottqStatusChange()
+void TestService::slotStatusChange()
{
- m_status = m_nexttqStatus;
- m_service->setNetworktqStatus( "test_net", (int)m_status );
+ m_status = m_nextStatus;
+ m_service->setNetworkStatus( "test_net", (int)m_status );
}
int main( int argc, char** argv )