|
|
@ -170,6 +170,7 @@ KMKernel::KMKernel (TQObject *parent, const char *name) :
|
|
|
|
connectDCOPSignal( 0, 0, "kmailSelectFolder(TQString)",
|
|
|
|
connectDCOPSignal( 0, 0, "kmailSelectFolder(TQString)",
|
|
|
|
"selectFolder(TQString)", false );
|
|
|
|
"selectFolder(TQString)", false );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
mNetworkManager = TDEGlobal::networkManager();
|
|
|
|
mNetworkManager = TDEGlobal::networkManager();
|
|
|
|
if (mNetworkManager) {
|
|
|
|
if (mNetworkManager) {
|
|
|
|
connect( mNetworkManager, TQT_SIGNAL( networkDeviceStateChanged( TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString ) ),
|
|
|
|
connect( mNetworkManager, TQT_SIGNAL( networkDeviceStateChanged( TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString ) ),
|
|
|
@ -181,6 +182,7 @@ KMKernel::KMKernel (TQObject *parent, const char *name) :
|
|
|
|
stopNetworkJobs();
|
|
|
|
stopNetworkJobs();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KMKernel::~KMKernel ()
|
|
|
|
KMKernel::~KMKernel ()
|
|
|
@ -2470,6 +2472,7 @@ int KMKernel::timeOfLastMessageCountChange() const
|
|
|
|
|
|
|
|
|
|
|
|
bool KMKernel::networkStateConnected()
|
|
|
|
bool KMKernel::networkStateConnected()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
if (mNetworkManager) {
|
|
|
|
if (mNetworkManager) {
|
|
|
|
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags networkStatus = mNetworkManager->backendStatus();
|
|
|
|
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags networkStatus = mNetworkManager->backendStatus();
|
|
|
|
if ((networkStatus & TDENetworkGlobalManagerFlags::Connected)
|
|
|
|
if ((networkStatus & TDENetworkGlobalManagerFlags::Connected)
|
|
|
@ -2488,6 +2491,8 @@ bool KMKernel::networkStateConnected()
|
|
|
|
// Assume connected
|
|
|
|
// Assume connected
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KMKernel::slotNetworkStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString)
|
|
|
|
void KMKernel::slotNetworkStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString)
|
|
|
|