KNewStuff
KNS::Provider Class Reference
#include <provider.h>
Detailed Description
KNewStuff provider container.This class provides accessors for the provider object. It should probably not be used directly by the application.
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 53 of file provider.h.
Public Types | |
typedef QList< Provider * > | List |
Public Member Functions | |
void | addDownloadUrlFeed (const QString &feedtype, Feed *feed) |
Feed * | downloadUrlFeed (const QString &feedtype) const |
QStringList | feeds () const |
KUrl | icon () const |
KTranslatable | name () const |
KUrl | noUploadUrl () const |
Provider () | |
void | setIcon (const KUrl &) |
void | setName (const KTranslatable &name) |
void | setNoUploadUrl (const KUrl &) |
void | setUploadUrl (const KUrl &) |
void | setWebAccess (const KUrl &) |
void | setWebService (const KUrl &) |
KUrl | uploadUrl () const |
KUrl | webAccess () const |
KUrl | webService () const |
~Provider () |
Member Typedef Documentation
typedef QList<Provider*> KNS::Provider::List |
Definition at line 56 of file provider.h.
Constructor & Destructor Documentation
Provider::Provider | ( | ) |
Provider::~Provider | ( | ) |
Member Function Documentation
Adds a feed URL.
Each feed is assigned an internal identifier string. The empty string represents the default feed.
- Parameters:
-
feedtype String representing the feed type feed Feed to add to this provider
Definition at line 46 of file provider.cpp.
Feed to retrieve for the given feed type.
The feed can be one of 'score', 'downloads', 'latest'. It can also be the empty string for the default feed. For all feeds not present here, null is returned.
- Returns:
- download feed of a certain feed type
Definition at line 52 of file provider.cpp.
QStringList Provider::feeds | ( | ) | const |
Returns a list of all feeds.
- Returns:
- List of identifier names for the feeds of this provider
Definition at line 121 of file provider.cpp.
KUrl Provider::icon | ( | ) | const |
Retrieves the icon URL for this provider.
- Returns:
- icon URL
Definition at line 76 of file provider.cpp.
KTranslatable Provider::name | ( | ) | const |
Retrieves the common name of the provider.
- Returns:
- provider name
Definition at line 66 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 96 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 71 of file provider.cpp.
void Provider::setName | ( | const KTranslatable & | name | ) |
void Provider::setNoUploadUrl | ( | const KUrl & | url | ) |
Sets the URL where a user is led if the provider does not support uploads.
Definition at line 91 of file provider.cpp.
void Provider::setUploadUrl | ( | const KUrl & | url | ) |
void Provider::setWebAccess | ( | const KUrl & | url | ) |
void Provider::setWebService | ( | const KUrl & | url | ) |
KUrl Provider::uploadUrl | ( | ) | const |
KUrl Provider::webAccess | ( | ) | const |
Retrieves the web frontend URL.
- Returns:
- web frontend URL
Definition at line 106 of file provider.cpp.
KUrl Provider::webService | ( | ) | const |
Retrieves the URL to the DXS Web Service.
- Returns:
- DXS Web Service URL
Definition at line 116 of file provider.cpp.
The documentation for this class was generated from the following files: