┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemsignalhandler.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2021-12-16 19:29:22 +0100
committerKai Uwe Broulik <[email protected]>2022-01-09 18:09:10 +0100
commit0603e18cd4e36b988196a99810f2e3e803fe3125 (patch)
tree6d70829efea053cb36c9e6618d8feadd45569a91 /src/panels/places/placesitemsignalhandler.h
parent3abc4cfcd49df45c856e1b5f01da8de8f970ccb2 (diff)
Port back to KFilePlacesView
This removes the custom-view engine version of the places panel and replaces it with the upstream `KFilePlacesView` from KIO.
Diffstat (limited to 'src/panels/places/placesitemsignalhandler.h')
-rw-r--r--src/panels/places/placesitemsignalhandler.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/panels/places/placesitemsignalhandler.h b/src/panels/places/placesitemsignalhandler.h
deleted file mode 100644
index da4783915..000000000
--- a/src/panels/places/placesitemsignalhandler.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2012 Peter Penz <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- */
-
-#ifndef PLACESITEMSIGNALHANDLER_H
-#define PLACESITEMSIGNALHANDLER_H
-
-#include <QObject>
-
-class PlacesItem;
-
-/**
- * @brief Helper class for PlacesItem to be able to listen to signals
- * and performing a corresponding action.
- *
- * PlacesItem is derived from KStandardItem, which is no QObject-class
- * on purpose. To be able to internally listen to signals and performing a
- * corresponding action, PlacesItemSignalHandler is used.
- *
- * E.g. if the PlacesItem wants to react on accessibility-changes of a storage-access,
- * the signal-handler can be used like this:
- * <code>
- * QObject::connect(storageAccess, SIGNAL(accessibilityChanged(bool,QString)),
- * signalHandler, SLOT(onAccessibilityChanged()));
- * </code>
- *
- * The slot PlacesItemSignalHandler::onAccessibilityChanged() will call
- * the method PlacesItem::onAccessibilityChanged().
- */
-class PlacesItemSignalHandler: public QObject
-{
- Q_OBJECT
-
-public:
- explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr);
- ~PlacesItemSignalHandler() override;
-
-public Q_SLOTS:
- /**
- * Calls PlacesItem::onAccessibilityChanged()
- */
- void onAccessibilityChanged();
-
- void onTearDownRequested(const QString& udi);
-
- void onTrashEmptinessChanged(bool isTrashEmpty);
-
-Q_SIGNALS:
- void tearDownExternallyRequested(const QString& udi);
-
-private:
- PlacesItem* m_item;
-};
-
-#endif