KContacts::ResourceLocatorUrl

Search for usage in LXR

KContacts::ResourceLocatorUrl Class Reference

#include <resourcelocatorurl.h>

Public Types

typedef QList< ResourceLocatorUrlList
 
typedef QFlags< TypeFlagType
 
enum  TypeFlag {
  Unknown = 0 , Home = 1 , Work = 2 , Profile = 4 ,
  Ftp = 8 , Reservation = 16 , AppInstallPage = 32 , Other = 64
}
 

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
 
void setPreferred (bool preferred)
 
void setType (Type type)
 
void setUrl (const QUrl &url)
 
QString toString () const
 
Type type () const
 
QUrl url () const
 

Detailed Description

Class that holds a Resource Locator.

Since
5.0

Definition at line 28 of file resourcelocatorurl.h.

Member Typedef Documentation

◆ List

◆ Type

Stores a combination of TypeFlag values.

Definition at line 67 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.

Ftp 

Ftp website.

Since
6.0
Reservation 

Reservation website.

Since
6.0
AppInstallPage 

Application installation website.

@sine 6.0

Other 

Other websie.

Definition at line 53 of file resourcelocatorurl.h.

Property Documentation

◆ isPreferred

bool KContacts::ResourceLocatorUrl::isPreferred
readwrite

Definition at line 39 of file resourcelocatorurl.h.

◆ isValid

bool KContacts::ResourceLocatorUrl::isValid
read

Definition at line 37 of file resourcelocatorurl.h.

◆ type

Type KContacts::ResourceLocatorUrl::type
readwrite

Definition at line 38 of file resourcelocatorurl.h.

◆ url

QUrl KContacts::ResourceLocatorUrl::url
readwrite

Definition at line 36 of file resourcelocatorurl.h.

Constructor & Destructor Documentation

◆ ResourceLocatorUrl() [1/2]

ResourceLocatorUrl::ResourceLocatorUrl ( )

Definition at line 35 of file resourcelocatorurl.cpp.

◆ ResourceLocatorUrl() [2/2]

ResourceLocatorUrl::ResourceLocatorUrl ( const ResourceLocatorUrl & other)

Definition at line 40 of file resourcelocatorurl.cpp.

◆ ~ResourceLocatorUrl()

ResourceLocatorUrl::~ResourceLocatorUrl ( )

Definition at line 45 of file resourcelocatorurl.cpp.

Member Function Documentation

◆ isPreferred()

bool ResourceLocatorUrl::isPreferred ( ) const

Returns whether this is the preferred website.

Since
5.12

Definition at line 108 of file resourcelocatorurl.cpp.

◆ isValid()

bool ResourceLocatorUrl::isValid ( ) const

Definition at line 193 of file resourcelocatorurl.cpp.

◆ operator!=()

bool ResourceLocatorUrl::operator!= ( const ResourceLocatorUrl & other) const

Definition at line 160 of file resourcelocatorurl.cpp.

◆ operator=()

ResourceLocatorUrl & ResourceLocatorUrl::operator= ( const ResourceLocatorUrl & other)

Definition at line 165 of file resourcelocatorurl.cpp.

◆ operator==()

bool ResourceLocatorUrl::operator== ( const ResourceLocatorUrl & other) const

Definition at line 155 of file resourcelocatorurl.cpp.

◆ setPreferred()

void ResourceLocatorUrl::setPreferred ( bool preferred)

Sets that this is the preferred website.

Since
5.12

Definition at line 123 of file resourcelocatorurl.cpp.

◆ setType()

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

Sets the URL type.

Since
5.12

Definition at line 83 of file resourcelocatorurl.cpp.

◆ setUrl()

void ResourceLocatorUrl::setUrl ( const QUrl & url)

Definition at line 198 of file resourcelocatorurl.cpp.

◆ toString()

QString ResourceLocatorUrl::toString ( ) const

Definition at line 174 of file resourcelocatorurl.cpp.

◆ type()

ResourceLocatorUrl::Type ResourceLocatorUrl::type ( ) const

Returns the type of the URL.

Since
5.12

Definition at line 64 of file resourcelocatorurl.cpp.

◆ url()

QUrl ResourceLocatorUrl::url ( ) const

Definition at line 203 of file resourcelocatorurl.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.