2020-09-30 23:58:54 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
SPDX-FileCopyrightText: 2016-2019 Andrius Štikonas <andrius@stikonas.eu>
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2020-09-30 23:58:54 +01:00
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2020-09-30 23:58:54 +01:00
|
|
|
#ifndef KPMCORE_DUMMYBACKEND_H
|
2017-09-10 20:12:52 +01:00
|
|
|
#define KPMCORE_DUMMYBACKEND_H
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
#include "backend/corebackend.h"
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
class KPluginFactory;
|
|
|
|
class QString;
|
|
|
|
|
|
|
|
/** Dummy backend plugin that doesn't really do anything.
|
|
|
|
|
2015-07-13 15:16:36 +01:00
|
|
|
@author Volker Lanz <vl@fidra.de>
|
2015-06-04 01:29:22 +01:00
|
|
|
*/
|
|
|
|
class DummyBackend : public CoreBackend
|
|
|
|
{
|
2015-07-13 15:16:36 +01:00
|
|
|
Q_DISABLE_COPY(DummyBackend)
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2020-11-16 16:14:52 +00:00
|
|
|
public:
|
2015-07-13 15:16:36 +01:00
|
|
|
DummyBackend(QObject* parent, const QList<QVariant>& args);
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2015-07-13 15:16:36 +01:00
|
|
|
public:
|
2016-05-17 18:01:31 +01:00
|
|
|
void initFSSupport() override;
|
|
|
|
|
|
|
|
QList<Device*> scanDevices(bool excludeReadOnly = false) override;
|
2019-02-09 15:40:06 +00:00
|
|
|
QList<Device*> scanDevices(const ScanFlags scanFlags) override;
|
2018-03-31 14:44:40 +01:00
|
|
|
std::unique_ptr<CoreBackendDevice> openDevice(const Device& d) override;
|
|
|
|
std::unique_ptr<CoreBackendDevice> openDeviceExclusive(const Device& d) override;
|
|
|
|
bool closeDevice(std::unique_ptr<CoreBackendDevice> coreDevice) override;
|
2017-12-06 21:33:31 +00:00
|
|
|
Device* scanDevice(const QString& deviceNode) override;
|
2016-05-17 18:01:31 +01:00
|
|
|
FileSystem::Type detectFileSystem(const QString& deviceNode) override;
|
2018-01-31 15:04:55 +00:00
|
|
|
QString readLabel(const QString& deviceNode) const override;
|
|
|
|
QString readUUID(const QString& deviceNode) const override;
|
2015-06-04 01:29:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|