1 #ifndef QURLQUERYHELPER_H
2 #define QURLQUERYHELPER_H
6 QT_FORWARD_DECLARE_CLASS(QUrl)
8 #if QT_VERSION >= 0x050000
11 class QUrlQueryHelper {
13 QUrlQueryHelper(QUrl &url) : m_url(url), m_urlQuery(url) {}
15 bool hasQueryItem(const QString &itemKey) const {
16 return m_urlQuery.hasQueryItem(itemKey);
19 void addQueryItem(const QString &key, const QString &value) {
20 m_urlQuery.addQueryItem(key, value);
23 void removeQueryItem(const QString &key) {
24 m_urlQuery.removeQueryItem(key);
28 m_url.setQuery(m_urlQuery);
32 QUrlQueryHelper(const QUrlQueryHelper&);
33 QUrlQueryHelper& operator=(const QUrlQueryHelper&);
39 typedef QUrl& QUrlQueryHelper;
40 #endif // QT_VERSION >= 0x050000
42 #endif // QURLQUERYHELPER_H