RestLink 2.2.0
Powerfull Rest Client for Qt
Loading...
Searching...
No Matches
pathparameter.h
1#ifndef RESTLINK_PATHPARAMETER_H
2#define RESTLINK_PATHPARAMETER_H
3
4#include <RestLink/global.h>
5#include <RestLink/parameter.h>
6
7namespace RestLink {
8
9class PathParameterData;
10class RESTLINK_EXPORT PathParameter : public Parameter
11{
12public:
14 PathParameter(const QString &name, const QVariant &value);
15 PathParameter(const PathParameter &other) = default;
16 PathParameter(PathParameter &&other) = default;
17
18 PathParameter &operator=(const PathParameter &other);
19 PathParameter &operator=(PathParameter &&other);
20
21 static PathParameter fromJsonObject(const QJsonObject &object);
22
23 bool operator==(const PathParameter &other);
24 inline bool operator!=(const PathParameter &other)
25 { return !operator==(other); }
26
27protected:
28 PathParameter(const QSharedDataPointer<ParameterData> &d);
29
30 friend class Parameter;
31};
32
33typedef QList<PathParameter> PathParameterList;
34
35} // namespace RestLink
36
37#endif // RESTLINK_PATHPARAMETER_H