• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KNewStuff

  • KNS
  • Provider
Public Types | Public Member Functions | List of all members
KNS::Provider Class Reference

#include <provider.h>

Public Types

typedef QList< Provider * > List
 

Public Member Functions

 Provider ()
 
 ~Provider ()
 
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
 
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
 

Detailed Description

KNewStuff provider container.

This class provides accessors for the provider object. It should probably not be used directly by the application.

Author
Cornelius Schumacher (schum.nosp@m.ache.nosp@m.r@kde.nosp@m..org)
Maintainer:
Josef Spillner (spill.nosp@m.ner@.nosp@m.kde.o.nosp@m.rg)

Definition at line 51 of file knewstuff2/core/provider.h.

Member Typedef Documentation

typedef QList<Provider*> KNS::Provider::List

Definition at line 54 of file knewstuff2/core/provider.h.

Constructor & Destructor Documentation

Provider::Provider ( )

Constructor.

Definition at line 33 of file knewstuff2/core/provider.cpp.

Provider::~Provider ( )

Destructor.

Definition at line 38 of file knewstuff2/core/provider.cpp.

Member Function Documentation

void Provider::addDownloadUrlFeed ( const QString &  feedtype,
Feed *  feed 
)

Adds a feed URL.

Each feed is assigned an internal identifier string. The empty string represents the default feed.

Parameters
feedtypeString representing the feed type
feedFeed to add to this provider

Definition at line 44 of file knewstuff2/core/provider.cpp.

Feed * Provider::downloadUrlFeed ( const QString &  feedtype) const

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 50 of file knewstuff2/core/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 119 of file knewstuff2/core/provider.cpp.

KUrl Provider::icon ( ) const

Retrieves the icon URL for this provider.

Returns
icon URL

Definition at line 74 of file knewstuff2/core/provider.cpp.

KTranslatable Provider::name ( ) const

Retrieves the common name of the provider.

Returns
provider name

Definition at line 64 of file knewstuff2/core/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 94 of file knewstuff2/core/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 69 of file knewstuff2/core/provider.cpp.

void Provider::setName ( const KTranslatable &  name)

Sets the common name of the provider.

Definition at line 59 of file knewstuff2/core/provider.cpp.

void Provider::setNoUploadUrl ( const KUrl &  url)

Sets the URL where a user is led if the provider does not support uploads.

Definition at line 89 of file knewstuff2/core/provider.cpp.

void Provider::setUploadUrl ( const KUrl &  url)

Sets the upload URL.

Definition at line 79 of file knewstuff2/core/provider.cpp.

void Provider::setWebAccess ( const KUrl &  url)

Sets the URL of a web frontend for the provider.

Definition at line 99 of file knewstuff2/core/provider.cpp.

void Provider::setWebService ( const KUrl &  url)

Sets the URL of the DXS, if offered by the provider.

Definition at line 109 of file knewstuff2/core/provider.cpp.

KUrl Provider::uploadUrl ( ) const

Retrieves the upload URL.

Returns
upload URL

Definition at line 84 of file knewstuff2/core/provider.cpp.

KUrl Provider::webAccess ( ) const

Retrieves the web frontend URL.

Returns
web frontend URL

Definition at line 104 of file knewstuff2/core/provider.cpp.

KUrl Provider::webService ( ) const

Retrieves the URL to the DXS Web Service.

Returns
DXS Web Service URL

Definition at line 114 of file knewstuff2/core/provider.cpp.


The documentation for this class was generated from the following files:
  • knewstuff2/core/provider.h
  • knewstuff2/core/provider.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal