KDECore
KMountPoint::List Class Reference
#include <kmountpoint.h>
Inheritance diagram for KMountPoint::List:
Public Member Functions | |
List () | |
Ptr | findByDevice (const QString &device) const |
Ptr | findByPath (const QString &path) const |
Public Member Functions inherited from QList< Ptr > | |
QList () | |
QList (const QList< Ptr > &other) | |
QList (std::initializer_list< Ptr > args) | |
~QList () | |
void | append (const Ptr &value) |
void | append (const QList< Ptr > &value) |
const Ptr & | at (int i) const |
Ptr & | back () |
const Ptr & | back () const |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
bool | contains (const Ptr &value) const |
int | count (const Ptr &value) const |
int | count () const |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
bool | endsWith (const Ptr &value) const |
iterator | erase (iterator pos) |
iterator | erase (iterator begin, iterator end) |
iterator | find (iterator from, const Ptr &t) |
iterator | find (const Ptr &t) |
const_iterator | find (const Ptr &t) const |
const_iterator | find (const_iterator from, const Ptr &t) const |
int | findIndex (const Ptr &t) const |
Ptr & | first () |
const Ptr & | first () const |
Ptr & | front () |
const Ptr & | front () const |
int | indexOf (const Ptr &value, int from) const |
void | insert (int i, const Ptr &value) |
iterator | insert (iterator before, const Ptr &value) |
bool | isEmpty () const |
Ptr & | last () |
const Ptr & | last () const |
int | lastIndexOf (const Ptr &value, int from) const |
int | length () const |
QList< Ptr > | mid (int pos, int length) const |
void | move (int from, int to) |
bool | operator!= (const QList< Ptr > &other) const |
QList< Ptr > | operator+ (const QList< Ptr > &other) const |
QList< Ptr > & | operator+= (const QList< Ptr > &other) |
QList< Ptr > & | operator+= (const Ptr &value) |
QList< Ptr > & | operator<< (const Ptr &value) |
QList< Ptr > & | operator<< (const QList< Ptr > &other) |
QList< Ptr > & | operator= (const QList< Ptr > &other) |
bool | operator== (const QList< Ptr > &other) const |
Ptr & | operator[] (int i) |
const Ptr & | operator[] (int i) const |
void | pop_back () |
void | pop_front () |
void | prepend (const Ptr &value) |
void | push_back (const Ptr &value) |
void | push_front (const Ptr &value) |
iterator | remove (iterator pos) |
int | remove (const Ptr &t) |
int | removeAll (const Ptr &value) |
void | removeAt (int i) |
void | removeFirst () |
void | removeLast () |
bool | removeOne (const Ptr &value) |
void | replace (int i, const Ptr &value) |
void | reserve (int alloc) |
int | size () const |
bool | startsWith (const Ptr &value) const |
void | swap (int i, int j) |
void | swap (QList< Ptr > &other) |
Ptr | takeAt (int i) |
Ptr | takeFirst () |
Ptr | takeLast () |
QSet< Ptr > | toSet () const |
std::list< Ptr > | toStdList () const |
QVector< Ptr > | toVector () const |
Ptr | value (int i, const Ptr &defaultValue) const |
Ptr | value (int i) const |
Additional Inherited Members | |
Static Public Member Functions inherited from QList< Ptr > | |
QList< Ptr > | fromSet (const QSet< Ptr > &set) |
QList< Ptr > | fromStdList (const std::list< Ptr > &list) |
QList< Ptr > | fromVector (const QVector< Ptr > &vector) |
Public Attributes inherited from QList< Ptr > | |
typedef | const_pointer |
typedef | const_reference |
typedef | ConstIterator |
typedef | difference_type |
typedef | Iterator |
typedef | pointer |
typedef | reference |
typedef | size_type |
typedef | value_type |
Detailed Description
List of mount points.
Definition at line 42 of file kmountpoint.h.
Constructor & Destructor Documentation
KMountPoint::List::List | ( | ) |
Definition at line 479 of file kmountpoint.cpp.
Member Function Documentation
KMountPoint::Ptr KMountPoint::List::findByDevice | ( | const QString & | device | ) | const |
Returns the mount point associated with device
, i.e.
the one where mountedFrom() == device
(after symlink resolution).
- Returns
- the mountpoint, or 0 if this device doesn't exist or isn't mounted
Definition at line 525 of file kmountpoint.cpp.
KMountPoint::Ptr KMountPoint::List::findByPath | ( | const QString & | path | ) | const |
Find the mountpoint on which resides path
For instance if /home is a separate partition, findByPath("/home/user/blah") will return /home.
- Parameters
-
path the path to check
- Returns
- the mount point of the given file
Definition at line 502 of file kmountpoint.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.