kmountpoint.h
/*
This file is part of the KDE libraries
Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef _KMOUNTPOINT_H_
#define _KMOUNTPOINT_H_
#include <qptrlist.h>
#include <qstringlist.h>
#include <ksharedptr.h>
class KDECORE_EXPORT KMountPoint : public KShared
{
typedef signed long long int filesize_t;
public:
typedef KSharedPtr<KMountPoint> Ptr;
typedef QValueList<Ptr> List;
public:
enum { NeedMountOptions = 1, NeedRealDeviceName = 2 };
static KMountPoint::List possibleMountPoints(int infoNeeded=0);
static KMountPoint::List currentMountPoints(int infoNeeded=0);
QString mountedFrom() const { return m_mountedFrom; }
QString realDeviceName() const { return m_device; }
QString mountPoint() const { return m_mountPoint; }
QString mountType() const { return m_mountType; }
QStringList mountOptions() const { return m_mountOptions; }
static QString devNameFromOptions(const QStringList &options);
~KMountPoint();
private:
KMountPoint();
QString m_mountedFrom;
QString m_device;
QString m_mountPoint;
QString m_mountType;
QStringList m_mountOptions;
class KMountPointPrivate;
KMountPointPrivate *d;
};
#endif // _KMOUNTPOINT_H_
KSharedPtr
Can be used to control the lifetime of an object that has derived KShared.
Definition: ksharedptr.h:100
KMountPoint
The KMountPoint class provides information about mounted and unmounted disks.
Definition: kmountpoint.h:35
KMountPoint::mountedFrom
QString mountedFrom() const
Where this filesystem gets mounted from.
Definition: kmountpoint.h:62
KMountPoint::realDeviceName
QString realDeviceName() const
Canonical name of the device where the filesystem got mounted from.
Definition: kmountpoint.h:69
KMountPoint::mountType
QString mountType() const
Type of filesystem.
Definition: kmountpoint.h:79
KMountPoint::mountPoint
QString mountPoint() const
Path where the filesystem is mounted or can be mounted.
Definition: kmountpoint.h:74
KMountPoint::mountOptions
QStringList mountOptions() const
Options used to mount the filesystem.
Definition: kmountpoint.h:85
KShared
Reference counting for shared objects.
Definition: ksharedptr.h:40

KDE Home | KDE Accessibility Home | Description of Access Keys