Solid
7#include "fstabnetworkshare.h"
8#include "fstabhandling.h"
9#include <solid/devices/backends/fstab/fstabdevice.h>
11using namespace Solid::Backends::Fstab;
13FstabNetworkShare::FstabNetworkShare(Solid::Backends::Fstab::FstabDevice *device)
15 , m_fstabDevice(device)
18 if (m_fstabDevice->device().startsWith(
"//")) {
19 QString fsType = FstabHandling::fstype(m_fstabDevice->device());
20 if (fsType ==
"cifs") {
21 m_type = Solid::NetworkShare::Cifs;
22 }
else if (fsType ==
"smb3") {
23 m_type = Solid::NetworkShare::Smb3;
26 url += m_fstabDevice->device();
27 }
else if (m_fstabDevice->device().contains(
":/")) {
28 m_type = Solid::NetworkShare::Nfs;
30 url += m_fstabDevice->vendor() +
"/";
31 url += m_fstabDevice->product();
33 m_type = Solid::NetworkShare::Unknown;
38FstabNetworkShare::~FstabNetworkShare()
47QUrl FstabNetworkShare::url()
const
52const Solid::Backends::Fstab::FstabDevice *FstabNetworkShare::fstabDevice()
const
57#include "moc_fstabnetworkshare.cpp"
ShareType
This enum type defines the type of networkShare device can be.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.