• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KNFSShare Class Reference

Similar functionality like KFileShare, but works only for NFS and do not need any suid script. More...

#include <knfsshare.h>

Inheritance diagram for KNFSShare:
QObject

List of all members.

Signals

void changed ()

Public Member Functions

QString exportsPath () const
bool isDirectoryShared (const QString &path) const
QStringList sharedDirectories () const
virtual ~KNFSShare ()

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::~KNFSShare (  )  [virtual]

KNFSShare destructor.

Do not call! The instance is destroyed automatically!

Definition at line 175 of file knfsshare.cpp.


Member Function Documentation

void KNFSShare::changed (  )  [signal]

Emitted when the /etc/exports file has changed.

QString KNFSShare::exportsPath (  )  const

Returns the path to the used exports file, or null if no exports file was found.

Definition at line 200 of file knfsshare.cpp.

KNFSShare * KNFSShare::instance (  )  [static]

Returns the one and only instance of KNFSShare.

Definition at line 215 of file knfsshare.cpp.

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 184 of file knfsshare.cpp.

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 195 of file knfsshare.cpp.


The documentation for this class was generated from the following files:
  • knfsshare.h
  • knfsshare.cpp

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal