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

KDECore

  • kdecore
  • io
Macros | Functions | Variables
kmountpoint.cpp File Reference
#include "kmountpoint.h"
#include <config.h>
#include <stdlib.h>
#include <QtCore/QFile>
#include <QtCore/QTextIStream>
#include "kstandarddirs.h"
#include <windows.h>
#include <QDir>
#include "kdebug.h"

Go to the source code of this file.

Macros

#define ENDMNTENT   fclose
 
#define FSNAME(var)   var.mnt_special
 
#define FSTAB   "/etc/fstab"
 
#define GETMNTENT(file, var)   (getmntent(file, &var) == 0)
 
#define MNTTAB   "/etc/mnttab"
 
#define MOUNTOPTIONS(var)   var.mnt_mntopts
 
#define MOUNTPOINT(var)   var.mnt_mountp
 
#define MOUNTTYPE(var)   var.mnt_fstype
 
#define SETMNTENT   fopen
 
#define STRUCT_MNTENT   struct mnttab
 
#define STRUCT_SETMNTENT   FILE *
 

Functions

static QString devNameFromOptions (const QStringList &options)
 
static bool pathsAreParentAndChildOrEqual (const QString &parent, const QString &child)
 

Variables

static Qt::CaseSensitivity cs = Qt::CaseInsensitive
 

Macro Definition Documentation

◆ ENDMNTENT

#define ENDMNTENT   fclose

Definition at line 147 of file kmountpoint.cpp.

◆ FSNAME

#define FSNAME (   var)    var.mnt_special

Definition at line 154 of file kmountpoint.cpp.

◆ FSTAB

#define FSTAB   "/etc/fstab"

Definition at line 103 of file kmountpoint.cpp.

◆ GETMNTENT

#define GETMNTENT (   file,
  var 
)    (getmntent(file, &var) == 0)

Definition at line 150 of file kmountpoint.cpp.

◆ MNTTAB

#define MNTTAB   "/etc/mnttab"

Definition at line 91 of file kmountpoint.cpp.

◆ MOUNTOPTIONS

#define MOUNTOPTIONS (   var)    var.mnt_mntopts

Definition at line 153 of file kmountpoint.cpp.

◆ MOUNTPOINT

#define MOUNTPOINT (   var)    var.mnt_mountp

Definition at line 151 of file kmountpoint.cpp.

◆ MOUNTTYPE

#define MOUNTTYPE (   var)    var.mnt_fstype

Definition at line 152 of file kmountpoint.cpp.

◆ SETMNTENT

#define SETMNTENT   fopen

Definition at line 146 of file kmountpoint.cpp.

◆ STRUCT_MNTENT

#define STRUCT_MNTENT   struct mnttab

Definition at line 148 of file kmountpoint.cpp.

◆ STRUCT_SETMNTENT

#define STRUCT_SETMNTENT   FILE *

Definition at line 149 of file kmountpoint.cpp.

Function Documentation

◆ devNameFromOptions()

static QString devNameFromOptions ( const QStringList &  options)
static

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

Definition at line 161 of file kmountpoint.cpp.

◆ pathsAreParentAndChildOrEqual()

static bool pathsAreParentAndChildOrEqual ( const QString &  parent,
const QString &  child 
)
static

Definition at line 484 of file kmountpoint.cpp.

Variable Documentation

◆ cs

Qt::CaseSensitivity cs = Qt::CaseInsensitive
static

Definition at line 37 of file kmountpoint.cpp.

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