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

KNewStuff

  • KNS
  • Button
Signals | Public Member Functions | Protected Slots

KNS::Button Class Reference

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

#include <knewstuffbutton.h>

Inheritance diagram for KNS::Button:
Inheritance graph
[legend]

List of all members.

Signals

void aboutToShowDialog ()
void dialogFinished ()

Public Member Functions

 Button (const QString &what, const QString &providerList, const QString &resourceType, QWidget *parent)
 Button (QWidget *parent)
void setButtonText (const QString &what)
void setProviderList (const QString &providerList)
void setResourceType (const QString &resourceType)

Protected Slots

void showDialog ()

Detailed Description

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

*

Deprecated, use knewstuff3!

Definition at line 39 of file knewstuff2/ui/knewstuffbutton.h.


Constructor & Destructor Documentation

builddir build BUILD kdelibs knewstuff knewstuff2 ui knewstuffbutton cpp KNS::Button::Button ( const QString &  what,
const QString &  providerList,
const QString &  resourceType,
QWidget *  parent 
)

Constructor used when the details of the KHotNewStuff 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 KGlobal::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 31 of file knewstuff2/ui/knewstuffbutton.cpp.

KNS::Button::Button ( QWidget *  parent)

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

Parameters:
parentthe parent widget

Definition at line 45 of file knewstuff2/ui/knewstuffbutton.cpp.


Member Function Documentation

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

void KNS::Button::dialogFinished ( ) [signal]

emitted when the Hot New Stuff dialog has been closed

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

set the text that should appear on the button.

will be prefaced with i18n("Download New")

Definition at line 60 of file knewstuff2/ui/knewstuffbutton.cpp.

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

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

Definition at line 65 of file knewstuff2/ui/knewstuffbutton.cpp.

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

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

Definition at line 70 of file knewstuff2/ui/knewstuffbutton.cpp.

void KNS::Button::showDialog ( ) [protected, slot]

Definition at line 75 of file knewstuff2/ui/knewstuffbutton.cpp.


The documentation for this class was generated from the following files:
  • knewstuff2/ui/knewstuffbutton.h
  • knewstuff2/ui/knewstuffbutton.cpp

KNewStuff

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal