#include <provider.h>
Inherits TQObject.
Public Types | |
typedef TQPtrList< Provider > | List |
Signals | |
void | providerLoaded () |
Public Member Functions | |
Provider (TQString type=TQString::null, TQWidget *parent=0) | |
Provider (const TQDomElement &, TQString type=TQString::null, TQWidget *parent=0) | |
virtual | ~Provider () |
bool | loaded () |
void | setName (const TQString &) |
TQString | name () const |
void | setDownloadUrl (const KURL &) |
KURL | downloadUrl () const |
KURL | downloadUrlVariant (TQString 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 Slots | |
void | slotJobData (TDEIO::Job *, const TQByteArray &) |
void | slotJobResult (TDEIO::Job *) |
Protected Member Functions | |
void | parseDomElement (const TQDomElement &) |
TQDomElement | createDomElement (TQDomDocument &, TQDomElement &parent) |
Detailed Description
TDENewStuff provider container.
This class provides accessors for the provider object. as used by TDENewStuff. It should probably not be used directly by the application.
- Maintainer:
- Timothy Pearson (kb9vq) f@pe arson comp uting .net
Definition at line 47 of file provider.h.
Constructor & Destructor Documentation
◆ Provider() [1/2]
Provider::Provider | ( | TQString | type = TQString::null , |
TQWidget * | parent = 0 |
||
) |
Constructor.
Definition at line 80 of file provider.cpp.
◆ Provider() [2/2]
Provider::Provider | ( | const TQDomElement & | e, |
TQString | type = TQString::null , |
||
TQWidget * | parent = 0 |
||
) |
Constructor with XML feed.
Definition at line 84 of file provider.cpp.
◆ ~Provider()
|
virtual |
Destructor.
Definition at line 89 of file provider.cpp.
Member Function Documentation
◆ downloadUrl()
KURL Provider::downloadUrl | ( | ) | const |
◆ downloadUrlVariant()
KURL Provider::downloadUrlVariant | ( | TQString | variant | ) | const |
Variant to retrieve 'tagged' download URLs.
Variant can be one of 'score', 'downloads', 'latest'.
- Returns
- download specific URL
Definition at line 66 of file provider.cpp.
◆ icon()
KURL Provider::icon | ( | ) | const |
Retrieves the icon URL for this provider.
- Returns
- icon URL
Definition at line 126 of file provider.cpp.
◆ loaded()
bool Provider::loaded | ( | ) |
- Returns
- provider load status
Definition at line 105 of file provider.cpp.
◆ name()
TQString Provider::name | ( | ) | const |
Retrieves the common name of the provider.
- Returns
- provider name
Definition at line 115 of file provider.cpp.
◆ noUpload()
bool Provider::noUpload | ( | ) | const |
Query whether provider supports uploads.
- Returns
- upload support status
Definition at line 170 of file provider.cpp.
◆ noUploadUrl()
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 159 of file provider.cpp.
◆ setDownloadUrl()
void Provider::setDownloadUrl | ( | const KURL & | url | ) |
Sets the download URL.
Definition at line 132 of file provider.cpp.
◆ setIcon()
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 121 of file provider.cpp.
◆ setName()
void Provider::setName | ( | const TQString & | name | ) |
Sets the common name of the provider.
Definition at line 110 of file provider.cpp.
◆ setNoUpload()
void Provider::setNoUpload | ( | bool | enabled | ) |
Indicate whether provider supports uploads.
Definition at line 165 of file provider.cpp.
◆ setNoUploadUrl()
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 154 of file provider.cpp.
◆ setUploadUrl()
void Provider::setUploadUrl | ( | const KURL & | url | ) |
Sets the upload URL.
Definition at line 143 of file provider.cpp.
◆ uploadUrl()
KURL Provider::uploadUrl | ( | ) | const |
The documentation for this class was generated from the following files: