summaryrefslogtreecommitdiff
path: root/client/ProxyClientApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/ProxyClientApp.cpp')
-rw-r--r--client/ProxyClientApp.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/client/ProxyClientApp.cpp b/client/ProxyClientApp.cpp
index 94d8a7c..73df138 100644
--- a/client/ProxyClientApp.cpp
+++ b/client/ProxyClientApp.cpp
@@ -5,13 +5,17 @@
#include "client.h"
#include "Dialog.h"
+#include "DownloadClient.h"
#include "FileOpThread.h"
#include "ProxyClientApp.h"
#include "UpdatedConfig.h"
+using namespace std;
+
ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv)
{
/* initiates UpdatedConfig singleton that start sending configuration requests */
+ /*
UpdatedConfig *cfg = UpdatedConfig::CurrentConfig();
connect(cfg, SIGNAL(updated()),
this, SLOT(configUpdated()));
@@ -24,7 +28,7 @@ ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv
QApplication::setQuitOnLastWindowClosed(false);
- /* create system tray menu */
+ // create system tray menu
QMenu *trayMenu = new QMenu;
QAction *showAction = new QAction(tr("&Show"), this);
showAction->setStatusTip(tr("Open dialog to choose a proxy"));
@@ -66,6 +70,18 @@ ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv
welcomeMsg.setStandardButtons(QMessageBox::Ok);
welcomeMsg.setIcon(QMessageBox::Information);
welcomeMsg.exec();
+ */
+
+ vector<pair<string, string> > files;
+ pair<string, string> file;
+ file = make_pair("server.workspace.session", "70ba1d68907cc9d3");
+ files.push_back(file);
+ file = make_pair("tz/TZ_v.1.2.pdf", "80e28032841aca45");
+ files.push_back(file);
+
+ //QString addr = QString::fromLocal8Bit();
+ DownloadClient downloadClient("127.0.0.1");
+ downloadClient.Download(files);
}
void ProxyClientApp::trayActivated(QSystemTrayIcon::ActivationReason reason)