2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Michael Zanetti <michael.zanetti@canonical.com>
23#include "quicklistmodel.h"
25#include <unity/shell/launcher/LauncherItemInterface.h>
29using namespace unity::shell::launcher;
31class LauncherItem: public LauncherItemInterface
35 LauncherItem(const QString &appId, const QString &name, const QString &icon, QObject *parent);
37 QString appId() const override;
38 QString name() const override;
39 QString icon() const override;
40 QStringList keywords() const override;
41 bool pinned() const override;
42 bool running() const override;
43 bool recent() const override;
44 int progress() const override;
45 int count() const override;
46 bool countVisible() const override;
47 bool focused() const override;
48 bool alerting() const override;
49 int surfaceCount() const override;
51 unity::shell::launcher::QuickListModelInterface *quickList() const override;
54 void setName(const QString &name);
55 void setIcon(const QString &icon);
56 void setKeywords(const QStringList &keywords);
57 void setPinned(bool pinned);
58 void setRunning(bool running);
59 void setRecent(bool recent);
60 void setProgress(int progress);
61 void setCount(int count);
62 void setCountVisible(bool countVisible);
63 void setFocused(bool focused);
64 void setAlerting(bool alerting);
65 void setSurfaceCount(int surfaceCount);
71 QStringList m_keywords;
81 QuickListModel *m_quickList;
82 QuickListEntry m_quitAction;
84 friend class LauncherModel;
85 friend class AppDrawerModel;
88#endif // LAUNCHERITEM_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list