mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
|
||||
// @param d new directory to use as cache path
|
||||
void HttpGet::setCache(QDir d)
|
||||
void HttpGet::setCache(const QDir& d)
|
||||
{
|
||||
m_cachedir = d;
|
||||
bool result;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class HttpGet : public QObject
|
|||
QHttp::Error error(void);
|
||||
QString errorString(void);
|
||||
void setFile(QFile*);
|
||||
void setCache(QDir);
|
||||
void setCache(const QDir&);
|
||||
void setCache(bool);
|
||||
int httpResponse(void);
|
||||
QByteArray readAll(void);
|
||||
|
|
@ -51,13 +51,13 @@ class HttpGet : public QObject
|
|||
{ return m_serverTimestamp; }
|
||||
void setDumbCache(bool b) //< disable checking of http header timestamp for caching
|
||||
{ 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; }
|
||||
static void setGlobalProxy(const QUrl p) //< set global proxy value
|
||||
static void setGlobalProxy(const QUrl& p) //< set global proxy value
|
||||
{ m_globalProxy = p; }
|
||||
static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode
|
||||
{ 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; }
|
||||
|
||||
public slots:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue