gio-qt 0.0.16
Loading...
Searching...
No Matches
dgiovolumemanager.h
1// SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DGIOVOLUMEMANAGER_H
6#define DGIOVOLUMEMANAGER_H
7
8#include <QExplicitlySharedDataPointer>
9#include <QObject>
10
11class DGioMount;
12class DGioVolume;
13class DGioDrive;
14class DGioVolumeManagerPrivate;
15class DGioVolumeManager : public QObject
16{
17 Q_OBJECT
18public:
19 explicit DGioVolumeManager(QObject *parent = nullptr);
20 ~DGioVolumeManager();
21
22 static const QList<QExplicitlySharedDataPointer<DGioMount> > getMounts();
23 static const QList<QExplicitlySharedDataPointer<DGioVolume> > getVolumes();
24 static const QList<QExplicitlySharedDataPointer<DGioDrive> > getDrives();
25
26Q_SIGNALS:
27 void mountAdded(QExplicitlySharedDataPointer<DGioMount> mount);
28 void mountRemoved(QExplicitlySharedDataPointer<DGioMount> mount);
29 void mountPreRemoved(QExplicitlySharedDataPointer<DGioMount> mount);
30 void mountChanged(QExplicitlySharedDataPointer<DGioMount> mount);
31 void volumeAdded(QExplicitlySharedDataPointer<DGioVolume> volume);
32 void volumeRemoved(QExplicitlySharedDataPointer<DGioVolume> volume);
33 void volumeChanged(QExplicitlySharedDataPointer<DGioVolume> volume);
34 void driveConnected(QExplicitlySharedDataPointer<DGioDrive> drive);
35 void driveDisconnected(QExplicitlySharedDataPointer<DGioDrive> drive);
36 void driveChanged(QExplicitlySharedDataPointer<DGioDrive> drive);
37
38private:
39 QScopedPointer<DGioVolumeManagerPrivate> d_ptr;
40
41 Q_DECLARE_PRIVATE(DGioVolumeManager)
42};
43
44#endif // DGIOVOLUMEMANAGER_H
Definition dgiodrive.h:18
Definition dgiomount.h:19
Definition dgiovolume.h:27