~ubuntu-branches/ubuntu/wily/fqterm/wily

« back to all changes in this revision

Viewing changes to src/utilities/fqterm_http.cpp

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2010-03-21 22:22:34 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100321222234-x9cl852sd6ghcg7f
Tags: 0.9.6.8-1
* new upstream release.
* debian/control: bump standards version to 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <QDataStream>
27
27
#include <QUrl>
28
28
#include <QRegExp>
 
29
#include <QNetworkProxy>
29
30
 
30
31
#include "fqterm.h"
31
32
#include "fqterm_path.h"
68
69
  emit done(this);
69
70
}
70
71
 
 
72
 
 
73
 
71
74
void FQTermHttp::getLink(const QString &url, bool preview) {
72
75
  isExisting_ = false;
73
76
  isPreview_ = preview;
97
100
  cacheFileName_ = QFileInfo(u.path()).fileName();
98
101
  http_.setHost(u.host(), u.port(80));
99
102
  http_.get(u.path() + "?" + u.encodedQuery());
 
103
 
100
104
}
101
105
/*
102
106
static void getSaveFileName(const QString &filename, QWidget *widget, QString &fileSave) {
317
321
  emit done(this);
318
322
}
319
323
 
 
324
int FQTermHttp::setProxy(const QNetworkProxy & proxy) {
 
325
  return http_.setProxy(proxy);
 
326
}
320
327
}  // namespace FQTerm
321
328
 
322
329
#include "fqterm_http.moc"