|
| CUrl (const QString &fullUrl=QString()) |
| Default constructor.
|
|
| CUrl (const char *url) |
| Construct from character array.
|
|
| CUrl (const QUrl &url) |
| By QUrl.
|
|
| CUrl (const QString &address, int port) |
| Constructor.
|
|
| CUrl (const QString &scheme, const QString &address, int port, const QString &path) |
| Constructor.
|
|
const QString & | getHost () const |
| Get host.
|
|
void | setHost (const QString &address) |
| Set address (e.g. myserver.foo.com)
|
|
const QString & | getScheme () const |
| Get protocl.
|
|
void | setScheme (const QString &protocol) |
| Set protocol.
|
|
bool | hasScheme () const |
| Protocol.
|
|
const QString & | getPath () const |
| Get path.
|
|
void | setPath (const QString &path) |
| Set path.
|
|
QString | appendPath (const QString &pathToAppend) |
| Append path.
|
|
bool | hasPath () const |
| Has path?
|
|
int | getPort () const |
| Get port.
|
|
void | setPort (int port) |
| Set port.
|
|
bool | hasPort () const |
| Port?
|
|
bool | hasDefaultPort () const |
| Default port.
|
|
QString | getQuery () const |
| Get query part.
|
|
void | setQuery (const QString &query) |
| Set query.
|
|
bool | hasQuery () const |
| Query string?
|
|
void | appendQuery (const QString &queryToAppend) |
| Append query.
|
|
void | appendQuery (const QString &key, const QString &value) |
| Append query.
|
|
bool | hasFragment () const |
| Fragment string?
|
|
void | setFragment (const QString &fragment) |
| Set fragment.
|
|
bool | isEmpty () const |
| Empty.
|
|
QString | getFullUrl (bool withQuery=true) const |
| Qualified name.
|
|
void | setFullUrl (const QString &fullUrl) |
| Set full URL.
|
|
QString | getFileName () const |
| File name.
|
|
QUrl | toQUrl () const |
| To QUrl.
|
|
void | setQUrl (const QUrl &url) |
| To QUrl.
|
|
QNetworkRequest | toNetworkRequest () const |
| To request.
|
|
CUrl | withAppendedPath (const QString &path) const |
| Append path.
|
|
CUrl | withAppendedQuery (const QString &query) const |
| Append path.
|
|
CUrl | withSwitchedScheme (const QString &protocol, int port) const |
| Switch protocol.
|
|
bool | pathEndsWith (const QString &ending, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Path ending with?
|
|
bool | isFile () const |
| A path ends with "/", and file is anythingy beyond that, e.g. "path/file". More...
|
|
bool | isFileWithSuffix (const QString &suffix={}) const |
| Stricter version of isFile()
|
|
QString | getFileSuffix () const |
| File appendix if any, otherwise empty, does not include the ".". More...
|
|
QString | getFileSuffixPlusDot () const |
| Suffix plus dot.
|
|
bool | isHavingHtmlSuffix () const |
| Likely a HTM file?
|
|
bool | isExecutableFile () const |
| Executable file (decided by appendix) More...
|
|
bool | isSwiftInstaller () const |
| swift installer More...
|
|
QVariant | propertyByIndex (swift::misc::CPropertyIndexRef index) const |
| Property by index. More...
|
|
void | setPropertyByIndex (swift::misc::CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. More...
|
|
QString | convertToQString (bool i18n=false) const |
| Cast as QString. More...
|
|
QJsonObject | toJson () const |
| Cast to JSON object. More...
|
|
void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. More...
|
|
| operator QUrl () const |
| Convert to QUrl.
|
|
int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. More...
|
|
QString | getClassName () const |
| Class name.
|
|
bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses.
|
|
void | marshallToDbus (QDBusArgument &arg, Tags...) const |
| Marshall without begin/endStructure, for when composed within another object.
|
|
void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
| Unmarshall without begin/endStructure, for when composed within another object.
|
|
void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream.
|
|
void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream.
|
|
QJsonObject | toJson () const |
| Cast to JSON object.
|
|
QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string.
|
|
void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object.
|
|
void | convertFromJson (const QString &jsonString, bool acceptCacheFormat=false) |
| Assign from JSON object string.
|
|
QString | toQString (bool i18n=false) const |
| Cast as QString.
|
|
std::string | toStdString (bool i18n=false) const |
| To std string.
|
|
QString | stringForStreaming () const |
| String for streaming operators.
|
|
CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. More...
|
|
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index.
|
|
QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index.
|
|
int | comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const |
| Compare for index.
|
|
bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index?
|
|
CIcons::IconIndex | toIcon () const |
| As icon, not implemented by all classes.
|
|
|
static int | protocolToDefaultPort (const QString &protocol) |
| Protocol to default port.
|
|
static bool | isDefaultPort (const QString &protocol, int port) |
| Default port for given protocol.
|
|
static CUrl | fromLocalFile (const QString &localFile) |
| From local file path.
|
|
static void | registerMetadata () |
| Register metadata.
|
|
template<class DerivedObj = Derived> |
static DerivedObj | fromJson (const QJsonObject &json) |
| Get object from QJsonObject.
|
|
template<class DerivedObj = Derived> |
static DerivedObj | fromJson (const QString &jsonString, bool acceptCacheJson=false) |
| Get object from JSON string.
|
|
template<class DerivedObj = Derived> |
static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Get object from JSON string.
|
|
Value object encapsulating information of a location, kind of simplified CValueObject compliant version of QUrl.
Definition at line 26 of file url.h.