summaryrefslogtreecommitdiffstats
path: root/libemailfunctions/networkstatus.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libemailfunctions/networkstatus.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libemailfunctions/networkstatus.cpp')
-rw-r--r--libemailfunctions/networkstatus.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/libemailfunctions/networkstatus.cpp b/libemailfunctions/networkstatus.cpp
index 07ea1e83f..5cdae0e98 100644
--- a/libemailfunctions/networkstatus.cpp
+++ b/libemailfunctions/networkstatus.cpp
@@ -29,58 +29,58 @@
using namespace KPIM;
-static KStaticDeleter<NetworkStatus> networkStatusDeleter;
-NetworkStatus *NetworkStatus::mSelf = 0;
+static KStaticDeleter<NetworktqStatus> networkStatusDeleter;
+NetworktqStatus *NetworktqStatus::mSelf = 0;
-NetworkStatus::NetworkStatus()
- : TQObject( 0, "NetworkStatus" ), DCOPObject( "NetworkStatus" )
+NetworktqStatus::NetworktqStatus()
+ : TQObject( 0, "NetworktqStatus" ), DCOPObject( "NetworktqStatus" )
{
- KConfigGroup group( KGlobal::config(), "NetworkStatus" );
+ KConfigGroup group( KGlobal::config(), "NetworktqStatus" );
if ( group.readBoolEntry( "Online", true ) == true )
- mStatus = Online;
+ mtqStatus = Online;
else
- mStatus = Offline;
+ mtqStatus = Offline;
connectDCOPSignal( 0, 0, "onlineStatusChanged()", "onlineStatusChanged()", false );
}
-NetworkStatus::~NetworkStatus()
+NetworktqStatus::~NetworktqStatus()
{
- KConfigGroup group( KGlobal::config(), "NetworkStatus" );
- group.writeEntry( "Online", mStatus == Online );
+ KConfigGroup group( KGlobal::config(), "NetworktqStatus" );
+ group.writeEntry( "Online", mtqStatus == Online );
}
-void NetworkStatus::seStatus( Status status )
+void NetworktqStatus::setqStatus( tqStatus status )
{
- mStatus = status;
+ mtqStatus = status;
- emit statusChanged( mStatus );
+ emit statusChanged( mtqStatus );
}
-NetworkStatus::Status NetworkStatus::status() const
+NetworktqStatus::tqStatus NetworktqStatus::status() const
{
- return mStatus;
+ return mtqStatus;
}
-void NetworkStatus::onlineStatusChanged()
+void NetworktqStatus::onlineStatusChanged()
{
DCOPRef dcopCall( "kded", "networkstatus" );
- DCOPReply reply = dcopCall.call( "onlineStatus()", true );
+ DCOPReply reply = dcopCall.call( "onlinetqStatus()", true );
if ( reply.isValid() ) {
int status = reply;
if ( status == 3 )
- seStatus( Online );
+ setqStatus( Online );
else {
- if ( mStatus != Offline )
- seStatus( Offline );
+ if ( mtqStatus != Offline )
+ setqStatus( Offline );
}
}
}
-NetworkStatus *NetworkStatus::self()
+NetworktqStatus *NetworktqStatus::self()
{
if ( !mSelf )
- networkStatusDeleter.setObject( mSelf, new NetworkStatus );
+ networkStatusDeleter.setObject( mSelf, new NetworktqStatus );
return mSelf;
}