Ignore:
Timestamp:
01/29/10 13:15:40 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
a023fd2
Parents:
1fb7a33
Message:

implemented importing the schedule from the Internet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r1fb7a33 r5007fde  
    33#include <QTreeView>
    44#include <QFile>
     5#include <QNetworkProxy>
    56
    67#include <sqlengine.h>
     
    2223#include <tabcontainer.h>
    2324
     25const QString PROXY_URL("192.168.0.252");
     26const quint16 PROXY_PORT = 4040;
     27const QString PROXY_USERNAME;
     28const QString PROXY_PASSWD;
     29const bool DIRECT_CONNECTION = false;
     30
    2431MainWindow::MainWindow(int aEventId, QWidget *aParent)
    2532    : QMainWindow(aParent)
    2633{
    2734    setupUi(this);
     35
     36    qDebug() << "Setting-up proxy: " << PROXY_URL << ":" << PROXY_PORT;
     37    QNetworkProxy proxy(DIRECT_CONNECTION ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy,
     38            PROXY_URL, PROXY_PORT, PROXY_USERNAME, PROXY_PASSWD);
     39    QNetworkProxy::setApplicationProxy(proxy);
    2840
    2941    int confId = Conference::activeConference();
Note: See TracChangeset for help on using the changeset viewer.