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

KNewStuff

knewstuffbutton.h

Go to the documentation of this file.
00001 /*
00002     This file is part of KNewStuff.
00003     Copyright (c) 2004 Aaron J. Seigo <aseigo@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KNEWSTUFFBUTTON_H
00022 #define KNEWSTUFFBUTTON_H
00023 
00024 #include <knewstuff2/knewstuff_export.h>
00025 
00026 #include <kpushbutton.h>
00027 
00028 namespace KNS
00029 {
00030 
00031 class Engine;
00032 
00033 // FIXME: port properly to KNS2, less accessors for apps, more *.knsrc usage
00039 class Button : public KPushButton
00040 {
00041     Q_OBJECT
00042 
00043 public:
00058     Button(const QString& what,
00059            const QString& providerList,
00060            const QString& resourceType,
00061            QWidget* parent);
00062 
00070     Button(QWidget* parent);
00071 
00075     void setProviderList(const QString& providerList);
00076 
00081     void setResourceType(const QString& resourceType);
00082 
00087     void setButtonText(const QString& what);
00088 
00089 Q_SIGNALS:
00094     void aboutToShowDialog();
00095 
00099     void dialogFinished();
00100 
00101 protected Q_SLOTS:
00102     void showDialog();
00103 
00104 private:
00105     void init();
00106 
00107     class ButtonPrivate;
00108     ButtonPrivate* const d;
00109 
00110     QString m_providerList;
00111     QString m_type;
00112     Engine * m_engine;
00113 };
00114 
00115 }
00116 
00117 #endif // KNEWSTUFFBUTTON_H

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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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