• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdenewstuff
 

tdenewstuff

  • KNS
  • DownloadDialog
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
KNS::DownloadDialog Class Reference

#include <downloaddialog.h>

Inherits KDialogBase.

Public Slots

void slotProviders (Provider::List *list)
 

Public Member Functions

 DownloadDialog (Engine *engine, TQWidget *parent, const TQString &caption)
 
 DownloadDialog (TQWidget *parent, const TQString &caption)
 
 ~DownloadDialog ()
 
void setType (TQString type)
 
void load ()
 
void setProviderList (const TQString &providerList)
 
void load (TQString providerList)
 
void addProvider (Provider *p)
 
void addEntry (Entry *entry)
 
void addEntry (Entry *entry, const TQStringList &variants)
 
void clear ()
 
 DownloadDialog (Engine *engine, TQWidget *parent=0)
 
 DownloadDialog (TQWidget *parent=0)
 
TQPtrList< Entry > installedEntries ()
 

Static Public Member Functions

static void open (const TQString &type, const TQString &caption)
 
static void open (TQString type) TDE_DEPRECATED
 

Protected Slots

void slotApply ()
 
void slotOk ()
 

Detailed Description

Common download dialog for data browsing and installation.

It provides an easy-to-use convenience method named open() which does all the work, unless a more complex operation is needed.

TDENewStuff::DownloadDialog::open("kdesktop/wallpapers");
Author
Josef Spillner (spill.nosp@m.ner@.nosp@m.kde.o.nosp@m.rg)
Maintainer:
Josef Spillner (spill.nosp@m.ner@.nosp@m.kde.o.nosp@m.rg)

Definition at line 57 of file downloaddialog.h.

Constructor & Destructor Documentation

◆ DownloadDialog() [1/4]

DownloadDialog::DownloadDialog ( Engine *  engine,
TQWidget *  parent,
const TQString &  caption 
)

Constructor.

Parameters
enginea pre-built engine object, or NULL if the download dialog should create an engine on its own
parentthe parent window
captionthe dialog caption

Definition at line 129 of file downloaddialog.cpp.

◆ DownloadDialog() [2/4]

DownloadDialog::DownloadDialog ( TQWidget *  parent,
const TQString &  caption 
)

Alternative constructor.

Always uses an internal engine.

Parameters
parentthe parent window
captionthe dialog caption

Definition at line 136 of file downloaddialog.cpp.

◆ ~DownloadDialog()

DownloadDialog::~DownloadDialog ( )

Destructor.

Definition at line 170 of file downloaddialog.cpp.

◆ DownloadDialog() [3/4]

DownloadDialog::DownloadDialog ( Engine *  engine,
TQWidget *  parent = 0 
)

Constructor.

Parameters
enginea pre-built engine object, or NULL if the download dialog should create an engine on its own
parentthe parent window

Definition at line 106 of file downloaddialog.cpp.

◆ DownloadDialog() [4/4]

DownloadDialog::DownloadDialog ( TQWidget *  parent = 0)

Alternative constructor.

Always uses an internal engine.

Parameters
parentthe parent window

Definition at line 113 of file downloaddialog.cpp.

Member Function Documentation

◆ addEntry() [1/2]

void DownloadDialog::addEntry ( Entry *  entry)

Adds an additional entry to the current provider.

This is normally done internally.

Parameters
entrya Hotstuff data entry to be added

Definition at line 488 of file downloaddialog.cpp.

◆ addEntry() [2/2]

void DownloadDialog::addEntry ( Entry *  entry,
const TQStringList &  variants 
)

Adds an additional entry to the current provider.

This is normally done internal. This version takes into accounts the download variant.

Parameters
entrya Hotstuff data entry to be added
variantsall variants this entry is intended for

Definition at line 451 of file downloaddialog.cpp.

◆ addProvider()

void DownloadDialog::addProvider ( Provider *  p)

Adds another provider to the download dialog.

This is normally done internally.

Parameters
pthe Hotstuff provider to be added

Definition at line 231 of file downloaddialog.cpp.

◆ clear()

void DownloadDialog::clear ( )

Clears the entry list of the current provider.

This is normally done internally.

Definition at line 189 of file downloaddialog.cpp.

◆ installedEntries()

TQPtrList< Entry > DownloadDialog::installedEntries ( )

Returns the list of installed data entries.

Returns
list of data entries which have been installed

Definition at line 1003 of file downloaddialog.cpp.

◆ load() [1/2]

void DownloadDialog::load ( )

Fetches descriptions of all available data, optionally considering a previously set type.

Definition at line 179 of file downloaddialog.cpp.

◆ load() [2/2]

void DownloadDialog::load ( TQString  providerList)

Fetches descriptions of all available data, optionally considering a previously set type.

Parameters
providerListthe URl to the list of providers; if empty we first try the ProvidersUrl from TDEGlobal::config, then we fall back to a hardcoded value.

Definition at line 184 of file downloaddialog.cpp.

◆ open() [1/2]

void DownloadDialog::open ( const TQString &  type,
const TQString &  caption 
)
static

Opens the download dialog.

This is a convenience method which automatically sets up the dialog.

See also
setType()
load()
Parameters
typea data type such as "korganizer/calendar"
captionthe dialog caption

Definition at line 989 of file downloaddialog.cpp.

◆ open() [2/2]

void DownloadDialog::open ( TQString  type)
static

Opens the download dialog.

This is a convenience method which automatically sets up the dialog.

See also
setType()
load()
Parameters
typea data type such as "korganizer/calendar"
Deprecated:
use open( const TQString& type, const TQString& caption );

Definition at line 120 of file downloaddialog.cpp.

◆ setProviderList()

void DownloadDialog::setProviderList ( const TQString &  providerList)

Explicitly uses this provider list instead of the one read from the application configuration.

Parameters
providerListthe URL of the provider list
Since
3.4

Definition at line 976 of file downloaddialog.cpp.

◆ setType()

void DownloadDialog::setType ( TQString  type)

Restricts the display of available data to a certain data type.

Parameters
typea Hotstuff data type such as "korganizer/calendar"

Definition at line 971 of file downloaddialog.cpp.

◆ slotApply

void DownloadDialog::slotApply ( )
protectedslot

Definition at line 985 of file downloaddialog.cpp.

◆ slotOk

void DownloadDialog::slotOk ( )
protectedslot

Definition at line 981 of file downloaddialog.cpp.

◆ slotProviders

void DownloadDialog::slotProviders ( Provider::List *  list)
slot

Availability of the provider list.

Parameters
listlist of Hotstuff providers

Definition at line 211 of file downloaddialog.cpp.


The documentation for this class was generated from the following files:
  • downloaddialog.h
  • downloaddialog.cpp

tdenewstuff

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

tdenewstuff

Skip menu "tdenewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdenewstuff by doxygen 1.9.4
This website is maintained by Timothy Pearson.