/* * Copyright 2013 Canonical Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * * Authors: * Michael Zanetti */ #ifndef MOCKLAUNCHERITEM_H #define MOCKLAUNCHERITEM_H #include class MockQuickListModel; using namespace unity::shell::launcher; class MockLauncherItem: public LauncherItemInterface { Q_OBJECT public: MockLauncherItem(const QString &appId, const QString& desktopFile, const QString& name, const QString& icon, QObject* parent = 0); ~MockLauncherItem(); QString appId() const override; QString desktopFile() const; QString name() const override; QString icon() const override; bool pinned() const override; bool running() const override; bool recent() const override; int progress() const override; int count() const override; bool countVisible() const override; bool focused() const override; bool alerting() const override; unity::shell::launcher::QuickListModelInterface *quickList() const override; private: void setPinned(bool pinned); void setRunning(bool running); void setRecent(bool recent); void setProgress(int progress); void setCount(int count); void setCountVisible(bool countVisible); void setFocused(bool focused); void setAlerting(bool alerting); QString m_appId; QString m_desktopFile; QString m_name; QString m_icon; bool m_pinned; bool m_running; bool m_recent; int m_progress; int m_count; bool m_countVisible; bool m_focused; bool m_alerting; MockQuickListModel *m_quickList; friend class MockLauncherModel; }; #endif // MOCKLAUNCHERITEM_H