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

tdenewstuff

  • tdenewstuff
knewstuffbutton.h
1/*
2 Copyright (c) 2004 Aaron J. Seigo <aseigo@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _khotnewbutton_h
21#define _khotnewbutton_h
22
23#include <kpushbutton.h>
24
25namespace KNS
26{
27
28class DownloadDialog;
29
37class Button : public KPushButton
38{
39 TQ_OBJECT
40
41 public:
56 Button(const TQString& what,
57 const TQString& providerList,
58 const TQString& resourceType,
59 TQWidget* parent, const char* name);
60
68 Button(TQWidget* parent, const char* name);
69
73 void setProviderList(const TQString& providerList);
74
79 void setResourceType(const TQString& resourceType);
80
85 void setButtonText(const TQString& what);
86
87 signals:
92 void aboutToShowDialog();
93
97 void dialogFinished();
98
99 protected slots:
100 void showDialog();
101
102 private:
103 void init();
104
105 class ButtonPrivate;
106 ButtonPrivate* d;
107
108 TQString m_providerList;
109 TQString m_type;
110 DownloadDialog* m_downloadDialog;
111};
112
113}
114
115#endif
KNS::Button
TDEHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating m...
Definition: knewstuffbutton.h:38
KNS::Button::setProviderList
void setProviderList(const TQString &providerList)
set the URL to the list of providers for this button to use
Definition: knewstuffbutton.cpp:64
KNS::Button::aboutToShowDialog
void aboutToShowDialog()
emitted when the Hot New Stuff dialog is about to be shown, usually as a result of the user having cl...
KNS::Button::setResourceType
void setResourceType(const TQString &resourceType)
the Hotstuff data type for this downlaod such as "korganizer/calendar"
Definition: knewstuffbutton.cpp:69
KNS::Button::dialogFinished
void dialogFinished()
emitted when the Hot New Stuff dialog has been closed
KNS::Button::setButtonText
void setButtonText(const TQString &what)
set the text that should appear on the button.
Definition: knewstuffbutton.cpp:59
KNS::Button::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.
Definition: knewstuffbutton.cpp:30
KNS::DownloadDialog
Common download dialog for data browsing and installation.
Definition: downloaddialog.h:58
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:37

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.