Solid
#include <networkshare.h>

Public Types | |
enum | ShareType { Unknown , Nfs , Cifs , Upnp } |
![]() | |
enum | Type { Unknown = 0 , GenericInterface = 1 , Processor = 2 , Block = 3 , StorageAccess = 4 , StorageDrive = 5 , OpticalDrive = 6 , StorageVolume = 7 , OpticalDisc = 8 , Camera = 9 , PortableMediaPlayer = 10 , NetworkInterface = 11 , AcAdapter = 12 , Battery = 13 , Button = 14 , AudioInterface = 15 , DvbInterface = 16 , Video = 17 , SerialInterface = 18 , SmartCardReader = 19 , InternetGateway = 20 , NetworkShare = 21 , Last = 0xffff } |
Public Member Functions | |
virtual | ~NetworkShare () |
ShareType | type () const |
QUrl | url () const |
![]() | |
virtual | ~DeviceInterface () |
bool | isValid () const |
Static Public Member Functions | |
static Type | deviceInterfaceType () |
![]() | |
static Type | stringToType (const QString &type) |
static QString | typeDescription (Type type) |
static QString | typeToString (Type type) |
Properties | |
ShareType | type |
QUrl | url |
Additional Inherited Members | |
![]() | |
DeviceInterface (DeviceInterfacePrivate &dd, QObject *backendObject) | |
![]() | |
DeviceInterfacePrivate * | d_ptr |
Detailed Description
NetworkShare interface.
a NetworkShare interface is used to determine the type of network access.
- Since
- 4.7
Definition at line 44 of file networkshare.h.
Member Enumeration Documentation
◆ ShareType
This enum type defines the type of networkShare device can be.
- Unknown : a unsupported network protocol
- Nfs : nfs protocol
- Cifs : samba protocol
- Upnp : Upnp protocol
Enumerator | |
---|---|
Unknown | |
Nfs | |
Cifs | |
Upnp |
Definition at line 79 of file networkshare.h.
Constructor & Destructor Documentation
◆ ~NetworkShare()
|
virtual |
Destroys a NetworkShare object.
Definition at line 32 of file networkshare.cpp.
Member Function Documentation
◆ deviceInterfaceType()
|
inlinestatic |
Get the Solid::DeviceInterface::Type of the NetworkShare device interface.
- Returns
- the NetworkShare device interface type
- See also
- Solid::DeviceInterface::Type
Definition at line 87 of file networkshare.h.
◆ type()
Solid::NetworkShare::ShareType Solid::NetworkShare::type | ( | ) | const |
Retrieves the type of network share.
- Returns
- the type of network share
Definition at line 37 of file networkshare.cpp.
◆ url()
QUrl Solid::NetworkShare::url | ( | ) | const |
Retrieves the url of network share.
- Returns
- the url of network share
Definition at line 43 of file networkshare.cpp.
Property Documentation
◆ type
|
read |
Definition at line 44 of file networkshare.h.
◆ url
|
read |
Definition at line 44 of file networkshare.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.