KMountPoint::List

Search for usage in LXR

KMountPoint::List Class Reference

#include <kmountpoint.h>

Inheritance diagram for KMountPoint::List:

Public Member Functions

Ptr findByDevice (const QString &device) const
 
Ptr findByPath (const QString &path) const
 
- Public Member Functions inherited from QList< Ptr >
 QList (const QList< Ptr > &other)
 
 QList (InputIterator first, InputIterator last)
 
 QList (QList< Ptr > &&other)
 
 QList (std::initializer_list< Ptr > args)
 
void append (const Ptr &value)
 
void append (const QList< Ptr > &value)
 
const Ptr & at (int i) const const
 
Ptr & back ()
 
const Ptr & back () const const
 
QList::iterator begin ()
 
QList::const_iterator begin () const const
 
QList::const_iterator cbegin () const const
 
QList::const_iterator cend () const const
 
void clear ()
 
QList::const_iterator constBegin () const const
 
QList::const_iterator constEnd () const const
 
const Ptr & constFirst () const const
 
const Ptr & constLast () const const
 
bool contains (const Ptr &value) const const
 
int count () const const
 
int count (const Ptr &value) const const
 
QList::const_reverse_iterator crbegin () const const
 
QList::const_reverse_iterator crend () const const
 
bool empty () const const
 
QList::iterator end ()
 
QList::const_iterator end () const const
 
bool endsWith (const Ptr &value) const const
 
QList::iterator erase (QList::iterator begin, QList::iterator end)
 
QList::iterator erase (QList::iterator pos)
 
Ptr & first ()
 
const Ptr & first () const const
 
Ptr & front ()
 
const Ptr & front () const const
 
int indexOf (const Ptr &value, int from) const const
 
void insert (int i, const Ptr &value)
 
QList::iterator insert (QList::iterator before, const Ptr &value)
 
bool isEmpty () const const
 
Ptr & last ()
 
const Ptr & last () const const
 
int lastIndexOf (const Ptr &value, int from) const const
 
int length () const const
 
QList< Ptr > mid (int pos, int length) const const
 
void move (int from, int to)
 
bool operator!= (const QList< Ptr > &other) const const
 
QList< Ptr > operator+ (const QList< Ptr > &other) const const
 
QList< Ptr > & operator+= (const Ptr &value)
 
QList< Ptr > & operator+= (const QList< Ptr > &other)
 
bool operator< (const QList< Ptr > &lhs, const QList< Ptr > &rhs)
 
QList< Ptr > & operator<< (const Ptr &value)
 
QList< Ptr > & operator<< (const QList< Ptr > &other)
 
QDataStreamoperator<< (QDataStream &out, const QList< Ptr > &list)
 
bool operator<= (const QList< Ptr > &lhs, const QList< Ptr > &rhs)
 
QList< Ptr > & operator= (const QList< Ptr > &other)
 
QList< Ptr > & operator= (QList< Ptr > &&other)
 
bool operator== (const QList< Ptr > &other) const const
 
bool operator> (const QList< Ptr > &lhs, const QList< Ptr > &rhs)
 
bool operator>= (const QList< Ptr > &lhs, const QList< Ptr > &rhs)
 
QDataStreamoperator>> (QDataStream &in, QList< Ptr > &list)
 
Ptr & operator[] (int i)
 
const Ptr & operator[] (int i) const const
 
void pop_back ()
 
void pop_front ()
 
void prepend (const Ptr &value)
 
void push_back (const Ptr &value)
 
void push_front (const Ptr &value)
 
uint qHash (const QList< Ptr > &key, uint seed)
 
QList::reverse_iterator rbegin ()
 
QList::const_reverse_iterator rbegin () const const
 
int removeAll (const Ptr &value)
 
void removeAt (int i)
 
void removeFirst ()
 
void removeLast ()
 
bool removeOne (const Ptr &value)
 
QList::reverse_iterator rend ()
 
QList::const_reverse_iterator rend () const const
 
void replace (int i, const Ptr &value)
 
void reserve (int alloc)
 
int size () const const
 
bool startsWith (const Ptr &value) const const
 
void swap (int i, int j)
 
void swap (QList< Ptr > &other)
 
void swapItemsAt (int i, int j)
 
Ptr takeAt (int i)
 
Ptr takeFirst ()
 
Ptr takeLast ()
 
QSet< Ptr > toSet () const const
 
std::list< Ptr > toStdList () const const
 
QVector< Ptr > toVector () const const
 
Ptr value (int i) const const
 
Ptr value (int i, const Ptr &defaultValue) const 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 const_reverse_iterator
 
typedef ConstIterator
 
typedef difference_type
 
typedef Iterator
 
typedef pointer
 
typedef reference
 
typedef reverse_iterator
 
typedef size_type
 
typedef value_type
 

Detailed Description

List of mount points.

Definition at line 38 of file kmountpoint.h.

Member Function Documentation

◆ findByDevice()

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 nullptr if this device doesn't exist or isn't mounted

Definition at line 453 of file kmountpoint.cpp.

◆ findByPath()

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
paththe path to check
Returns
the mount point of the given file

Definition at line 424 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-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:04:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.