aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp/framework-OSInterface_private.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-12-14 15:20:42 -0500
committerKen Moore <ken@ixsystems.com>2017-12-14 15:20:42 -0500
commit3e35a74950e46882bb9d6eb1f3e21a5bdabe3efb (patch)
tree323a8faa3cb5858bfcb5da150356ed3ae258e3da /src-qt5/src-cpp/framework-OSInterface_private.cpp
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-3e35a74950e46882bb9d6eb1f3e21a5bdabe3efb.tar.gz
lumina-3e35a74950e46882bb9d6eb1f3e21a5bdabe3efb.tar.bz2
lumina-3e35a74950e46882bb9d6eb1f3e21a5bdabe3efb.zip
More work on the OSInterface framework (mostly networking-related)
Diffstat (limited to 'src-qt5/src-cpp/framework-OSInterface_private.cpp')
-rw-r--r--src-qt5/src-cpp/framework-OSInterface_private.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface_private.cpp b/src-qt5/src-cpp/framework-OSInterface_private.cpp
index 23db9a6c..7dfc8606 100644
--- a/src-qt5/src-cpp/framework-OSInterface_private.cpp
+++ b/src-qt5/src-cpp/framework-OSInterface_private.cpp
@@ -55,6 +55,11 @@ void OSInterface::connectNetman(){
connect(netman, SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)), this, SLOT(netSslErrors(QNetworkReply*, const QList<QSslError>&)) );
}
+void OSInterface::connectTimer(){
+ if(timer==0){ return; }
+ connect(timer, SIGNAL(timeout()), this, SLOT(timerUpdate()) );
+}
+
// External Media Management (if system uses *.desktop shortcuts)
void OSInterface::setupMediaWatcher(){
//Create/connect the watcher if needed
@@ -90,3 +95,13 @@ QStringList OSInterface::autoHandledMediaFiles(){
}
return files;
}
+
+// Qt-based NetworkAccessManager usage
+void OSInterface::setupNetworkManager(){
+ if(netman==0){
+ netman = new QNetworkAccessManager(this);
+ connectNetman();
+ }
+ //Load the initial state of the network accessibility
+ netAccessChanged(netman->networkAccessibility());
+}
bgstack15