Skip to main content

QUrl

Struct QUrl 

Source
pub struct QUrl { /* private fields */ }
Expand description

C++ class: QUrl.

Implementations§

Source§

impl QUrl

Source

pub unsafe fn adjusted( &self, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QUrl>

Calls C++ function: QUrl QUrl::adjusted(QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options) const.

Source

pub unsafe fn authority_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::authority(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn authority_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::authority() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QUrl::clear().

Source

pub unsafe fn copy_from_q_url( &self, copy: impl CastInto<Ref<QUrl>>, ) -> Ref<QUrl>

Calls C++ function: QUrl& QUrl::operator=(const QUrl& copy).

Source

pub unsafe fn copy_from_q_string( &self, url: impl CastInto<Ref<QString>>, ) -> Ref<QUrl>

Calls C++ function: QUrl& QUrl::operator=(const QString& url).

Source

pub unsafe fn detach(&self)

Calls C++ function: void QUrl::detach().

Source

pub unsafe fn error_string(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::errorString() const.

Source

pub unsafe fn file_name_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::fileName(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn file_name_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::fileName() const.

Source

pub unsafe fn fragment_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::fragment(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn fragment_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::fragment() const.

Source

pub unsafe fn from_ace(arg1: impl CastInto<Ref<QByteArray>>) -> CppBox<QString>

Calls C++ function: static QString QUrl::fromAce(const QByteArray& arg1).

Source

pub unsafe fn from_encoded_2a( url: impl CastInto<Ref<QByteArray>>, mode: ParsingMode, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromEncoded(const QByteArray& url, QUrl::ParsingMode mode = …).

Source

pub unsafe fn from_encoded_1a( url: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromEncoded(const QByteArray& url).

Source

pub unsafe fn from_local_file( localfile: impl CastInto<Ref<QString>>, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromLocalFile(const QString& localfile).

Source

pub unsafe fn from_percent_encoding( arg1: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QString>

Calls C++ function: static QString QUrl::fromPercentEncoding(const QByteArray& arg1).

Source

pub unsafe fn from_string_list_2a( uris: impl CastInto<Ref<QStringList>>, mode: ParsingMode, ) -> CppBox<QListOfQUrl>

Calls C++ function: static QList<QUrl> QUrl::fromStringList(const QStringList& uris, QUrl::ParsingMode mode = …).

Source

pub unsafe fn from_string_list_1a( uris: impl CastInto<Ref<QStringList>>, ) -> CppBox<QListOfQUrl>

Calls C++ function: static QList<QUrl> QUrl::fromStringList(const QStringList& uris).

Source

pub unsafe fn from_user_input_1a( user_input: impl CastInto<Ref<QString>>, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromUserInput(const QString& userInput).

Source

pub unsafe fn from_user_input_3a( user_input: impl CastInto<Ref<QString>>, working_directory: impl CastInto<Ref<QString>>, options: QFlags<UserInputResolutionOption>, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromUserInput(const QString& userInput, const QString& workingDirectory, QFlags<QUrl::UserInputResolutionOption> options = …).

Source

pub unsafe fn from_user_input_2a( user_input: impl CastInto<Ref<QString>>, working_directory: impl CastInto<Ref<QString>>, ) -> CppBox<QUrl>

Calls C++ function: static QUrl QUrl::fromUserInput(const QString& userInput, const QString& workingDirectory).

Source

pub unsafe fn has_fragment(&self) -> bool

Calls C++ function: bool QUrl::hasFragment() const.

Source

pub unsafe fn has_query(&self) -> bool

Calls C++ function: bool QUrl::hasQuery() const.

Source

pub unsafe fn host_1a( &self, arg1: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::host(QFlags<QUrl::ComponentFormattingOption> arg1 = …) const.

Source

pub unsafe fn host_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::host() const.

Source

pub unsafe fn idn_whitelist() -> CppBox<QStringList>

Calls C++ function: static QStringList QUrl::idnWhitelist().

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QUrl::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QUrl::isEmpty() const.

Source

pub unsafe fn is_local_file(&self) -> bool

Calls C++ function: bool QUrl::isLocalFile() const.

Source

pub unsafe fn is_parent_of(&self, url: impl CastInto<Ref<QUrl>>) -> bool

Calls C++ function: bool QUrl::isParentOf(const QUrl& url) const.

Source

pub unsafe fn is_relative(&self) -> bool

Calls C++ function: bool QUrl::isRelative() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QUrl::isValid() const.

Source

pub unsafe fn matches( &self, url: impl CastInto<Ref<QUrl>>, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> bool

Calls C++ function: bool QUrl::matches(const QUrl& url, QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options) const.

Source

pub unsafe fn new_0a() -> CppBox<QUrl>

Calls C++ function: [constructor] void QUrl::QUrl().

Source

pub unsafe fn new_2a( url: impl CastInto<Ref<QString>>, mode: ParsingMode, ) -> CppBox<QUrl>

Calls C++ function: [constructor] void QUrl::QUrl(const QString& url, QUrl::ParsingMode mode = …).

Source

pub unsafe fn new_1a(url: impl CastInto<Ref<QString>>) -> CppBox<QUrl>

Calls C++ function: [constructor] void QUrl::QUrl(const QString& url).

Source

pub unsafe fn new_copy(copy: impl CastInto<Ref<QUrl>>) -> CppBox<QUrl>

Calls C++ function: [constructor] void QUrl::QUrl(const QUrl& copy).

Source

pub unsafe fn password_1a( &self, arg1: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::password(QFlags<QUrl::ComponentFormattingOption> arg1 = …) const.

Source

pub unsafe fn password_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::password() const.

Source

pub unsafe fn path_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::path(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn path_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::path() const.

Source

pub unsafe fn port_1a(&self, default_port: c_int) -> c_int

Calls C++ function: int QUrl::port(int defaultPort = …) const.

Source

pub unsafe fn port_0a(&self) -> c_int

Calls C++ function: int QUrl::port() const.

Source

pub unsafe fn query_1a( &self, arg1: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::query(QFlags<QUrl::ComponentFormattingOption> arg1 = …) const.

Source

pub unsafe fn query_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::query() const.

Source

pub unsafe fn resolved( &self, relative: impl CastInto<Ref<QUrl>>, ) -> CppBox<QUrl>

Calls C++ function: QUrl QUrl::resolved(const QUrl& relative) const.

Source

pub unsafe fn scheme(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::scheme() const.

Source

pub unsafe fn set_authority_2a( &self, authority: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setAuthority(const QString& authority, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_authority_1a(&self, authority: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setAuthority(const QString& authority).

Source

pub unsafe fn set_fragment_2a( &self, fragment: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setFragment(const QString& fragment, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_fragment_1a(&self, fragment: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setFragment(const QString& fragment).

Source

pub unsafe fn set_host_2a( &self, host: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setHost(const QString& host, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_host_1a(&self, host: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setHost(const QString& host).

Source

pub unsafe fn set_idn_whitelist(arg1: impl CastInto<Ref<QStringList>>)

Calls C++ function: static void QUrl::setIdnWhitelist(const QStringList& arg1).

Source

pub unsafe fn set_password_2a( &self, password: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setPassword(const QString& password, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_password_1a(&self, password: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setPassword(const QString& password).

Source

pub unsafe fn set_path_2a( &self, path: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setPath(const QString& path, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_path_1a(&self, path: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setPath(const QString& path).

Source

pub unsafe fn set_port(&self, port: c_int)

Calls C++ function: void QUrl::setPort(int port).

Source

pub unsafe fn set_query_q_string_parsing_mode( &self, query: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setQuery(const QString& query, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_query_q_url_query(&self, query: impl CastInto<Ref<QUrlQuery>>)

Calls C++ function: void QUrl::setQuery(const QUrlQuery& query).

Source

pub unsafe fn set_query_q_string(&self, query: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setQuery(const QString& query).

Source

pub unsafe fn set_scheme(&self, scheme: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setScheme(const QString& scheme).

Source

pub unsafe fn set_url_2a( &self, url: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setUrl(const QString& url, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_url_1a(&self, url: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setUrl(const QString& url).

Source

pub unsafe fn set_user_info_2a( &self, user_info: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setUserInfo(const QString& userInfo, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_user_info_1a(&self, user_info: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setUserInfo(const QString& userInfo).

Source

pub unsafe fn set_user_name_2a( &self, user_name: impl CastInto<Ref<QString>>, mode: ParsingMode, )

Calls C++ function: void QUrl::setUserName(const QString& userName, QUrl::ParsingMode mode = …).

Source

pub unsafe fn set_user_name_1a(&self, user_name: impl CastInto<Ref<QString>>)

Calls C++ function: void QUrl::setUserName(const QString& userName).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QUrl>>)

Calls C++ function: void QUrl::swap(QUrl& other).

Source

pub unsafe fn to_ace(arg1: impl CastInto<Ref<QString>>) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QUrl::toAce(const QString& arg1).

Source

pub unsafe fn to_display_string_1a( &self, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::toDisplayString(QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn to_display_string_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::toDisplayString() const.

Source

pub unsafe fn to_encoded_1a( &self, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QByteArray>

Calls C++ function: QByteArray QUrl::toEncoded(QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn to_encoded_0a(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QUrl::toEncoded() const.

Source

pub unsafe fn to_local_file(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::toLocalFile() const.

Source

pub unsafe fn to_percent_encoding_3a( arg1: impl CastInto<Ref<QString>>, exclude: impl CastInto<Ref<QByteArray>>, include: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QUrl::toPercentEncoding(const QString& arg1, const QByteArray& exclude = …, const QByteArray& include = …).

Source

pub unsafe fn to_percent_encoding_2a( arg1: impl CastInto<Ref<QString>>, exclude: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QUrl::toPercentEncoding(const QString& arg1, const QByteArray& exclude = …).

Source

pub unsafe fn to_percent_encoding_1a( arg1: impl CastInto<Ref<QString>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QUrl::toPercentEncoding(const QString& arg1).

Source

pub unsafe fn to_string_1a( &self, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::toString(QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn to_string_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::toString() const.

Source

pub unsafe fn to_string_list_2a( uris: impl CastInto<Ref<QListOfQUrl>>, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QStringList>

Calls C++ function: static QStringList QUrl::toStringList(const QList<QUrl>& uris, QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options = …).

Source

pub unsafe fn to_string_list_1a( uris: impl CastInto<Ref<QListOfQUrl>>, ) -> CppBox<QStringList>

Calls C++ function: static QStringList QUrl::toStringList(const QList<QUrl>& uris).

Source

pub unsafe fn top_level_domain_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::topLevelDomain(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn top_level_domain_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::topLevelDomain() const.

Source

pub unsafe fn url_1a( &self, options: impl CastInto<Ref<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::url(QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn url_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::url() const.

Source

pub unsafe fn user_info_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::userInfo(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn user_info_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::userInfo() const.

Source

pub unsafe fn user_name_1a( &self, options: QFlags<ComponentFormattingOption>, ) -> CppBox<QString>

Calls C++ function: QString QUrl::userName(QFlags<QUrl::ComponentFormattingOption> options = …) const.

Source

pub unsafe fn user_name_0a(&self) -> CppBox<QString>

Calls C++ function: QString QUrl::userName() const.

Trait Implementations§

Source§

impl CppDeletable for QUrl

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QUrl::~QUrl().

Source§

impl Lt<Ref<QUrl>> for QUrl

Source§

unsafe fn lt(&self, url: &Ref<QUrl>) -> bool

Calls C++ function: bool QUrl::operator<(const QUrl& url) const.

Source§

impl PartialEq<Ref<QUrl>> for QUrl

Source§

fn eq(&self, url: &Ref<QUrl>) -> bool

Calls C++ function: bool QUrl::operator==(const QUrl& url) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for QUrl

§

impl RefUnwindSafe for QUrl

§

impl Send for QUrl

§

impl Sync for QUrl

§

impl Unpin for QUrl

§

impl UnsafeUnpin for QUrl

§

impl UnwindSafe for QUrl

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.