shift-shell/containments/homescreen/homescreen.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
956 B
C
Raw Normal View History

2021-03-01 20:03:25 +00:00
/*
SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HOMESCREEN_H
#define HOMESCREEN_H
#include <Plasma/Containment>
2019-09-04 16:39:31 +00:00
class QQuickItem;
class ApplicationListModel;
class FavoritesModel;
class HomeScreen : public Plasma::Containment
{
Q_OBJECT
Q_PROPERTY(bool showingDesktop READ showingDesktop WRITE setShowingDesktop NOTIFY showingDesktopChanged)
public:
HomeScreen(QObject *parent, const QVariantList &args);
2018-12-31 03:13:55 +00:00
~HomeScreen() override;
2019-09-17 11:00:07 +00:00
void configChanged() override;
bool showingDesktop() const;
void setShowingDesktop(bool showingDesktop);
2019-09-04 16:39:31 +00:00
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
Q_SIGNALS:
void showingDesktopChanged(bool showingDesktop);
protected:
// void configChanged() override;
private:
bool m_showAllApps = false;
};
#endif