diff options
Diffstat (limited to 'src/fbgui.cpp')
| -rw-r--r-- | src/fbgui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 6311b86..da72c21 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -1,6 +1,6 @@ #include "fbgui.h" #include "DownloadManager.h" -#include "JSObject.h" +#include "javascriptInterface.h" #include <iostream> #include <QUrl> @@ -19,16 +19,16 @@ fbgui::fbgui(QApplication *parent) webView->load(baseURL); /* Init JavaScript interface */ - JSObject* jso = new JSObject(webView->page()->mainFrame()); + javascriptInterface* jsi = new javascriptInterface(webView->page()->mainFrame()); // this still looks bad.. - QObject::connect(jso, SIGNAL(signalQuitAll()), this, SLOT(close())); + QObject::connect(jsi, SIGNAL(signalQuitAll()), this, SLOT(close())); QObject::connect(webView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), - jso, SLOT(attachToDOM())); + jsi, SLOT(attachToDOM())); /* Init Download Manager */ DownloadManager* dm = new DownloadManager(); - QObject::connect(jso, SIGNAL(requestFile(QString&)), dm, SLOT(downloadFile(QString&))); - QObject::connect(dm, SIGNAL(updateProgress(int)), jso, SLOT(updateProgressBar(int))); + QObject::connect(jsi, SIGNAL(requestFile(QString&)), dm, SLOT(downloadFile(QString&))); + QObject::connect(dm, SIGNAL(updateProgress(int)), jsi, SLOT(updateProgressBar(int))); setWindowFlags(Qt::SplashScreen); showFullScreen(); |
