~aacid/unity-api/use_qenum

« back to all changes in this revision

Viewing changes to test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h

  • Committer: Albert Astals Cid
  • Date: 2016-12-14 15:57:28 UTC
  • Revision ID: albert.astals@canonical.com-20161214155728-h1fmoxboreq3x621
Enable -Wsuggest-override

And add the override it suggests

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    MockLauncherModel(QObject* parent = 0);
36
36
    ~MockLauncherModel();
37
37
 
38
 
    int rowCount(const QModelIndex& parent) const;
39
 
 
40
 
    QVariant data(const QModelIndex& index, int role) const;
41
 
 
42
 
    Q_INVOKABLE unity::shell::launcher::LauncherItemInterface *get(int index) const;
43
 
    Q_INVOKABLE void move(int oldIndex, int newIndex);
44
 
    Q_INVOKABLE void pin(const QString &appId, int index = -1);
45
 
    Q_INVOKABLE void requestRemove(const QString &appId);
46
 
    Q_INVOKABLE void quickListActionInvoked(const QString &appId, int actionIndex);
47
 
    Q_INVOKABLE void setUser(const QString &user);
48
 
 
49
 
    unity::shell::application::ApplicationManagerInterface *applicationManager() const;
50
 
    void setApplicationManager(unity::shell::application::ApplicationManagerInterface *applicationManager);
 
38
    int rowCount(const QModelIndex& parent) const override;
 
39
 
 
40
    QVariant data(const QModelIndex& index, int role) const override;
 
41
 
 
42
    Q_INVOKABLE unity::shell::launcher::LauncherItemInterface *get(int index) const override;
 
43
    Q_INVOKABLE void move(int oldIndex, int newIndex) override;
 
44
    Q_INVOKABLE void pin(const QString &appId, int index = -1) override;
 
45
    Q_INVOKABLE void requestRemove(const QString &appId) override;
 
46
    Q_INVOKABLE void quickListActionInvoked(const QString &appId, int actionIndex) override;
 
47
    Q_INVOKABLE void setUser(const QString &user) override;
 
48
 
 
49
    unity::shell::application::ApplicationManagerInterface *applicationManager() const override;
 
50
    void setApplicationManager(unity::shell::application::ApplicationManagerInterface *applicationManager) override;
51
51
 
52
52
    bool onlyPinned() const override;
53
53
    void setOnlyPinned(bool onlyPinned) override;