AusweisApp2
UrlUtil.h
gehe zur Dokumentation dieser Datei
1 
6 #pragma once
7 
8 #include "ECardApiResult.h"
9 
10 #include <QSslCertificate>
11 #include <QString>
12 #include <QUrl>
13 
14 namespace governikus
15 {
16 
22 class UrlUtil
23 {
24  private:
25  static inline QString removePrefix(QString pStr);
26  static inline QString getSuffix(ECardApiResult::Minor pMinor);
27 
28  UrlUtil() = delete;
29  ~UrlUtil() = delete;
30 
31  public:
35  static QUrl getUrlOrigin(const QUrl& pUrl);
36 
40  static bool isMatchingSameOriginPolicy(const QUrl& pUrl1, const QUrl& pUrl2);
41 
45  static QUrl addMajorMinor(const QUrl& pUrl, const GlobalStatus& pStatus);
46 
47 };
48 
49 } // namespace governikus
Minor
Definition: ECardApiResult.h:44
Definition: GlobalStatus.h:20
Utility class for checking various constraints on URLs.
Definition: UrlUtil.h:23
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:42
static QUrl addMajorMinor(const QUrl &pUrl, const GlobalStatus &pStatus)
Append result to URL.
Definition: UrlUtil.cpp:64
static QUrl getUrlOrigin(const QUrl &pUrl)
Determines the URL origin, i.e.
Definition: UrlUtil.cpp:19
A simple template renderer.
Definition: ActivationContext.h:15