Utility function to directly log warning when network not accessible

This commit is contained in:
Klaus Basan
2017-07-11 20:03:24 +02:00
committed by Mathew Sutcliffe
parent 8aed8f598e
commit 76b3b6c0b6
7 changed files with 16 additions and 33 deletions

View File

@@ -53,7 +53,8 @@ namespace BlackCore
bool updatedWithinLastMs(qint64 timeLastMs);
//! Network accessible?
bool isNetworkAccessible() const;
//! \param logWarningMessage optional warning if not accessible
bool isNetworkAccessible(const QString &logWarningMessage = {}) const;
//! Is marked as read failed
//! \threadsafe