forked from len0rd/rockbox
Some HttpGet cleanup: use references when setting options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20232 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
537ee27384
commit
e05e7932f3
2 changed files with 5 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ HttpGet::HttpGet(QObject *parent)
|
||||||
|
|
||||||
//! @brief set cache path
|
//! @brief set cache path
|
||||||
// @param d new directory to use as cache path
|
// @param d new directory to use as cache path
|
||||||
void HttpGet::setCache(QDir d)
|
void HttpGet::setCache(const QDir& d)
|
||||||
{
|
{
|
||||||
m_cachedir = d;
|
m_cachedir = d;
|
||||||
bool result;
|
bool result;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class HttpGet : public QObject
|
||||||
QHttp::Error error(void);
|
QHttp::Error error(void);
|
||||||
QString errorString(void);
|
QString errorString(void);
|
||||||
void setFile(QFile*);
|
void setFile(QFile*);
|
||||||
void setCache(QDir);
|
void setCache(const QDir&);
|
||||||
void setCache(bool);
|
void setCache(bool);
|
||||||
int httpResponse(void);
|
int httpResponse(void);
|
||||||
QByteArray readAll(void);
|
QByteArray readAll(void);
|
||||||
|
|
@ -51,13 +51,13 @@ class HttpGet : public QObject
|
||||||
{ return m_serverTimestamp; }
|
{ return m_serverTimestamp; }
|
||||||
void setDumbCache(bool b) //< disable checking of http header timestamp for caching
|
void setDumbCache(bool b) //< disable checking of http header timestamp for caching
|
||||||
{ m_dumbCache = b; }
|
{ m_dumbCache = b; }
|
||||||
static void setGlobalCache(const QDir d) //< set global cache path
|
static void setGlobalCache(const QDir& d) //< set global cache path
|
||||||
{ m_globalCache = d; }
|
{ m_globalCache = d; }
|
||||||
static void setGlobalProxy(const QUrl p) //< set global proxy value
|
static void setGlobalProxy(const QUrl& p) //< set global proxy value
|
||||||
{ m_globalProxy = p; }
|
{ m_globalProxy = p; }
|
||||||
static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode
|
static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode
|
||||||
{ m_globalDumbCache = b; }
|
{ m_globalDumbCache = b; }
|
||||||
static void setGlobalUserAgent(QString u) //< set global user agent string
|
static void setGlobalUserAgent(const QString& u) //< set global user agent string
|
||||||
{ m_globalUserAgent = u; }
|
{ m_globalUserAgent = u; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue