LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
urlaccessor.cpp
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#include "urlaccessor.h"
10
11namespace LC
12{
13namespace Util
14{
15 UrlAccessor::UrlAccessor (const QUrl& url)
16 : Url_ { url }
17 {
18 }
19
20 QString UrlAccessor::operator[] (const QString& key) const
21 {
22 return Url_.queryItemValue (key);
23 }
24
26 {
27 return Url_.queryItems ().last ();
28 }
29}
30}
UrlAccessor(const QUrl &)
QString operator[](const QString &) const
const value_type & last() const
typename decltype(Url_.queryItems())::value_type value_type
Definition urlaccessor.h:23
Definition constants.h:15