/*
   Copyright (C) 2008 Norbert Frese <nf2 at scheinwelt at>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License (LGPL) as published by the Free Software Foundation;
   either version 2 of the License, or (at your option) any later
   version.

   This library 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef SOLID_BACKENDS_VFSHALUNIONMANAGER_H
#define SOLID_BACKENDS_VFSHALUNIONMANAGER_H

#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <solid/deviceinterface.h>
#include <solid/ifaces/devicemanager.h>

using namespace Solid::Ifaces;

namespace KioGioBridge
{

/**
 * @brief union of VFS mounts and HAL mounts
 */
class VfsHalUnionManager : public Solid::Ifaces::DeviceManager
{
    Q_OBJECT
public:
    VfsHalUnionManager(QObject *parent);
    virtual ~VfsHalUnionManager();

    virtual QStringList allDevices();

    virtual QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type);

    virtual QObject *createDevice(const QString &udi);
    
    QStringList allGvfsNetworkMounts();
    
public Q_SLOTS:
    void slotDeviceAdded(const QString &udi);
    void slotDeviceRemoved(const QString &udi);

private:
  
    class Private;
    Private *d;
};
}

#endif // SOLID_BACKENDS_VFSHALUNIONMANAGER_H
