]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placesitemsignalhandler.h
Build with QT_NO_KEYWORDS
[dolphin.git] / src / panels / places / placesitemsignalhandler.h
index af66568adc841b9bc8cbc1731a3d7755b7ef7183..da478391550fe892d7332264cd41341f91f40945 100644 (file)
@@ -1,21 +1,8 @@
-/***************************************************************************
- *   Copyright (C) 2012 by Peter Penz <peter.penz19@gmail.com>             *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   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 General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
+/*
+ * SPDX-FileCopyrightText: 2012 Peter Penz <peter.penz19@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #ifndef PLACESITEMSIGNALHANDLER_H
 #define PLACESITEMSIGNALHANDLER_H
@@ -47,19 +34,21 @@ class PlacesItemSignalHandler: public QObject
     Q_OBJECT
 
 public:
-    explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = 0);
-    virtual ~PlacesItemSignalHandler();
+    explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr);
+    ~PlacesItemSignalHandler() override;
 
-public slots:
+public Q_SLOTS:
     /**
      * Calls PlacesItem::onAccessibilityChanged()
      */
     void onAccessibilityChanged();
 
-    /**
-     * Calls PlacesItem::onTrashDirListerCompleted()
-     */
-    void onTrashDirListerCompleted();
+    void onTearDownRequested(const QString& udi);
+
+    void onTrashEmptinessChanged(bool isTrashEmpty);
+
+Q_SIGNALS:
+    void tearDownExternallyRequested(const QString& udi);
 
 private:
     PlacesItem* m_item;