From 2fd31c8a95eaa38defa0f6adf3b83b12fc1aa1a3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 May 2012 19:15:49 +0200 Subject: Update trash-icon dependent on whether the thrash is empty or not The class PlacesItemStorageAccessListener has been renamed to PlacesItemSignalHandler and represents a generic signal handler for the PlacesItem. --- src/panels/places/placesitemsignalhandler.cpp | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/panels/places/placesitemsignalhandler.cpp (limited to 'src/panels/places/placesitemsignalhandler.cpp') diff --git a/src/panels/places/placesitemsignalhandler.cpp b/src/panels/places/placesitemsignalhandler.cpp new file mode 100644 index 000000000..54a916de7 --- /dev/null +++ b/src/panels/places/placesitemsignalhandler.cpp @@ -0,0 +1,50 @@ +/*************************************************************************** + * Copyright (C) 2012 by Peter Penz * + * * + * 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 * + ***************************************************************************/ + +#include "placesitemsignalhandler.h" + +#include "placesitem.h" +#include + +PlacesItemSignalHandler::PlacesItemSignalHandler(PlacesItem* item, + QObject* parent) : + QObject(parent), + m_item(item) +{ +} + +PlacesItemSignalHandler::~PlacesItemSignalHandler() +{ +} + +void PlacesItemSignalHandler::onAccessibilityChanged() +{ + if (m_item) { + m_item->onAccessibilityChanged(); + } +} + +void PlacesItemSignalHandler::onTrashDirListerCompleted() +{ + if (m_item) { + m_item->onTrashDirListerCompleted(); + } +} + +#include "placesitemsignalhandler.moc" -- cgit v1.3