KCoreAddons

kfilesystemtype.h
1 /*
2  This file is part of the KDE libraries
3 
4  SPDX-FileCopyrightText: 2011 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only
7 */
8 
9 #ifndef KFILESYSTEMTYPE_P_H
10 #define KFILESYSTEMTYPE_P_H
11 
12 #include <QString>
13 #include <kcoreaddons_export.h>
14 
15 /**
16  * @namespace KFileSystemType
17  * Provides utility functions for the type of file systems.
18  */
19 namespace KFileSystemType
20 {
21 enum Type {
22  Unknown,
23  Nfs, ///< NFS or other full-featured networked filesystems (autofs, subfs, cachefs, sshfs)
24  Smb, ///< SMB/CIFS mount (networked but with some FAT-like behavior)
25  Fat, ///< FAT or similar (msdos, fat, vfat)
26  Ramfs, ///< RAMDISK mount
27  Other, ///< ext, reiser, and so on. "Normal" local filesystems.
28 };
29 
30 /**
31  * Returns the file system type at a given path, as much as we are able to figure it out.
32  * @since 5.0
33  */
34 KCOREADDONS_EXPORT Type fileSystemType(const QString &path);
35 
36 }
37 
38 #endif
FAT or similar (msdos, fat, vfat)
KCOREADDONS_EXPORT Type fileSystemType(const QString &path)
Returns the file system type at a given path, as much as we are able to figure it out...
Provides utility functions for the type of file systems.
ext, reiser, and so on. "Normal" local filesystems.
NFS or other full-featured networked filesystems (autofs, subfs, cachefs, sshfs)
SMB/CIFS mount (networked but with some FAT-like behavior)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Apr 22 2021 23:02:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.