Solid::NetworkShare Class

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

Public Types

enum ShareType { Unknown, Nfs, Cifs, Smb3 }

Public Functions

virtual ~NetworkShare() override
Solid::NetworkShare::ShareType type() const
QUrl url() const

Static Public Members

Solid::DeviceInterface::Type deviceInterfaceType()

Detailed Description

@class Solid::NetworkShare networkshare.h <Solid/NetworkShare>

NetworkShare interface.

a NetworkShare interface is used to determine the type of network access. @since 4.7

Member Type Documentation

enum NetworkShare::ShareType

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

- Unknown : a unsupported network protocol - Nfs : nfs protocol - Cifs : samba protocol - Smb3 : samba protocol (version 3)

Member Function Documentation

[override virtual noexcept] NetworkShare::~NetworkShare()

Destroys a NetworkShare object.

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

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

@return the NetworkShare device interface type @see Solid::DeviceInterface::Type

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

Retrieves the type of network share

@return the type of network share

Note: Getter function for property type.

QUrl NetworkShare::url() const

Retrieves the url of network share

@return the url of network share

Note: Getter function for property url.