| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#pragma once |
| 21 |
|
| 22 |
#include <QLabel> |
| 23 |
#include <QString> |
| 24 |
|
| 25 |
#include "Userphrase.h" |
| 26 |
|
| 27 |
class Notification final: public QLabel { |
| 28 |
Q_OBJECT |
| 29 |
|
| 30 |
public: |
| 31 |
explicit Notification(QWidget* parent = 0); |
| 32 |
Notification(const Notification&) = delete; |
| 33 |
Notification& operator=(const Notification&) = delete; |
| 34 |
virtual ~Notification() = default; |
| 35 |
|
| 36 |
public slots: |
| 37 |
void notifyImportCompleted(bool result, const QString& path, size_t imported, size_t total); |
| 38 |
void notifyExportCompleted(bool result, const QString& path, size_t exported); |
| 39 |
void notifyAddNewPhraseCompleted(const Userphrase& userphrase); |
| 40 |
void notifyRemovePhraseCompleted(size_t count); |
| 41 |
void notifyRefreshCompleted(size_t count); |
| 42 |
void notifyAddNewPhraseFailed(); |
| 43 |
void notifyUndoCompleted(const QString &phrase); |
| 44 |
}; |