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

KIO

Signals | Public Member Functions | Static Public Member Functions
KNFSShare Class Reference

#include <knfsshare.h>

Inheritance diagram for KNFSShare:
QObject

List of all members.

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::~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 201 of file knfsshare.cpp.

KNFSShare * KNFSShare::instance ( )
static

Returns the one and only instance of KNFSShare.

Definition at line 216 of file knfsshare.cpp.

bool KNFSShare::isDirectoryShared ( const QString &  path) const

Whether or not the given path is shared by NFS.

Parameters:
paththe 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.

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:
  • knfsshare.h
  • knfsshare.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:08:37 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.10.4 API Reference

Skip menu "kdelibs-4.10.4 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