21 #ifndef KNEWSTUFF_PROVIDER_H
22 #define KNEWSTUFF_PROVIDER_H
24 #include <tqcstring.h>
27 #include <tqptrlist.h>
32 namespace TDEIO {
class Job; }
51 typedef TQPtrList<Provider> List;
56 Provider( TQString type = TQString::null, TQWidget* parent = 0 );
61 Provider(
const TQDomElement &, TQString type = TQString::null, TQWidget* parent = 0 );
76 void setName(
const TQString & );
83 TQString name()
const;
88 void setDownloadUrl(
const KURL & );
95 KURL downloadUrl()
const;
103 KURL downloadUrlVariant( TQString variant )
const;
108 void setUploadUrl(
const KURL & );
115 KURL uploadUrl()
const;
123 void setNoUploadUrl(
const KURL & );
131 KURL noUploadUrl()
const;
136 void setNoUpload(
bool );
143 bool noUpload()
const;
150 void setIcon(
const KURL & );
160 void parseDomElement(
const TQDomElement & );
162 TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent );
165 void slotJobData( TDEIO::Job *,
const TQByteArray & );
166 void slotJobResult( TDEIO::Job * );
169 void providerLoaded();
182 TQString mContentType;
211 void load(
const TQString &type,
const TQString &providerList = TQString::null );
218 void percent(TDEIO::Job *job,
unsigned long percent);
222 void slotJobData( TDEIO::Job *,
const TQByteArray & );
223 void slotJobResult( TDEIO::Job * );
224 void providerLoaded();
227 TQWidget *mParentWidget;
230 TQString mContentType;
232 Provider::List mProviders;
TDENewStuff provider loader.
void providersLoaded(Provider::List *)
Indicates that the list of providers has been successfully loaded.
TDENewStuff provider container.
Handles security releated issues, like signing, verifying.