KContacts::ResourceLocatorUrl Class
class KContacts::ResourceLocatorUrlClass that holds a Resource Locator. More...
| Header: | #include <KContacts/ResourceLocatorUrl> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS Contacts)target_link_libraries(mytarget PRIVATE KF6::Contacts) |
Public Types
Properties
- isPreferred : bool
- isValid : const bool
- type : Type
- url : QUrl
Public Functions
| ResourceLocatorUrl() | |
| bool | isPreferred() const |
| bool | isValid() const |
(since 6.20) QString | resourceLabel() const |
| void | setPreferred(bool preferred) |
| void | setType(KContacts::ResourceLocatorUrl::Type type) |
| void | setUrl(const QUrl &url) |
| QString | toString() const |
| KContacts::ResourceLocatorUrl::Type | type() const |
| QUrl | url() const |
| bool | operator!=(const KContacts::ResourceLocatorUrl &other) const |
| bool | operator==(const KContacts::ResourceLocatorUrl &other) const |
Related Non-Members
| QDataStream & | operator<<(QDataStream &stream, const KContacts::ResourceLocatorUrl &object) |
| QDataStream & | operator>>(QDataStream &stream, KContacts::ResourceLocatorUrl &object) |
Detailed Description
Member Type Documentation
ResourceLocatorUrl::List
enum ResourceLocatorUrl::TypeFlag
flags ResourceLocatorUrl::Type
URL types.
| Constant | Value | Description |
|---|---|---|
KContacts::ResourceLocatorUrl::Unknown | 0 | No or unknown URL type is set |
KContacts::ResourceLocatorUrl::Home | 1 | Personal website |
KContacts::ResourceLocatorUrl::Work | 2 | Work website |
KContacts::ResourceLocatorUrl::Profile | 4 | Profile website |
KContacts::ResourceLocatorUrl::Ftp (since 6.0) | 8 | Ftp website |
KContacts::ResourceLocatorUrl::Reservation (since 6.0) | 16 | Reservation website |
KContacts::ResourceLocatorUrl::AppInstallPage (since 6.0) | 32 | Application installation website |
KContacts::ResourceLocatorUrl::Other | 64 | Other website |
The Type type is a typedef for QFlags<TypeFlag>. It stores an OR combination of TypeFlag values.
Property Documentation
isPreferred : bool
Access functions:
| bool | isPreferred() const |
| void | setPreferred(bool preferred) |
[read-only] isValid : const bool
Access functions:
| bool | isValid() const |
type : Type
Access functions:
| KContacts::ResourceLocatorUrl::Type | type() const |
| void | setType(KContacts::ResourceLocatorUrl::Type type) |
url : QUrl
Access functions:
Member Function Documentation
ResourceLocatorUrl::ResourceLocatorUrl()
bool ResourceLocatorUrl::isPreferred() const
Returns whether this is the preferred website.
Note: Getter function for property isPreferred.
bool ResourceLocatorUrl::isValid() const
Note: Getter function for property isValid.
[since 6.20] QString ResourceLocatorUrl::resourceLabel() const
Returns a translated label for the type.
Note: Getter function for property resourceLabel.
This function was introduced in 6.20.
void ResourceLocatorUrl::setPreferred(bool preferred)
Sets that this is the preferred website.
Note: Setter function for property isPreferred.
See also isPreferred().
void ResourceLocatorUrl::setType(KContacts::ResourceLocatorUrl::Type type)
Sets the URL type.
Note: Setter function for property type.
See also type().
void ResourceLocatorUrl::setUrl(const QUrl &url)
Note: Setter function for property url.
See also url().
QString ResourceLocatorUrl::toString() const
KContacts::ResourceLocatorUrl::Type ResourceLocatorUrl::type() const
Returns the type of the URL.
Note: Getter function for property type.
See also setType().
QUrl ResourceLocatorUrl::url() const
Note: Getter function for property url.
See also setUrl().