summaryrefslogtreecommitdiffstats
path: root/kmail/kmkernel.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-06 00:52:45 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-06 00:52:45 -0500
commit111cc213644c3d3f0f0659b7c61877871c6a5519 (patch)
tree07ad7f8572af6e6f8f8b9c07e32eccba7ce6a3a2 /kmail/kmkernel.h
parentfaf37227f5194237dbda5973c21d05de3633ea03 (diff)
downloadtdepim-111cc213644c3d3f0f0659b7c61877871c6a5519.tar.gz
tdepim-111cc213644c3d3f0f0659b7c61877871c6a5519.zip
Detect if kmail is online or offline and automatically switch modes
This relates to Bug 1525 and Bug 1105
Diffstat (limited to 'kmail/kmkernel.h')
-rw-r--r--kmail/kmkernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kmail/kmkernel.h b/kmail/kmkernel.h
index 993c8a0e9..0dc46441e 100644
--- a/kmail/kmkernel.h
+++ b/kmail/kmkernel.h
@@ -14,6 +14,8 @@
#include <tdeimproxy.h>
#include <tdepimmacros.h>
+#include <tdenetworkconnections.h>
+
#include "kmailIface.h"
#include "kmmsgbase.h"
#include "globalsettings.h"
@@ -434,6 +436,7 @@ public slots:
protected slots:
void slotDataReq(TDEIO::Job*,TQByteArray&);
void slotResult(TDEIO::Job*);
+ void slotNetworkStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus, TDENetworkConnectionStatus::TDENetworkConnectionStatus, TQString);
signals:
void configChanged();
@@ -443,6 +446,7 @@ signals:
private:
void openReader( bool onlyCheck );
KMMsgStatus strToStatus(const TQString &flags);
+ bool networkStateConnected();
KMFolder *currentFolder();
KMFolder *the_inboxFolder;
@@ -522,6 +526,8 @@ private:
TQStringList mAddMessageMsgIds;
TQString mAddMessageLastFolder;
KMFolder *mAddMsgCurrentFolder;
+
+ TDEGlobalNetworkManager *mNetworkManager;
};
#endif