Solid::NetworkShare Class

class Solid::NetworkShare

NetworkShare interface. More...

Header: #include <Solid/NetworkShare>
CMake: find_package(KF6 REQUIRED COMPONENTS Solid)
target_link_libraries(mytarget PRIVATE KF6::Solid)
Since: 4.7
Inherits: Solid::DeviceInterface

Public Types

enum ShareType { Unknown, Nfs, Cifs, Smb3 }

Properties

  • type : const ShareType
  • url : const QUrl

Public Functions

Solid::NetworkShare::ShareType type() const
QUrl url() const

Static Public Members

Solid::DeviceInterface::Type deviceInterfaceType()

Detailed Description

A NetworkShare interface is used to determine the type of network access.

Member Type Documentation

enum NetworkShare::ShareType

This enum type defines the type of networkShare device can be.

ConstantValueDescription
Solid::NetworkShare::Unknown0a unsupported network protocol
Solid::NetworkShare::Nfs1nfs protocol
Solid::NetworkShare::Cifs2samba protocol
Solid::NetworkShare::Smb33samba protocol (version 3)

Property Documentation

[read-only] type : const ShareType

Access functions:

Solid::NetworkShare::ShareType type() const

[read-only] url : const QUrl

Access functions:

QUrl url() const

Member Function Documentation

[static] Solid::DeviceInterface::Type NetworkShare::deviceInterfaceType()

Get the Solid::DeviceInterface::Type of the NetworkShare device interface.

Returns the NetworkShare device interface type

See also Solid::DeviceInterface::Type.

Solid::NetworkShare::ShareType NetworkShare::type() const

Retrieves the type of network share

Returns the type of network share

Note: Getter function for property type.

QUrl NetworkShare::url() const

Retrieves the url of network share

Returns the url of network share

Note: Getter function for property url.