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

KNewStuff

  • KNS3
  • Button
Signals | Public Member Functions | Protected Slots
KNS3::Button Class Reference

#include <knewstuffbutton.h>

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

List of all members.

Signals

void aboutToShowDialog ()
void dialogFinished (const KNS3::Entry::List &changedEntries)

Public Member Functions

 Button (const QString &text, const QString &configFile, QWidget *parent)
 Button (QWidget *parent)
 ~Button ()
void setButtonText (const QString &text)
void setConfigFile (const QString &configFile)

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.

Since:
4.4

Definition at line 37 of file knewstuff3/knewstuffbutton.h.


Constructor & Destructor Documentation

KNS3::Button::Button ( const QString &  text,
const QString &  configFile,
QWidget *  parent 
)

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

Parameters:
textdescribing what is being downloaded. It should be a text beginning with "Download New ..." for consistency
configFilethe name of the .knsrc file
parentthe parent widget

Definition at line 33 of file knewstuff3/knewstuffbutton.cpp.

KNS3::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 knewstuff3/knewstuffbutton.cpp.

KNS3::Button::~Button ( )

Definition at line 52 of file knewstuff3/knewstuffbutton.cpp.


Member Function Documentation

void KNS3::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 KNS3::Button::dialogFinished ( const KNS3::Entry::List &  changedEntries) [signal]

emitted when the Hot New Stuff dialog has been closed

void KNS3::Button::setButtonText ( const QString &  text)

set the text that should appear on the button.

will be prefaced with i18n("Download New")

Definition at line 63 of file knewstuff3/knewstuffbutton.cpp.

void KNS3::Button::setConfigFile ( const QString &  configFile)

set the name of the .knsrc file to use

Definition at line 68 of file knewstuff3/knewstuffbutton.cpp.

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

Definition at line 73 of file knewstuff3/knewstuffbutton.cpp.


The documentation for this class was generated from the following files:
  • knewstuff3/knewstuffbutton.h
  • knewstuff3/knewstuffbutton.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:57:22 by doxygen 1.8.0 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-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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