KContacts::ResourceLocatorUrl

KContacts::ResourceLocatorUrl Class Reference

#include <resourcelocatorurl.h>

Public Types

typedef QVector< ResourceLocatorUrlList
 
typedef QFlags< TypeFlagType
 
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
 
ResourceLocatorUrloperator= (const ResourceLocatorUrl &other)
 
bool operator== (const ResourceLocatorUrl &other) const
 
QMap< QString, QStringListparameters () const
 
void setParameters (const QMap< QString, QStringList > &params)
 
void setPreferred (bool preferred)
 
void setType (Type type)
 
void setUrl (const QUrl &url)
 
QString toString () const
 
Type type () const
 
QUrl url () const
 

Friends

KCONTACTS_EXPORT QDataStreamoperator<< (QDataStream &, const ResourceLocatorUrl &)
 
KCONTACTS_EXPORT QDataStreamoperator>> (QDataStream &, ResourceLocatorUrl &)
 

Detailed Description

Class that holds a Resource Locator.

Since
5.0

Definition at line 37 of file resourcelocatorurl.h.

Member Typedef Documentation

Stores a combination of TypeFlag values.

Definition at line 72 of file resourcelocatorurl.h.

Member Enumeration Documentation

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 61 of file resourcelocatorurl.h.

Member Function Documentation

bool KContacts::ResourceLocatorUrl::isPreferred ( ) const

Returns whether this is the preferred website.

Since
5.12
void ResourceLocatorUrl::setPreferred ( bool  preferred)

Sets that this is the preferred website.

Since
5.12

Definition at line 127 of file resourcelocatorurl.cpp.

void ResourceLocatorUrl::setType ( ResourceLocatorUrl::Type  type)

Sets the URL type.

Since
5.12

Definition at line 92 of file resourcelocatorurl.cpp.

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-2020 The KDE developers.
Generated on Sat May 30 2020 23:02:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.