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

KNewStuff

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

#include <knewstuffbutton.h>

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

Signals

void aboutToShowDialog ()
 
void dialogFinished ()
 
- Signals inherited from KPushButton
void authorized (KAuth::Action *action)
 

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)
 
- Public Member Functions inherited from KPushButton
 KPushButton (QWidget *parent=0)
 
 KPushButton (const QString &text, QWidget *parent=0)
 
 KPushButton (const KGuiItem &item, QWidget *parent=0)
 
 KPushButton (const KIcon &icon, const QString &text, QWidget *parent=0)
 
 ~KPushButton ()
 
KAuth::Action * authAction () const
 
QMenu * delayedMenu ()
 
KStandardGuiItem::StandardItem guiItem () const
 
bool isDragEnabled () const
 
void setAuthAction (KAuth::Action *action)
 
void setAuthAction (const QString &actionName)
 
void setDelayedMenu (QMenu *delayed_menu)
 
void setDragEnabled (bool enable)
 
void setGuiItem (const KGuiItem &item)
 
void setGuiItem (KStandardGuiItem::StandardItem item)
 
void setIcon (const QIcon &pix)
 
void setIcon (const KIcon &icon)
 
void setText (const QString &text)
 
virtual QSize sizeHint () const
 

Protected Slots

void showDialog ()
 

Additional Inherited Members

- Protected Member Functions inherited from KPushButton
virtual QDrag * dragObject ()
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void paintEvent (QPaintEvent *)
 
virtual void startDrag ()
 
- Properties inherited from KPushButton
bool isDragEnabled
 

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

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 30 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 44 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 59 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 64 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 69 of file knewstuff2/ui/knewstuffbutton.cpp.

void KNS::Button::showDialog ( )
protectedslot

Definition at line 74 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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