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

KNewStuff

  • sources
  • kde-4.14
  • kdelibs
  • knewstuff
  • knewstuff2
  • ui
knewstuff2/ui/knewstuffbutton.h
Go to the documentation of this file.
1 /*
2  This file is part of KNewStuff2.
3  Copyright (c) 2004 Aaron J. Seigo <aseigo@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef KNEWSTUFFBUTTON_H
20 #define KNEWSTUFFBUTTON_H
21 
22 #include <knewstuff2/knewstuff_export.h>
23 
24 #include <kpushbutton.h>
25 
26 namespace KNS
27 {
28 
29 class Engine;
30 
31 // FIXME: port properly to KNS2, less accessors for apps, more *.knsrc usage
39 class KNEWSTUFF_EXPORT_DEPRECATED Button : public KPushButton
40 {
41  Q_OBJECT
42 
43 public:
58  Button(const QString& what,
59  const QString& providerList,
60  const QString& resourceType,
61  QWidget* parent);
62 
69  Button(QWidget* parent);
70 
74  void setProviderList(const QString& providerList);
75 
80  void setResourceType(const QString& resourceType);
81 
86  void setButtonText(const QString& what);
87 
88 Q_SIGNALS:
93  void aboutToShowDialog();
94 
98  void dialogFinished();
99 
100 protected Q_SLOTS:
101  void showDialog();
102 
103 private:
104  void init();
105 
106  class ButtonPrivate;
107  ButtonPrivate* const d;
108 
109  QString m_providerList;
110  QString m_type;
111  Engine * m_engine;
112 };
113 
114 }
115 
116 #endif // KNEWSTUFFBUTTON_H
KPushButton
QWidget
KNS::Button
KHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating mos...
Definition: knewstuff2/ui/knewstuffbutton.h:39
knewstuff_export.h
QString
kpushbutton.h
KNS::Engine
The KNewStuff2 engine is the top-level class to handle GHNS and DXS workflows.
Definition: knewstuff2/engine.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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