kdecore Library API Documentation

KMountPoint Class Reference

The KMountPoint class provides information about mounted and unmounted disks. More...

#include <kmountpoint.h>

Inheritance diagram for KMountPoint:

KShared List of all members.

Public Methods

QString mountedFrom () const
QString realDeviceName () const
QString mountPoint () const
QString mountType () const
QStringList mountOptions () const
 ~KMountPoint ()

Static Public Methods

KMountPoint::List possibleMountPoints (int infoNeeded=0)
KMountPoint::List currentMountPoints (int infoNeeded=0)

Detailed Description

The KMountPoint class provides information about mounted and unmounted disks.

It provides a system independent interface to fstab.

Author:
Waldo Bastian <bastian@kde.org>
Since:
3.2

Definition at line 35 of file kmountpoint.h.


Constructor & Destructor Documentation

KMountPoint::~KMountPoint  
 

Destructor.

Definition at line 103 of file kmountpoint.cpp.


Member Function Documentation

KMountPoint::List KMountPoint::possibleMountPoints int    infoNeeded = 0 [static]
 

This function gives a list of all possible mountpoints.

(fstab)

Parameters:
infoNeeded  Flags that specify which additional information should be fetched.

Definition at line 129 of file kmountpoint.cpp.

References QValueList< Ptr >::append(), QFile::close(), QFile::decodeName(), QString::isEmpty(), m_device, m_mountedFrom, m_mountOptions, m_mountPoint, m_mountType, QFile::open(), QTextStream::readLine(), KStandardDirs::realPath(), QStringList::split(), and QString::startsWith().

Referenced by KDesktopFile::readURL().

KMountPoint::List KMountPoint::currentMountPoints int    infoNeeded = 0 [static]
 

This function gives a list of all currently used mountpoints.

(mtab)

Parameters:
infoNeeded  Flags that specify which additional information should be fetched.

Definition at line 216 of file kmountpoint.cpp.

References QValueList< Ptr >::append(), QFile::decodeName(), m_device, m_mountedFrom, m_mountOptions, m_mountPoint, m_mountType, KStandardDirs::realPath(), QStringList::split(), and QString::startsWith().

QString KMountPoint::mountedFrom   const [inline]
 

Where this filesystem gets mounted from.

This can refer to a device, a remote server or something else.

Definition at line 62 of file kmountpoint.h.

Referenced by KDesktopFile::readURL().

QString KMountPoint::realDeviceName   const [inline]
 

Canonical name of the device where the filesystem got mounted from.

(Or empty, if not a device) Only available when the NeedRealDeviceName flag was set.

Definition at line 69 of file kmountpoint.h.

QString KMountPoint::mountPoint   const [inline]
 

Path where the filesystem is mounted or can be mounted.

Definition at line 74 of file kmountpoint.h.

Referenced by KDesktopFile::readURL().

QString KMountPoint::mountType   const [inline]
 

Type of filesystem.

Definition at line 79 of file kmountpoint.h.

QStringList KMountPoint::mountOptions   const [inline]
 

Options used to mount the filesystem.

Only available when the NeedMountOptions flag was set.

Definition at line 85 of file kmountpoint.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 22 14:23:08 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003