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

KDECore

KMountPoint Class Reference

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

#include <kmountpoint.h>

Inheritance diagram for KMountPoint:

Inheritance graph
[legend]

List of all members.


Public Types

enum  { NeedMountOptions = 1, NeedRealDeviceName = 2 }
typedef QValueList< Ptr > List
typedef KSharedPtr< KMountPoint > Ptr

Public Member Functions

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

Static Public Member Functions

static KMountPoint::List currentMountPoints (int infoNeeded=0)
static QString devNameFromOptions (const QStringList &options)
static KMountPoint::List possibleMountPoints (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.


Member Typedef Documentation

typedef QValueList<Ptr> KMountPoint::List

Definition at line 40 of file kmountpoint.h.

typedef KSharedPtr<KMountPoint> KMountPoint::Ptr

Definition at line 39 of file kmountpoint.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NeedMountOptions 
NeedRealDeviceName 

Definition at line 42 of file kmountpoint.h.


Constructor & Destructor Documentation

KMountPoint::~KMountPoint (  ) 

Destructor.

Definition at line 103 of file kmountpoint.cpp.


Member Function Documentation

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 223 of file kmountpoint.cpp.

QString KMountPoint::devNameFromOptions ( const QStringList &  options  )  [static]

When using supermount, the device name is in the options field as dev=/my/device.

Since:
3.4

Definition at line 376 of file kmountpoint.cpp.

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.

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.

QString KMountPoint::mountPoint (  )  const [inline]

Path where the filesystem is mounted or can be mounted.

Definition at line 74 of file kmountpoint.h.

QString KMountPoint::mountType (  )  const [inline]

Type of filesystem.

Definition at line 79 of file kmountpoint.h.

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.

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.


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

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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