~aacid/unity8/dash_overview

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/fake_scope.h

  • Committer: Albert Astals
  • Date: 2014-08-07 15:27:32 UTC
  • mfrom: (1155.1.29 do_merged)
  • Revision ID: albert.astals@canonical.com-20140807152732-0zf22298f1lsxrz8
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
public:
34
34
    Scope(Scopes* parent = 0);
35
 
    Scope(QString const& id, QString const& name, bool visible, Scopes* parent = 0, int categories = 20);
 
35
    Scope(QString const& id, QString const& name, bool favorite, Scopes* parent = 0, int categories = 20);
36
36
 
37
37
    /* getters */
38
38
    QString id() const override;
40
40
    QString iconHint() const override;
41
41
    QString description() const override;
42
42
    QString searchHint() const override;
43
 
    bool visible() const override;
44
43
    QString shortcut() const override;
45
44
    bool searchInProgress() const override;
 
45
    bool favorite() const override;
46
46
    unity::shell::scopes::CategoriesInterface* categories() const override;
47
47
    QString searchQuery() const override;
48
48
    QString noResultsHint() const override;
55
55
    void setNoResultsHint(const QString& hint) override;
56
56
    void setFormFactor(const QString& form_factor) override;
57
57
    void setActive(const bool) override;
 
58
    void setFavorite(const bool) override;
58
59
    Q_INVOKABLE void setSearchInProgress(const bool inProg); // This is not invokable in the Interface, here for testing benefits
59
60
 
60
61
    Q_INVOKABLE void activate(QVariant const& result) override;
62
63
    Q_INVOKABLE void cancelActivation() override;
63
64
    Q_INVOKABLE void closeScope(unity::shell::scopes::ScopeInterface* scope) override;
64
65
 
65
 
    QString currentDepartmentId() const override;
66
 
    bool hasDepartments() const override;
67
 
    Q_INVOKABLE unity::shell::scopes::DepartmentInterface* getDepartment(const QString& id) override;
68
 
    Q_INVOKABLE void loadDepartment(const QString& id) override;
 
66
    QString currentNavigationId() const  override;
 
67
    bool hasNavigation() const  override;
 
68
    QString currentAltNavigationId() const  override;
 
69
    bool hasAltNavigation() const  override;
 
70
    Q_INVOKABLE unity::shell::scopes::NavigationInterface* getNavigation(QString const& navigationId) override;
 
71
    Q_INVOKABLE unity::shell::scopes::NavigationInterface* getAltNavigation(QString const& altNavigationId) override;
 
72
    Q_INVOKABLE void setNavigationState(const QString &navigationId, bool isAltNavigation) override;
69
73
    Q_SIGNAL void performQuery(const QString& query) override;
70
74
 
 
75
    Status status() const override;
71
76
    QVariantMap customizations() const override;
72
77
 
 
78
    Q_INVOKABLE void refresh() override;
 
79
 
73
80
protected:
74
81
 
75
82
    QString m_id;
79
86
    QString m_searchQuery;
80
87
    QString m_noResultsHint;
81
88
    QString m_formFactor;
82
 
    bool m_visible;
83
89
    bool m_searching;
 
90
    bool m_favorite;
84
91
    bool m_isActive;
85
 
    QString m_currentDeparment;
 
92
    QString m_currentNavigationId;
 
93
    QString m_currentAltNavigationId;
86
94
 
87
95
    QString m_previewRendererName;
88
96