diff options
Diffstat (limited to 'src/corelib/io/qurl_p.h')
-rw-r--r-- | src/corelib/io/qurl_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/io/qurl_p.h b/src/corelib/io/qurl_p.h index c696709c9c..8c1e307521 100644 --- a/src/corelib/io/qurl_p.h +++ b/src/corelib/io/qurl_p.h @@ -95,12 +95,16 @@ public: PortEmptyError, InvalidPathError = Path << 8, - PathContainsColonBeforeSlash, InvalidQueryError = Query << 8, InvalidFragmentError = Fragment << 8, + // the following two cases are only possible in combination + // with presence/absence of the authority and scheme. See validityError(). + AuthorityPresentAndPathIsRelative = Authority << 8 | Path << 8 | 0x10000, + RelativeUrlPathContainsColonBeforeSlash = Scheme << 8 | Authority << 8 | Path << 8 | 0x10000, + NoError = 0 }; @@ -110,6 +114,7 @@ public: void parse(const QString &url, QUrl::ParsingMode parsingMode); bool isEmpty() const { return sectionIsPresent == 0 && port == -1 && path.isEmpty(); } + ErrorCode validityError() const; // no QString scheme() const; void appendAuthority(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const; |