#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
-
what text describing what is being downloaded. will be shown on the button as "Download New <what>" providerList the URL to the list of providers; if empty we first try the ProvidersUrl from TDEGlobal::config, then we fall back to a hardcoded value resourceType the Hotstuff data type for this downlaod such as "korganizer/calendar" parent the parent widget name the 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
-
parent the parent widget name the name to be used for this widget
Definition at line 44 of file knewstuffbutton.cpp.
Member Function Documentation
◆ 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
|
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.
The documentation for this class was generated from the following files: