~macslow/unity8/fix-snap-decision-proxy-model-hack

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Notifications/MockNotificationModel.h

  • Committer: Mirco Müller
  • Date: 2015-01-20 16:01:14 UTC
  • Revision ID: mirco.mueller@ubuntu.com-20150120160114-7m3q4ene6jghwoo2
Phew... now it works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    virtual QHash<int, QByteArray> roleNames() const;
41
41
 
42
42
    Q_INVOKABLE void append(MockNotification* n);
43
 
    MockNotification* getNotification(unsigned int id) const;
 
43
    MockNotification* getNotification(int id) const;
44
44
    MockNotification* getNotification(const QString &summary) const;
45
 
    bool hasNotification(unsigned int id) const;
 
45
    bool hasNotification(int id) const;
46
46
 
47
47
    // getRaw() is only meant to be used from QML, since QML cannot handle
48
48
    // QSharedPointers... on C++-side only use getNotification()
49
 
    Q_INVOKABLE MockNotification* getRaw(const unsigned int notificationId) const;
 
49
    Q_INVOKABLE MockNotification* getRaw(const int notificationId) const;
50
50
 
51
51
    Q_INVOKABLE int queued() const;
52
 
    Q_INVOKABLE void remove(const unsigned int id);
 
52
    Q_INVOKABLE void remove(const int id);
53
53
 
54
54
    int getCount() const;
55
55
 
56
56
public Q_SLOTS:
57
 
    void onCompleted(unsigned int id);
 
57
    void onCompleted(int id);
58
58
 
59
59
private Q_SLOTS:
60
 
    void onDataChanged(unsigned int id);
 
60
    void onDataChanged(int id);
61
61
 
62
62
Q_SIGNALS:
63
63
    void queueSizeChanged(int newSize);