mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Move source files to /src
This commit is contained in:
parent
4daff1ba79
commit
033ff07abf
2685 changed files with 9 additions and 7 deletions
35
src/linux/udisks2api.h
Normal file
35
src/linux/udisks2api.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#ifndef UDISKS2API_H
|
||||
#define UDISKS2API_H
|
||||
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Copyright (C) 2020 Raspberry Pi Ltd
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
#include <QFile>
|
||||
|
||||
class QDBusInterface;
|
||||
|
||||
class UDisks2Api : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit UDisks2Api(QObject *parent = nullptr);
|
||||
int authOpen(const QString &device, const QString &mode = "rw");
|
||||
bool formatDrive(const QString &device, bool mountAfterwards = true);
|
||||
QString mountDevice(const QString &device);
|
||||
void unmountDrive(const QString &device);
|
||||
QByteArrayList mountPoints(const QString &partitionDevice);
|
||||
QByteArrayList mountPoints(const QDBusInterface &filesystem);
|
||||
|
||||
protected:
|
||||
QString _resolveDevice(const QString &device);
|
||||
void _unmountDrive(const QString &driveDbusPath);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // UDISKS2API_H
|
Loading…
Add table
Add a link
Reference in a new issue