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