summaryrefslogtreecommitdiffstats
path: root/libemailfunctions/networkstatus.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
commit0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (patch)
tree4138783f7dad757fc5fbfaa8d66a355288d3125e /libemailfunctions/networkstatus.cpp
parent9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (diff)
downloadtdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.tar.gz
tdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'libemailfunctions/networkstatus.cpp')
-rw-r--r--libemailfunctions/networkstatus.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/libemailfunctions/networkstatus.cpp b/libemailfunctions/networkstatus.cpp
index 100d99227..e5e311f94 100644
--- a/libemailfunctions/networkstatus.cpp
+++ b/libemailfunctions/networkstatus.cpp
@@ -29,58 +29,58 @@
using namespace KPIM;
-static KStaticDeleter<NetworktqStatus> networkStatusDeleter;
-NetworktqStatus *NetworktqStatus::mSelf = 0;
+static KStaticDeleter<NetworkStatus> networkStatusDeleter;
+NetworkStatus *NetworkStatus::mSelf = 0;
-NetworktqStatus::NetworktqStatus()
+NetworkStatus::NetworkStatus()
: TQObject( 0, "NetworkStatus" ), DCOPObject( "NetworkStatus" )
{
KConfigGroup group( KGlobal::config(), "NetworkStatus" );
if ( group.readBoolEntry( "Online", true ) == true )
- mtqStatus = Online;
+ mStatus = Online;
else
- mtqStatus = Offline;
+ mStatus = Offline;
connectDCOPSignal( 0, 0, "onlineStatusChanged()", "onlineStatusChanged()", false );
}
-NetworktqStatus::~NetworktqStatus()
+NetworkStatus::~NetworkStatus()
{
KConfigGroup group( KGlobal::config(), "NetworkStatus" );
- group.writeEntry( "Online", mtqStatus == Online );
+ group.writeEntry( "Online", mStatus == Online );
}
-void NetworktqStatus::setqStatus( tqStatus status )
+void NetworkStatus::seStatus( Status status )
{
- mtqStatus = status;
+ mStatus = status;
- emit statusChanged( mtqStatus );
+ emit statusChanged( mStatus );
}
-NetworktqStatus::tqStatus NetworktqStatus::status() const
+NetworkStatus::Status NetworkStatus::status() const
{
- return mtqStatus;
+ return mStatus;
}
-void NetworktqStatus::onlineStatusChanged()
+void NetworkStatus::onlineStatusChanged()
{
DCOPRef dcopCall( "kded", "networkstatus" );
DCOPReply reply = dcopCall.call( "onlineStatus()", true );
if ( reply.isValid() ) {
int status = reply;
if ( status == 3 )
- setqStatus( Online );
+ seStatus( Online );
else {
- if ( mtqStatus != Offline )
- setqStatus( Offline );
+ if ( mStatus != Offline )
+ seStatus( Offline );
}
}
}
-NetworktqStatus *NetworktqStatus::self()
+NetworkStatus *NetworkStatus::self()
{
if ( !mSelf )
- networkStatusDeleter.setObject( mSelf, new NetworktqStatus );
+ networkStatusDeleter.setObject( mSelf, new NetworkStatus );
return mSelf;
}