KDECore
kurl.h
Go to the documentation of this file.
111 class KDECORE_EXPORT KUrl : public QUrl // krazy:exclude=dpointer,qclasses (krazy can't deal with embedded classes)
135 AddTrailingSlash
146 class KDECORE_EXPORT List : public QList<KUrl> //krazy:exclude=dpointer (just some convenience methods)
303 PreferKdeUrls
469 SimplifyDirSeparators = 0x00,
474 KeepDirSeparators = 0x01
529 PermitEmptyPath=0x00,
534 AvoidEmptyPath=0x01
546 QString encodedPathAndQuery( AdjustPathOption trailing = LeaveTrailingSlash, const EncodedPathAndQueryOptions &options = PermitEmptyPath ) const;
745 ObeyTrailingSlash = 0x02,
754 AppendTrailingSlash = 0x04,
759 IgnoreTrailingSlash = 0x01
849 QString pathOrUrl(AdjustPathOption trailing) const; // KDE5: merge with above. Rename to toUrlOrLocalFile?
917 CompareWithoutTrailingSlash = 0x01,
921 CompareWithoutFragment = 0x02,
931 AllowEmptyPath = 0x04
1058 return QString::fromLatin1( QUrl::toPercentEncoding( str ).constData() ); //krazy:exclude=qclasses
1075 return QString::fromLatin1( QUrl::toPercentEncoding( str, "/" ).constData() ); //krazy:exclude=qclasses
1171 KDECORE_EXPORT_DEPRECATED bool urlcmp( const QString& _url1, const QString& _url2 ); // KDE5: remove, KUrl::equals is better API
1187 KDECORE_EXPORT_DEPRECATED bool urlcmp( const QString& _url1, const QString& _url2, const KUrl::EqualsOptions& options ); // KDE5: remove, KUrl::equals is better API
strips a trailing '/', except when the path is already just "/".
Definition: kurl.h:125
static QString encode_string(const QString &str)
Convert unicoded string to local encoding and use %-style encoding for all common delimiters / non-as...
Definition: kurl.h:1057
static QString decode_string(const QString &str)
Decode %-style encoding and convert from local encoding to unicode.
Definition: kurl.h:1090
void ref()
Tells KGlobal about one more operations that should be finished before the application exits...
Definition: kglobal.cpp:321
bool operator==(const QList< T > &other) const
Definition: kaboutdata.h:33
QString fromPercentEncoding(const QByteArray &input)
static QString encode_string_no_slash(const QString &str)
Convert unicoded string to local encoding and use %-style encoding for all common delimiters / non-as...
Definition: kurl.h:1074
KUrl::List is a QList that contains KUrls with a few convenience methods.
Definition: kurl.h:146
When the mimedata contains both KDE-style URLs (eg: desktop:/foo) and the "most local" version of the...
Definition: kurl.h:296
QByteArray toLatin1() const
EqualsOption
Flags to be used in URL comparison functions like equals, or urlcmp.
Definition: kurl.h:905
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
Definition: kuitsemantics.cpp:84
QString fromLatin1(const char *str, int size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.