C++ Web Framework  3.0
urlencoder.h
1 /*
2  Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
3  Distributed under MIT license, or public domain if desired and
4  recognized in your jurisdiction.
5  See file LICENSE for detail.
6 */
7 
8 #ifndef URLENCODER_H
9 #define URLENCODER_H
10 
11 #include <QUrl>
12 #include <QByteArray>
13 #include "cppwebframework_global.h"
14 
15 CWF_BEGIN_NAMESPACE
19 class CPPWEBFRAMEWORKSHARED_EXPORT URLEncoder
20 {
21 public:
27  static QString decode(const QByteArray &url);
33  static QString encode(const QByteArray &url);
39  static QString paramEncode(const QByteArray &param);
45  static QString paramDecode(const QByteArray &param);
46 };
47 
48 CWF_END_NAMESPACE
49 
50 #endif // URLENCODER_H
The URLEncoder class.
Definition: urlencoder.h:19