~stolowski/unity-api/scopes-close-scope

« back to all changes in this revision

Viewing changes to include/unity/shell/launcher/LauncherModelInterface.h

  • Committer: Pawel Stolowski
  • Date: 2015-02-12 17:18:21 UTC
  • mfrom: (165.2.3 unity-api)
  • Revision ID: pawel.stolowski@canonical.com-20150212171821-tl0lapubn139c73m
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    Q_PROPERTY(unity::shell::application::ApplicationManagerInterface* applicationManager
55
55
               READ applicationManager WRITE setApplicationManager NOTIFY applicationManagerChanged)
56
56
 
 
57
    /**
 
58
     * @brief Only show pinned apps, hiding the unpinned running/recent ones.
 
59
     */
 
60
    Q_PROPERTY(bool onlyPinned READ onlyPinned WRITE setOnlyPinned NOTIFY onlyPinnedChanged)
 
61
 
57
62
protected:
58
63
    /// @cond
59
64
    LauncherModelInterface(QObject *parent = 0): QAbstractListModel(parent) {
154
159
    virtual unity::shell::application::ApplicationManagerInterface *applicationManager() const = 0;
155
160
    virtual void setApplicationManager(unity::shell::application::ApplicationManagerInterface *applicationManager) = 0;
156
161
 
 
162
    virtual bool onlyPinned() const = 0;
 
163
    virtual void setOnlyPinned(bool onlyPinned) = 0;
 
164
 
157
165
    virtual QHash<int, QByteArray> roleNames() const
158
166
    {
159
167
        return m_roleNames;
163
171
Q_SIGNALS:
164
172
    /// @cond
165
173
    void applicationManagerChanged();
 
174
    void onlyPinnedChanged();
166
175
    /// @endcond
167
176
 
168
177
    /**