AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
UrlUtil.h
gehe zur Dokumentation dieser Datei
1 
6 #pragma once
7 
8 #include "Result.h"
9 
10 #include <QSslCertificate>
11 #include <QString>
12 #include <QUrl>
13 
14 namespace governikus
15 {
16 
22 class UrlUtil
23 {
24  UrlUtil() = delete;
25  ~UrlUtil() = delete;
26 
27  static inline QString removePrefix(QString pStr);
28 
29  public:
33  static QUrl getUrlOrigin(const QUrl& pUrl);
34 
38  static bool isMatchingSameOriginPolicy(const QUrl& pUrl1, const QUrl& pUrl2);
39 
43  static QUrl addMajorMinor(const QUrl& pUrl, const GlobalStatus& pStatus);
44 
45 };
46 
47 } /* namespace governikus */
Utility class for checking various constraints on URLs.
Definition: UrlUtil.h:22
static bool isMatchingSameOriginPolicy(const QUrl &pUrl1, const QUrl &pUrl2)
Checks whether the same origin policy is satisfied for the two specified URL.
Definition: UrlUtil.cpp:41
Definition: GlobalStatus.h:18
static QUrl addMajorMinor(const QUrl &pUrl, const GlobalStatus &pStatus)
Append result to URL.
Definition: UrlUtil.cpp:57
static QUrl getUrlOrigin(const QUrl &pUrl)
Determines the URL origin, i.e.
Definition: UrlUtil.cpp:19