Solid
7#include "fakenetworkshare.h"
10using namespace Solid::Backends::Fake;
12FakeNetworkShare::FakeNetworkShare(FakeDevice *device)
13 : FakeDeviceInterface(device)
17FakeNetworkShare::~FakeNetworkShare()
23 QString type = fakeDevice()->property(QStringLiteral(
"type")).toString();
24 if (type == QLatin1String(
"nfs")) {
25 return Solid::NetworkShare::Nfs;
26 }
else if (type == QLatin1String(
"cifs")) {
27 return Solid::NetworkShare::Cifs;
28 }
else if (type == QLatin1String(
"smb3")) {
29 return Solid::NetworkShare::Smb3;
31 return Solid::NetworkShare::Unknown;
35QUrl FakeNetworkShare::url()
const
37 QString url = fakeDevice()->property(QStringLiteral(
"url")).toString();
41#include "moc_fakenetworkshare.cpp"
ShareType
This enum type defines the type of networkShare device can be.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:35 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.