KIO
kmountpoint.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KMOUNTPOINT_H
00022 #define KMOUNTPOINT_H
00023
00024 #include <kio/kio_export.h>
00025 #include <ksharedptr.h>
00026
00027 #include <QtCore/QStringList>
00028
00035 class KIO_EXPORT KMountPoint : public KShared
00036 {
00037 public:
00038 typedef KSharedPtr<KMountPoint> Ptr;
00042 class KIO_EXPORT List : public QList<Ptr>
00043 {
00044 public:
00045 List();
00053 Ptr findByPath(const QString& path) const;
00054
00061 Ptr findByDevice(const QString& device) const;
00062 };
00063 public:
00070 enum DetailsNeededFlag { BasicInfoNeeded = 0, NeedMountOptions = 1, NeedRealDeviceName = 2 };
00071 Q_DECLARE_FLAGS(DetailsNeededFlags, DetailsNeededFlag)
00072
00073
00078 static List possibleMountPoints(DetailsNeededFlags infoNeeded = BasicInfoNeeded);
00079
00085 static List currentMountPoints(DetailsNeededFlags infoNeeded = BasicInfoNeeded);
00086
00091 QString mountedFrom() const;
00092
00098 QString realDeviceName() const;
00099
00103 QString mountPoint() const;
00104
00108 QString mountType() const;
00109
00114 QStringList mountOptions() const;
00115
00120 bool probablySlow() const;
00121
00122 enum FileSystemFlag { SupportsChmod, SupportsChown, SupportsUTime,
00123 SupportsSymlinks, CaseInsensitive };
00142 bool testFileSystemFlag(FileSystemFlag flag) const;
00143
00147 ~KMountPoint();
00148
00149 private:
00153 KMountPoint();
00154
00155 class Private;
00156 Private * const d;
00157 };
00158
00159 Q_DECLARE_OPERATORS_FOR_FLAGS(KMountPoint::DetailsNeededFlags)
00160
00161 #endif // KMOUNTPOINT_H
00162