KContacts::ResourceLocatorUrl
KContacts::ResourceLocatorUrl Class Reference
#include <resourcelocatorurl.h>
Public Types | |
typedef QVector< ResourceLocatorUrl > | List |
typedef QFlags< TypeFlag > | Type |
enum | TypeFlag { Unknown = 0, Home = 1, Work = 2, Profile = 4, Other = 8 } |
Properties | |
bool | isPreferred |
bool | isValid |
Type | type |
QUrl | url |
Public Member Functions | |
ResourceLocatorUrl (const ResourceLocatorUrl &other) | |
bool | isPreferred () const |
bool | isValid () const |
bool | operator!= (const ResourceLocatorUrl &other) const |
ResourceLocatorUrl & | operator= (const ResourceLocatorUrl &other) |
bool | operator== (const ResourceLocatorUrl &other) const |
QMap< QString, QStringList > | parameters () const |
void | setParameters (const QMap< QString, QStringList > ¶ms) |
void | setPreferred (bool preferred) |
void | setType (Type type) |
void | setUrl (const QUrl &url) |
QString | toString () const |
Type | type () const |
QUrl | url () const |
Detailed Description
Member Typedef Documentation
◆ Type
typedef QFlags< TypeFlag > KContacts::ResourceLocatorUrl::Type |
Stores a combination of TypeFlag values.
Definition at line 64 of file resourcelocatorurl.h.
Member Enumeration Documentation
◆ TypeFlag
URL types.
- Since
- 5.12
- See also
- Type
Enumerator | |
---|---|
Unknown | No or unknown URL type is set. |
Home | Personal website. |
Work | Work website. |
Profile | Profile website. |
Other | Other websie. |
Definition at line 53 of file resourcelocatorurl.h.
Member Function Documentation
◆ isPreferred()
bool KContacts::ResourceLocatorUrl::isPreferred | ( | ) | const |
Returns whether this is the preferred website.
- Since
- 5.12
◆ parameters()
QMap< QString, QStringList > ResourceLocatorUrl::parameters | ( | ) | const |
- Deprecated:
- Since 5.88 for lack of usage
Definition at line 188 of file resourcelocatorurl.cpp.
◆ setParameters()
void ResourceLocatorUrl::setParameters | ( | const QMap< QString, QStringList > & | params | ) |
- Deprecated:
- Since 5.88 for lack of usage
Definition at line 181 of file resourcelocatorurl.cpp.
◆ setPreferred()
void ResourceLocatorUrl::setPreferred | ( | bool | preferred | ) |
Sets that this is the preferred website.
- Since
- 5.12
Definition at line 120 of file resourcelocatorurl.cpp.
◆ setType()
void ResourceLocatorUrl::setType | ( | ResourceLocatorUrl::Type | type | ) |
◆ type()
Type KContacts::ResourceLocatorUrl::type | ( | ) | const |
Returns the type of the URL.
- Since
- 5.12
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:51:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:51:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.