summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 722f80a..f20564d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -172,7 +172,9 @@ int main(int argc, char *argv[]) {
Dialog w;
- httpxmldownloader httpxmldownloader;
+ /* DOWNLOAD VSESSIONS */
+
+ HttpXmlDownloader httpxmldownloader;
httpxmldownloader.connectSlot(&w, SLOT(addSessionsAfterDownload(QNetworkReply*)));
if (!vSessionUrl.isEmpty()) {
@@ -180,6 +182,17 @@ int main(int argc, char *argv[]) {
httpxmldownloader.makeRequest(vSessionUrl);
}
+ /* DOWNLOAD NEWS */
+ HttpXmlDownloader news_downloader;
+ news_downloader.connectSlot(&w, SLOT(addNewsAfterDownload(QNetworkReply*)));
+ // TODO: url
+ news_downloader.makeRequest("http://localhost/news.php");
+
+ /* DOWNLOAD HELP-SECTION */
+ HttpXmlDownloader help_downloader;
+ help_downloader.connectSlot(&w, SLOT(addHelpAfterDownload(QNetworkReply*)));
+ help_downloader.makeRequest("http://localhost/help.php");
+
w.setTheme();
w.setWindowFlags(Qt::FramelessWindowHint);