summaryrefslogtreecommitdiffstats
path: root/kmail/kmkernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmkernel.cpp')
-rw-r--r--kmail/kmkernel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp
index aa01c9683..6f18a36b1 100644
--- a/kmail/kmkernel.cpp
+++ b/kmail/kmkernel.cpp
@@ -170,6 +170,7 @@ KMKernel::KMKernel (TQObject *parent, const char *name) :
connectDCOPSignal( 0, 0, "kmailSelectFolder(TQString)",
"selectFolder(TQString)", false );
+#ifdef __TDE_HAVE_TDEHWLIB
mNetworkManager = TDEGlobal::networkManager();
if (mNetworkManager) {
connect( mNetworkManager, TQT_SIGNAL( networkDeviceStateChanged( TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString ) ),
@@ -181,6 +182,7 @@ KMKernel::KMKernel (TQObject *parent, const char *name) :
stopNetworkJobs();
}
}
+#endif
}
KMKernel::~KMKernel ()
@@ -2470,6 +2472,7 @@ int KMKernel::timeOfLastMessageCountChange() const
bool KMKernel::networkStateConnected()
{
+#ifdef __TDE_HAVE_TDEHWLIB
if (mNetworkManager) {
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags networkStatus = mNetworkManager->backendStatus();
if ((networkStatus & TDENetworkGlobalManagerFlags::Connected)
@@ -2488,6 +2491,8 @@ bool KMKernel::networkStateConnected()
// Assume connected
return true;
}
+#endif
+ return true;
}
void KMKernel::slotNetworkStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString)