QHtpp *http;
...
..
QUrl adresse
("http://forum.qtfr.org");
page_html
= new QFile(windowTitle
()+"_page.html");
page_html
->setPermissions
(QFile::ReadUser |
QFile::WriteUser |
QFile::ReadOther |
QFile::WriteOther) ;
http
= new QHttp(adresse.
host(),
80);
if (http!=NULL) {
connect(http, SIGNAL(done(bool)), this, SLOT(http_done(bool)));
connect(http, SIGNAL(requestFinished(int ,bool )), this, SLOT(http_requestFinished(int, bool)));
http->get(adresse.toString(),page_html);
}
QHtpp *http;
QFile *page_html;
...
..
QUrl adresse("http://forum.qtfr.org");
page_html = new QFile(windowTitle()+"_page.html");
page_html->setPermissions(QFile::ReadUser | QFile::WriteUser | QFile::ReadOther | QFile::WriteOther) ;
http = new QHttp(adresse.host(),80);
if (http!=NULL) {
connect(http, SIGNAL(done(bool)), this, SLOT(http_done(bool)));
connect(http, SIGNAL(requestFinished(int ,bool )), this, SLOT(http_requestFinished(int, bool)));
http->get(adresse.toString(),page_html);
}
To copy to clipboard, switch view to plain text mode
Bookmarks