82 |
kdDebug() << "1" << endl; |
kdDebug() << "1" << endl; |
83 |
connect(http, SIGNAL(readyRead(const QHttpResponseHeader &)), |
connect(http, SIGNAL(readyRead(const QHttpResponseHeader &)), |
84 |
this, SLOT(slotReadyRead())); |
this, SLOT(slotReadyRead())); |
85 |
connect(http, SIGNAL(requestStarted(int, bool)), |
connect(http, SIGNAL(requestFinished(int, bool)), |
86 |
this, SLOT(slotRequestStarted(int))); |
this, SLOT(slotRequestFinished(int))); |
87 |
kdDebug() << "2" << endl; |
kdDebug() << "2" << endl; |
88 |
http->setHost("www.trolltech.com"); |
http->setHost("fishy.it.jyu.fi", 5555); |
89 |
requestNr = http->get("/index.html"); |
requestNr = http->get(url.prettyURL()); |
90 |
kdDebug() << "request id: " << requestNr << endl; |
kdDebug() << "request id: " << requestNr << endl; |
91 |
while(!isFinished) { |
while(!isFinished) { |
92 |
//kdDebug() << "process events" << endl; |
//kdDebug() << "process events" << endl; |
93 |
app->processEvents(); |
app->processEvents(); |
94 |
} |
} |
95 |
kdDebug() << "done" << endl; |
kdDebug() << "done" << endl; |
96 |
|
finished(); |
97 |
} |
} |
98 |
|
|
99 |
|
|