KNewStuff
knewstuffbutton.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KNEWSTUFFBUTTON_H
00020 #define KNEWSTUFFBUTTON_H
00021
00022 #include <knewstuff2/knewstuff_export.h>
00023
00024 #include <kpushbutton.h>
00025
00026 namespace KNS
00027 {
00028
00029 class Engine;
00030
00031
00037 class Button : public KPushButton
00038 {
00039 Q_OBJECT
00040
00041 public:
00056 Button(const QString& what,
00057 const QString& providerList,
00058 const QString& resourceType,
00059 QWidget* parent);
00060
00067 Button(QWidget* parent);
00068
00072 void setProviderList(const QString& providerList);
00073
00078 void setResourceType(const QString& resourceType);
00079
00084 void setButtonText(const QString& what);
00085
00086 Q_SIGNALS:
00091 void aboutToShowDialog();
00092
00096 void dialogFinished();
00097
00098 protected Q_SLOTS:
00099 void showDialog();
00100
00101 private:
00102 void init();
00103
00104 class ButtonPrivate;
00105 ButtonPrivate* const d;
00106
00107 QString m_providerList;
00108 QString m_type;
00109 Engine * m_engine;
00110 };
00111
00112 }
00113
00114 #endif // KNEWSTUFFBUTTON_H