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

tdenewstuff

  • KNS
  • Button
Signals | Public Member Functions | Protected Slots | List of all members
KNS::Button Class Reference

#include <knewstuffbutton.h>

Inherits KPushButton.

Signals

void aboutToShowDialog ()
 
void dialogFinished ()
 

Public Member Functions

 Button (const TQString &what, const TQString &providerList, const TQString &resourceType, TQWidget *parent, const char *name)
 
 Button (TQWidget *parent, const char *name)
 
void setProviderList (const TQString &providerList)
 
void setResourceType (const TQString &resourceType)
 
void setButtonText (const TQString &what)
 

Protected Slots

void showDialog ()
 

Detailed Description

TDEHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating most of the details involved in using TDEHotNewStuff in the button itself.

Since
3.4

Definition at line 37 of file knewstuffbutton.h.

Constructor & Destructor Documentation

◆ Button() [1/2]

KNS::Button::Button ( const TQString &  what,
const TQString &  providerList,
const TQString &  resourceType,
TQWidget *  parent,
const char *  name 
)

Constructor used when the details of the TDEHotNewStuff download is known when the button is created.

Parameters
whattext describing what is being downloaded. will be shown on the button as "Download New <what>"
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
resourceTypethe Hotstuff data type for this downlaod such as "korganizer/calendar"
parentthe parent widget
namethe name to be used for this widget

Definition at line 30 of file knewstuffbutton.cpp.

◆ Button() [2/2]

KNS::Button::Button ( TQWidget *  parent,
const char *  name 
)

Constructor used when the details of the TDEHotNewStuff download is not known in advance of the button being created.

Parameters
parentthe parent widget
namethe name to be used for this widget

Definition at line 44 of file knewstuffbutton.cpp.

Member Function Documentation

◆ aboutToShowDialog

void KNS::Button::aboutToShowDialog ( )
signal

emitted when the Hot New Stuff dialog is about to be shown, usually as a result of the user having click on the button

◆ dialogFinished

void KNS::Button::dialogFinished ( )
signal

emitted when the Hot New Stuff dialog has been closed

◆ setButtonText()

void KNS::Button::setButtonText ( const TQString &  what)

set the text that should appear on the button.

will be prefaced with i18n("Download New")

Definition at line 59 of file knewstuffbutton.cpp.

◆ setProviderList()

void KNS::Button::setProviderList ( const TQString &  providerList)

set the URL to the list of providers for this button to use

Definition at line 64 of file knewstuffbutton.cpp.

◆ setResourceType()

void KNS::Button::setResourceType ( const TQString &  resourceType)

the Hotstuff data type for this downlaod such as "korganizer/calendar"

Definition at line 69 of file knewstuffbutton.cpp.

◆ showDialog

void KNS::Button::showDialog ( )
protectedslot

Definition at line 74 of file knewstuffbutton.cpp.


The documentation for this class was generated from the following files:
  • knewstuffbutton.h
  • knewstuffbutton.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.