KIO
#include <knfsshare.h>

Signals | |
void | changed () |
Public Member Functions | |
virtual | ~KNFSShare () |
QString | exportsPath () const |
bool | isDirectoryShared (const QString &path) const |
QStringList | sharedDirectories () const |
Static Public Member Functions | |
static KNFSShare * | instance () |
Detailed Description
Similar functionality like KFileShare, but works only for NFS and do not need any suid script.
It parses the /etc/exports file to get its information. Singleton class, call instance() to get an instance.
Definition at line 33 of file knfsshare.h.
Constructor & Destructor Documentation
◆ ~KNFSShare()
|
virtual |
KNFSShare destructor.
Do not call! The instance is destroyed automatically!
Definition at line 175 of file knfsshare.cpp.
Member Function Documentation
◆ changed
|
signal |
Emitted when the /etc/exports file has changed.
◆ exportsPath()
QString KNFSShare::exportsPath | ( | ) | const |
Returns the path to the used exports file, or null if no exports file was found.
Definition at line 201 of file knfsshare.cpp.
◆ instance()
|
static |
Returns the one and only instance of KNFSShare.
Definition at line 216 of file knfsshare.cpp.
◆ isDirectoryShared()
bool KNFSShare::isDirectoryShared | ( | const QString & | path | ) | const |
Whether or not the given path is shared by NFS.
- Parameters
-
path the path to check if it is shared by NFS.
- Returns
- whether the given path is shared by NFS.
Definition at line 185 of file knfsshare.cpp.
◆ sharedDirectories()
QStringList KNFSShare::sharedDirectories | ( | ) | const |
Returns a list of all directories shared by NFS.
The resulting list is not sorted.
- Returns
- a list of all directories shared by NFS.
Definition at line 196 of file knfsshare.cpp.
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.