// SPDX-FileCopyrightText: 2020 Marco Martin // SPDX-FileCopyrightText: 2021 Devin Lin // SPDX-License-Identifier: GPL-2.0-or-later import QtQuick 2.12 import QtQuick.Window 2.2 import org.kde.plasma.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin pragma Singleton /** * Provides access to the homescreen plasmoid containment within the shell. */ QtObject { id: root signal openHomeScreen() signal resetHomeScreenPosition() signal requestRelativeScroll(point pos) signal openAppLaunchAnimation(string splashIcon, string title, real x, real y, real sourceIconSize) signal closeAppLaunchAnimation() property var taskSwitcher property QtObject homeScreenWindow property bool taskSwitcherVisible: false // this state is updated from WindowUtil property bool homeScreenVisible: true property var windowListener: Connections { target: WindowPlugin.WindowUtil function onAllWindowsMinimizedChanged() { root.homeScreenVisible = WindowPlugin.WindowUtil.allWindowsMinimized } } }