KNS::Provider Class Reference
#include <provider.h>
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.
Public Types | |
typedef QPtrList< Provider > | List |
Public Member Functions | |
Provider () | |
Provider (const QDomElement &) | |
~Provider () | |
void | setName (const QString &) |
QString | name () const |
void | setDownloadUrl (const KURL &) |
KURL | downloadUrl () const |
KURL | downloadUrlVariant (QString variant) const |
void | setUploadUrl (const KURL &) |
KURL | uploadUrl () const |
void | setNoUploadUrl (const KURL &) |
KURL | noUploadUrl () const |
void | setNoUpload (bool) |
bool | noUpload () const |
void | setIcon (const KURL &) |
KURL | icon () const |
Protected Member Functions | |
void | parseDomElement (const QDomElement &) |
QDomElement | createDomElement (QDomDocument &, QDomElement &parent) |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 85 of file provider.cpp. |
|
Constructor with XML feed.
Definition at line 89 of file provider.cpp. |
|
Destructor.
Definition at line 94 of file provider.cpp. |
Member Function Documentation
|
Retrieves the download URL.
Definition at line 126 of file provider.cpp. |
|
Variant to retrieve 'tagged' download URLs. Variant can be one of 'score', 'downloads', 'latest'.
Definition at line 71 of file provider.cpp. |
|
Retrieves the icon URL for this provider.
Definition at line 115 of file provider.cpp. |
|
Retrieves the common name of the provider.
Definition at line 104 of file provider.cpp. |
|
Query whether provider supports uploads.
Definition at line 159 of file provider.cpp. |
|
Retrieves the URL where a user is led if the provider does not support uploads.
Definition at line 148 of file provider.cpp. |
|
Sets the download URL.
Definition at line 121 of file provider.cpp. |
|
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 110 of file provider.cpp. |
|
Sets the common name of the provider.
Definition at line 99 of file provider.cpp. |
|
Indicate whether provider supports uploads.
Definition at line 154 of file provider.cpp. |
|
Sets the URL where a user is led if the provider does not support uploads.
Definition at line 143 of file provider.cpp. |
|
Sets the upload URL.
Definition at line 132 of file provider.cpp. |
|
Retrieves the upload URL.
Definition at line 137 of file provider.cpp. |
The documentation for this class was generated from the following files: