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>
20#include "MockLauncherItem.h"
21#include "MockQuickListModel.h"
23using namespace unity::shell::launcher;
25MockLauncherItem::MockLauncherItem(const QString &appId, const QString& desktopFile, const QString& name, const QString& icon, QObject* parent):
26 LauncherItemInterface(parent),
28 m_desktopFile(desktopFile),
36 m_quickList(new MockQuickListModel(this))
41QString MockLauncherItem::appId() const
46QString MockLauncherItem::desktopFile() const
51QString MockLauncherItem::name() const
56QString MockLauncherItem::icon() const
61bool MockLauncherItem::pinned() const
66void MockLauncherItem::setPinned(bool pinned)
68 if (m_pinned != pinned)
71 Q_EMIT pinnedChanged(m_pinned);
75bool MockLauncherItem::running() const
80void MockLauncherItem::setRunning(bool running)
82 if (m_running != running)
85 Q_EMIT runningChanged(running);
89bool MockLauncherItem::recent() const
94void MockLauncherItem::setRecent(bool recent)
96 if (m_recent != recent)
99 Q_EMIT recentChanged(recent);
103int MockLauncherItem::progress() const
108void MockLauncherItem::setProgress(int progress)
110 if (m_progress != progress)
112 m_progress = progress;
113 Q_EMIT progressChanged(progress);
117int MockLauncherItem::count() const
122void MockLauncherItem::setCount(int count)
124 if (m_count != count)
127 Q_EMIT countChanged(count);
131unity::shell::launcher::QuickListModelInterface *MockLauncherItem::quickList() const
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