LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
11 namespace LC
12 {
13 namespace 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 }
LC::Util::UrlAccessor::operator[]
QString operator[](const QString &) const
Definition: urlaccessor.cpp:32
LC::Util::UrlAccessor::last
const value_type & last() const
Definition: urlaccessor.cpp:37
urlaccessor.h
LC::Util::UrlAccessor::UrlAccessor
UrlAccessor(const QUrl &)
Definition: urlaccessor.cpp:27
LC::Util::UrlAccessor::value_type
typename decltype(Url_.queryItems())::value_type value_type
Definition: urlaccessor.h:41
LC
Definition: constants.h:14