~nick-dedekind/unity8/indicator.submenu-reinit

« back to all changes in this revision

Viewing changes to plugins/Unity/Launcher/launchermodel.h

  • Committer: Nick Dedekind
  • Date: 2013-09-16 07:37:30 UTC
  • mfrom: (229.1.91 trunk)
  • Revision ID: nicholas.dedekind@gmail.com-20130916073730-3o9iv6i9h0d2c7rl
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
// unity-api
24
24
#include <unity/shell/launcher/LauncherModelInterface.h>
 
25
#include <unity/shell/application/ApplicationManagerInterface.h>
25
26
 
26
27
// Qt
27
28
#include <QAbstractListModel>
30
31
class LauncherBackend;
31
32
 
32
33
using namespace unity::shell::launcher;
 
34
using namespace unity::shell::application;
33
35
 
34
36
class LauncherModel: public LauncherModelInterface
35
37
{
49
51
    Q_INVOKABLE void requestRemove(const QString &appId);
50
52
    Q_INVOKABLE void quickListActionInvoked(const QString &appId, int actionIndex);
51
53
    Q_INVOKABLE void setUser(const QString &username);
52
 
    Q_INVOKABLE void applicationFocused(const QString &appId);
 
54
 
 
55
    unity::shell::application::ApplicationManagerInterface* applicationManager() const;
 
56
    void setApplicationManager(unity::shell::application::ApplicationManagerInterface *appManager);
53
57
 
54
58
private:
55
59
    void storeAppList();
59
63
    void progressChanged(const QString &appId, int progress);
60
64
    void countChanged(const QString &appId, int count);
61
65
 
 
66
    void applicationAdded(const QModelIndex &parent, int row);
 
67
    void applicationRemoved(const QModelIndex &parent, int row);
 
68
    void focusedAppIdChanged();
 
69
 
62
70
private:
63
71
    QList<LauncherItem*> m_list;
64
72
    LauncherBackend *m_backend;
 
73
    ApplicationManagerInterface *m_appManager;
65
74
};
66
75
 
67
76
#endif // LAUNCHERMODEL_H