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

KDECore

  • kdecore
  • io
kmountpoint.h
Go to the documentation of this file.
1/*
2 This file is part of the KDE libraries
3 Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
4 2007 David Faure <faure@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KMOUNTPOINT_H
22#define KMOUNTPOINT_H
23
24#include <kdecore_export.h>
25#include <ksharedptr.h>
26
27#include <QtCore/QStringList>
28
35class KDECORE_EXPORT KMountPoint : public KShared
36{
37public:
38 typedef KSharedPtr<KMountPoint> Ptr;
42 class KDECORE_EXPORT List : public QList<Ptr>
43 {
44 public:
45 List();
53 Ptr findByPath(const QString& path) const;
54
61 Ptr findByDevice(const QString& device) const;
62 };
63public:
70 enum DetailsNeededFlag { BasicInfoNeeded = 0, NeedMountOptions = 1, NeedRealDeviceName = 2 };
71 Q_DECLARE_FLAGS(DetailsNeededFlags, DetailsNeededFlag)
72
73
78 static List possibleMountPoints(DetailsNeededFlags infoNeeded = BasicInfoNeeded);
79
85 static List currentMountPoints(DetailsNeededFlags infoNeeded = BasicInfoNeeded);
86
91 QString mountedFrom() const;
92
98 QString realDeviceName() const;
99
103 QString mountPoint() const;
104
108 QString mountType() const;
109
114 QStringList mountOptions() const;
115
120 bool probablySlow() const;
121
122 enum FileSystemFlag { SupportsChmod, SupportsChown, SupportsUTime,
123 SupportsSymlinks, CaseInsensitive };
142 bool testFileSystemFlag(FileSystemFlag flag) const;
143
147 ~KMountPoint();
148
149private:
153 KMountPoint();
154
155 class Private;
156 Private * const d;
157};
158
159Q_DECLARE_OPERATORS_FOR_FLAGS(KMountPoint::DetailsNeededFlags)
160
161#endif // KMOUNTPOINT_H
162
KMountPoint::List
List of mount points.
Definition: kmountpoint.h:43
KMountPoint
The KMountPoint class provides information about mounted and unmounted disks.
Definition: kmountpoint.h:36
KMountPoint::FileSystemFlag
FileSystemFlag
Definition: kmountpoint.h:122
KMountPoint::DetailsNeededFlag
DetailsNeededFlag
Flags that specify which additional details should be fetched for each mountpoint.
Definition: kmountpoint.h:70
KMountPoint::Ptr
KSharedPtr< KMountPoint > Ptr
Definition: kmountpoint.h:38
KSharedPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Definition: ksharedptr.h:64
KShared
QList
Definition: kaboutdata.h:33
QStringList
QString
kdecore_export.h
ksharedptr.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

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