Changeset View
Changeset View
Standalone View
Standalone View
src/ui/progressindicator_p.h
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | 16 | | |||
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KNEWSTUFF3_PROGRESSINDICATOR_P_H | 21 | #ifndef KNEWSTUFF3_PROGRESSINDICATOR_P_H | ||
22 | #define KNEWSTUFF3_PROGRESSINDICATOR_P_H | 22 | #define KNEWSTUFF3_PROGRESSINDICATOR_P_H | ||
23 | 23 | | |||
24 | #include "errorcode.h" | ||||
25 | | ||||
24 | #include <QFrame> | 26 | #include <QFrame> | ||
25 | #include <kpixmapsequence.h> | 27 | #include <kpixmapsequence.h> | ||
26 | 28 | | |||
27 | class QVBoxLayout; | 29 | class QVBoxLayout; | ||
28 | class QLabel; | 30 | class QLabel; | ||
29 | class QString; | 31 | class QString; | ||
30 | class KPixmapSequenceWidget; | 32 | class KPixmapSequenceWidget; | ||
31 | 33 | | |||
Show All 11 Lines | |||||
43 | class ProgressIndicator : public QFrame | 45 | class ProgressIndicator : public QFrame | ||
44 | { | 46 | { | ||
45 | Q_OBJECT | 47 | Q_OBJECT | ||
46 | public: | 48 | public: | ||
47 | explicit ProgressIndicator(QWidget *parent); | 49 | explicit ProgressIndicator(QWidget *parent); | ||
48 | 50 | | |||
49 | public Q_SLOTS: | 51 | public Q_SLOTS: | ||
50 | void busy(const QString &message); | 52 | void busy(const QString &message); | ||
51 | void error(const QString &message); | 53 | void error(const KNSCore::ErrorCode &errorCode, const QString &message, const QVariant &metadata); | ||
52 | void idle(const QString &message); | 54 | void idle(const QString &message); | ||
53 | 55 | | |||
54 | private: | 56 | private: | ||
55 | QLabel *m_statusLabel; | 57 | QLabel *m_statusLabel; | ||
56 | KPixmapSequenceWidget *busyWidget; | 58 | KPixmapSequenceWidget *busyWidget; | ||
57 | 59 | | |||
58 | KPixmapSequence m_busyPixmap; | 60 | KPixmapSequence m_busyPixmap; | ||
59 | KPixmapSequence m_errorPixmap; | 61 | KPixmapSequence m_errorPixmap; | ||
60 | }; | 62 | }; | ||
61 | } | 63 | } | ||
62 | 64 | | |||
63 | #endif | 65 | #endif |