KNewStuff
KNS::Provider Class Reference
KNewStuff provider container. More...
#include <provider.h>
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.
- 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 | ( | ) |
Provider::Provider | ( | const QDomElement & | e | ) |
Provider::~Provider | ( | ) |
Member Function Documentation
QDomElement Provider::createDomElement | ( | QDomDocument & | doc, | |
QDomElement & | parent | |||
) | [protected] |
Definition at line 196 of file provider.cpp.
KURL Provider::downloadUrl | ( | ) | 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 | ) |
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 | ) |
void Provider::setNoUpload | ( | bool | enabled | ) |
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 | ) |
KURL Provider::uploadUrl | ( | ) | const |
The documentation for this class was generated from the following files: