diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-27 23:25:59 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-27 23:25:59 +0200 |
commit | ee207db191173eb964c50261bc624c1ffcef715b (patch) | |
tree | 94682e209ec6c02970860a2bac8593725cd38ae9 /client | |
parent | a19e9744751d4278f56cb3b6ff885c0068f03a3d (diff) |
File transfer test fix
Diffstat (limited to 'client')
-rw-r--r-- | client/ProxyClientApp.cpp | 18 |
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) |