• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KNewStuff

KNS::Provider

KNS::Provider Class Reference

KNewStuff provider container. More...

#include <provider.h>

List of all members.


Public Types

typedef QPtrList< Provider > List

Public Member Functions

KURL downloadUrl () const
KURL downloadUrlVariant (QString variant) const
KURL icon () const
QString name () const
bool noUpload () const
KURL noUploadUrl () const
 Provider (const QDomElement &)
 Provider ()
void setDownloadUrl (const KURL &)
void setIcon (const KURL &)
void setName (const QString &)
void setNoUpload (bool)
void setNoUploadUrl (const KURL &)
void setUploadUrl (const KURL &)
KURL uploadUrl () const
 ~Provider ()

Protected Member Functions

QDomElement createDomElement (QDomDocument &, QDomElement &parent)
void parseDomElement (const QDomElement &)

Detailed Description

KNewStuff provider container.

This class provides accessors for the provider object. as used by KNewStuff. It should probably not be used directly by the application.

Author:
Cornelius Schumacher (schumacher@kde.org)
Maintainer:
Josef Spillner (spillner@kde.org)

Definition at line 46 of file provider.h.


Member Typedef Documentation

typedef QPtrList<Provider> KNS::Provider::List

Definition at line 49 of file provider.h.


Constructor & Destructor Documentation

Provider::Provider (  ) 

Constructor.

Definition at line 79 of file provider.cpp.

Provider::Provider ( const QDomElement &  e  ) 

Constructor with XML feed.

Definition at line 83 of file provider.cpp.

Provider::~Provider (  ) 

Destructor.

Definition at line 88 of file provider.cpp.


Member Function Documentation

QDomElement Provider::createDomElement ( QDomDocument &  doc,
QDomElement &  parent 
) [protected]

Definition at line 196 of file provider.cpp.

KURL Provider::downloadUrl (  )  const

Retrieves the download URL.

Returns:
download URL

Definition at line 132 of file provider.cpp.

KURL Provider::downloadUrlVariant ( QString  variant  )  const

Variant to retrieve 'tagged' download URLs.

Variant can be one of 'score', 'downloads', 'latest'.

Returns:
download specific URL

Definition at line 65 of file provider.cpp.

KURL Provider::icon (  )  const

Retrieves the icon URL for this provider.

Returns:
icon URL

Definition at line 121 of file provider.cpp.

QString Provider::name (  )  const

Retrieves the common name of the provider.

Returns:
provider name

Definition at line 110 of file provider.cpp.

bool Provider::noUpload (  )  const

Query whether provider supports uploads.

Returns:
upload support status

Definition at line 165 of file provider.cpp.

KURL Provider::noUploadUrl (  )  const

Retrieves the URL where a user is led if the provider does not support uploads.

Returns:
website URL

Definition at line 154 of file provider.cpp.

void Provider::parseDomElement ( const QDomElement &  element  )  [protected]

Definition at line 171 of file provider.cpp.

void Provider::setDownloadUrl ( const KURL &  url  ) 

Sets the download URL.

Definition at line 127 of file provider.cpp.

void Provider::setIcon ( const KURL &  url  ) 

Sets the URL for an icon for this provider.

The icon should be in 32x32 format. If not set, the default icon of KDialogBase is used.

Definition at line 116 of file provider.cpp.

void Provider::setName ( const QString &  name  ) 

Sets the common name of the provider.

Definition at line 105 of file provider.cpp.

void Provider::setNoUpload ( bool  enabled  ) 

Indicate whether provider supports uploads.

Definition at line 160 of file provider.cpp.

void Provider::setNoUploadUrl ( const KURL &  url  ) 

Sets the URL where a user is led if the provider does not support uploads.

See also:
setNoUpload

Definition at line 149 of file provider.cpp.

void Provider::setUploadUrl ( const KURL &  url  ) 

Sets the upload URL.

Definition at line 138 of file provider.cpp.

KURL Provider::uploadUrl (  )  const

Retrieves the upload URL.

Returns:
upload URL

Definition at line 143 of file provider.cpp.


The documentation for this class was generated from the following files:
  • provider.h
  • provider.cpp

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal