8#ifndef UDISKSSTORAGEACCESS_H
9#define UDISKSSTORAGEACCESS_H
11#include "udisksdeviceinterface.h"
12#include <solid/devices/ifaces/storageaccess.h>
15#include <QDBusMessage>
29 StorageAccess(Device *device);
30 ~StorageAccess()
override;
32 bool isAccessible()
const override;
33 QString filePath()
const override;
34 bool isIgnored()
const override;
35 bool setup()
override;
36 bool teardown()
override;
37 bool isEncrypted()
const override;
39 bool canCheck()
const override;
40 bool check()
override;
41 bool canRepair()
const override;
42 bool repair()
override;
45 void accessibilityChanged(
bool accessible,
const QString &udi)
override;
46 void setupDone(Solid::ErrorType error,
QVariant errorData,
const QString &udi)
override;
47 void teardownDone(Solid::ErrorType error,
QVariant errorData,
const QString &udi)
override;
48 void setupRequested(
const QString &udi)
override;
49 void teardownRequested(
const QString &udi)
override;
50 void repairRequested(
const QString &udi)
override;
51 void repairDone(Solid::ErrorType error,
QVariant errorData,
const QString &udi)
override;
54 Q_SCRIPTABLE Q_NOREPLY
void passphraseReply(
const QString &passphrase);
60 void connectDBusSignals();
62 void slotSetupRequested();
63 void slotSetupDone(
int error,
const QString &errorString);
64 void slotTeardownRequested();
65 void slotTeardownDone(
int error,
const QString &errorString);
66 void slotRepairRequested();
67 void slotRepairDone(
int error,
const QString &errorString);
69 void checkAccessibility();
73 bool isLuksDevice()
const;
80 bool requestPassphrase();
81 void callCryptoSetup(
const QString &passphrase);
82 bool callCryptoTeardown(
bool actOnParent =
false);
84 QString generateReturnObjectPath();
91 bool m_setupInProgress;
92 bool m_teardownInProgress;
93 bool m_repairInProgress;
94 bool m_passphraseRequested;
97 static const int s_unmountTimeout = 0x7fffffff;
This device interface is available on volume devices.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.