| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef MOCK_NOTIFICATiON_H |
| 22 |
#define MOCK_NOTIFICATiON_H |
| 23 |
|
| 24 |
#include "notification.h" |
| 25 |
|
| 26 |
#include <QByteArray> |
| 27 |
#include <QList> |
| 28 |
#include <QPair> |
| 29 |
#include <QString> |
| 30 |
|
| 31 |
using namespace OnlineAccountsUi; |
| 32 |
|
| 33 |
namespace OnlineAccountsUi { |
| 34 |
|
| 35 |
typedef QPair<QString,QString> ActionPair; |
| 36 |
|
| 37 |
class NotificationPrivate: public QObject |
| 38 |
{ |
| 39 |
Q_OBJECT |
| 40 |
Q_DECLARE_PUBLIC(Notification) |
| 41 |
|
| 42 |
public: |
| 43 |
NotificationPrivate(const QString &summary, |
| 44 |
const QString &body, |
| 45 |
Notification *notification); |
| 46 |
~NotificationPrivate(); |
| 47 |
static NotificationPrivate *mocked(Notification *n) { return n->d_ptr; } |
| 48 |
|
| 49 |
static QList<Notification *> allNotifications; |
| 50 |
|
| 51 |
void invokeAction(const QString &action); |
| 52 |
|
| 53 |
Q_SIGNALS: |
| 54 |
void showCalled(); |
| 55 |
|
| 56 |
public: |
| 57 |
QString m_summary; |
| 58 |
QString m_body; |
| 59 |
QList<ActionPair> m_actions; |
| 60 |
bool m_isSnapDecision; |
| 61 |
mutable Notification *q_ptr; |
| 62 |
}; |
| 63 |
|
| 64 |
} |
| 65 |
|
| 66 |
#endif |