• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Solid

  • Solid
  • NetworkShare
Public Types | Public Member Functions | Static Public Member Functions | Properties | List of all members
Solid::NetworkShare Class Reference

#include <networkshare.h>

Inheritance diagram for Solid::NetworkShare:
Solid::DeviceInterface QObject

Public Types

enum  ShareType { Unknown , Nfs , Cifs , Upnp }
 
- Public Types inherited from Solid::DeviceInterface
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
 
- Public Member Functions inherited from Solid::DeviceInterface
virtual ~DeviceInterface ()
 
bool isValid () const
 

Static Public Member Functions

static Type deviceInterfaceType ()
 
- Static Public Member Functions inherited from Solid::DeviceInterface
static Type stringToType (const QString &type)
 
static QString typeDescription (Type type)
 
static QString typeToString (Type type)
 

Properties

ShareType type
 
QUrl url
 

Additional Inherited Members

- Protected Member Functions inherited from Solid::DeviceInterface
 DeviceInterface (DeviceInterfacePrivate &dd, QObject *backendObject)
 
- Protected Attributes inherited from Solid::DeviceInterface
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

enum Solid::NetworkShare::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()

Solid::NetworkShare::~NetworkShare ( )
virtual

Destroys a NetworkShare object.

Definition at line 32 of file networkshare.cpp.

Member Function Documentation

◆ deviceInterfaceType()

static Type Solid::NetworkShare::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

ShareType Solid::NetworkShare::type
read

Definition at line 44 of file networkshare.h.

◆ url

QUrl Solid::NetworkShare::url
read

Definition at line 44 of file networkshare.h.


The documentation for this class was generated from the following files:
  • networkshare.h
  • networkshare.cpp
This file is part of the KDE documentation.
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.

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal