Changeset View
Changeset View
Standalone View
Standalone View
src/browsers/BrowserMessageArea.h
Show All 33 Lines | 32 | public: | |||
---|---|---|---|---|---|
34 | 34 | | |||
35 | ~BrowserMessageArea() | 35 | ~BrowserMessageArea() | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | /* Amarok::Logger virtual methods */ | 39 | /* Amarok::Logger virtual methods */ | ||
40 | virtual void shortMessage( const QString &text ); | 40 | virtual void shortMessage( const QString &text ); | ||
41 | virtual void longMessage( const QString &text, MessageType type ); | 41 | virtual void longMessage( const QString &text, MessageType type ); | ||
42 | virtual void newProgressOperationImpl( KJob * job, const QString & text, QObject *context, | ||||
43 | const std::function<void ()> &function, Qt::ConnectionType type ) override; | ||||
42 | 44 | | |||
43 | virtual void newProgressOperation( KJob *job, const QString &text, QObject *obj, | 45 | virtual void newProgressOperationImpl( QNetworkReply *reply, const QString &text, QObject *obj, | ||
44 | const char *slot, Qt::ConnectionType type ); | 46 | const std::function<void ()> &function, Qt::ConnectionType type ) override; | ||
45 | 47 | | |||
46 | virtual void newProgressOperation( QNetworkReply *reply, const QString &text, QObject *obj, | 48 | virtual void newProgressOperationImpl( QObject *sender, const QMetaMethod &increment, const QMetaMethod &end, const QString &text, | ||
47 | const char *slot, Qt::ConnectionType type ); | 49 | int maximum, QObject *obj, const std::function<void ()> &function, Qt::ConnectionType type ) override; | ||
48 | | ||||
49 | virtual void newProgressOperation( QObject *sender, const QString &text, int maximum, | | |||
50 | QObject *obj, const char *slot, Qt::ConnectionType type ); | | |||
51 | 50 | | |||
52 | Q_SIGNALS: | 51 | Q_SIGNALS: | ||
53 | void signalLongMessage( const QString & text, MessageType type ); | 52 | void signalLongMessage( const QString & text, MessageType type ); | ||
54 | 53 | | |||
55 | private Q_SLOTS: | 54 | private Q_SLOTS: | ||
56 | void hideProgress(); | 55 | void hideProgress(); | ||
57 | void nextShortMessage(); | 56 | void nextShortMessage(); | ||
58 | void hideLongMessage(); | | |||
59 | void slotLongMessage( const QString &text, MessageType type = Information ); | 57 | void slotLongMessage( const QString &text, MessageType type = Information ); | ||
60 | 58 | | |||
61 | private: | 59 | private: | ||
62 | CompoundProgressBar *m_progressBar; | 60 | CompoundProgressBar *m_progressBar; | ||
63 | QLabel *m_messageLabel; | 61 | QLabel *m_messageLabel; | ||
64 | 62 | | |||
65 | bool m_busy; | 63 | bool m_busy; | ||
66 | QTimer *m_shortMessageTimer; | 64 | QTimer *m_shortMessageTimer; | ||
67 | QList<QString> m_shortMessageQueue; | 65 | QList<QString> m_shortMessageQueue; | ||
68 | }; | 66 | }; | ||
69 | 67 | | |||
70 | #endif // BROWSERMESSAGEAREA_H | 68 | #endif // BROWSERMESSAGEAREA_H |