7#include "winstorageaccess.h"
9#include "winstoragedrive.h"
11using namespace Solid::Backends::Win;
13WinStorageAccess::WinStorageAccess(WinDevice *device)
14 : WinInterface(device)
18WinStorageAccess::~WinStorageAccess()
22bool WinStorageAccess::isAccessible()
const
27QString WinStorageAccess::filePath()
const
29 return WinBlock::driveLetterFromUdi(m_device->udi()).
append(QStringLiteral(
"/"));
32bool WinStorageAccess::isIgnored()
const
37bool WinStorageAccess::isEncrypted()
const
43bool WinStorageAccess::setup()
48bool WinStorageAccess::teardown()
52 if (m_device->queryDeviceInterface(Solid::DeviceInterface::StorageVolume) && WinStorageDrive(m_device).driveType() == Solid::StorageDrive::MemoryStick) {
53 WinDeviceManager::deviceAction(WinBlock::driveLetterFromUdi(m_device->udi()), IOCTL_STORAGE_EJECT_MEDIA);
58#include "moc_winstorageaccess.cpp"
QString & append(QChar ch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.