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 (const QList< Ptr > &other)
 
 QList (InputIterator first, InputIterator last)
 
 QList (InputIterator first, InputIterator last)
 
 QList (QList< Ptr > &&other)
 
 QList (QList< Ptr > &&other)
 
 QList (qsizetype size)
 
 QList (qsizetype size)
 
 QList (qsizetype size, parameter_type value)
 
 QList (qsizetype size, parameter_type value)
 
 QList (std::initializer_list< Ptr > args)
 
 QList (std::initializer_list< Ptr > args)
 
void append (const QList< Ptr > &value)
 
void append (const QList< Ptr > &value)
 
void append (parameter_type value)
 
void append (parameter_type value)
 
void append (QList< Ptr > &&value)
 
void append (QList< Ptr > &&value)
 
void append (rvalue_ref value)
 
void append (rvalue_ref value)
 
const_reference at (qsizetype i) const const
 
const_reference at (qsizetype i) const const
 
reference back ()
 
reference back ()
 
const_reference back () const const
 
const_reference back () const const
 
iterator begin ()
 
iterator begin ()
 
const_iterator begin () const const
 
const_iterator begin () const const
 
qsizetype capacity () const const
 
qsizetype capacity () const const
 
const_iterator cbegin () const const
 
const_iterator cbegin () const const
 
const_iterator cend () const const
 
const_iterator cend () const const
 
void clear ()
 
void clear ()
 
const_iterator constBegin () const const
 
const_iterator constBegin () const const
 
const_pointer constData () const const
 
const_pointer constData () const const
 
const_iterator constEnd () const const
 
const_iterator constEnd () const const
 
const Ptr & constFirst () const const
 
const Ptr & constFirst () const const
 
const Ptr & constLast () const const
 
const Ptr & constLast () const const
 
bool contains (const AT &value) const const
 
bool contains (const AT &value) const const
 
qsizetype count () const const
 
qsizetype count () const const
 
qsizetype count (const AT &value) const const
 
qsizetype count (const AT &value) const const
 
const_reverse_iterator crbegin () const const
 
const_reverse_iterator crbegin () const const
 
const_reverse_iterator crend () const const
 
const_reverse_iterator crend () const const
 
pointer data ()
 
pointer data ()
 
const_pointer data () const const
 
const_pointer data () const const
 
iterator emplace (const_iterator before, Args &&... args)
 
iterator emplace (const_iterator before, Args &&... args)
 
iterator emplace (qsizetype i, Args &&... args)
 
iterator emplace (qsizetype i, Args &&... args)
 
reference emplace_back (Args &&... args)
 
reference emplace_back (Args &&... args)
 
reference emplaceBack (Args &&... args)
 
reference emplaceBack (Args &&... args)
 
bool empty () const const
 
bool empty () const const
 
iterator end ()
 
iterator end ()
 
const_iterator end () const const
 
const_iterator end () const const
 
bool endsWith (parameter_type value) const const
 
bool endsWith (parameter_type value) const const
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator pos)
 
iterator erase (const_iterator pos)
 
qsizetype erase (QList< Ptr > &list, const AT &t)
 
qsizetype erase (QList< Ptr > &list, const AT &t)
 
qsizetype erase_if (QList< Ptr > &list, Predicate pred)
 
qsizetype erase_if (QList< Ptr > &list, Predicate pred)
 
QList< Ptr > & fill (parameter_type value, qsizetype size)
 
QList< Ptr > & fill (parameter_type value, qsizetype size)
 
Ptr & first ()
 
Ptr & first ()
 
const Ptr & first () const const
 
const Ptr & first () const const
 
QList< Ptr > first (qsizetype n) const const
 
QList< Ptr > first (qsizetype n) const const
 
reference front ()
 
reference front ()
 
const_reference front () const const
 
const_reference front () const const
 
qsizetype indexOf (const AT &value, qsizetype from) const const
 
qsizetype indexOf (const AT &value, qsizetype from) const const
 
iterator insert (const_iterator before, parameter_type value)
 
iterator insert (const_iterator before, parameter_type value)
 
iterator insert (const_iterator before, qsizetype count, parameter_type value)
 
iterator insert (const_iterator before, qsizetype count, parameter_type value)
 
iterator insert (const_iterator before, rvalue_ref value)
 
iterator insert (const_iterator before, rvalue_ref value)
 
iterator insert (qsizetype i, parameter_type value)
 
iterator insert (qsizetype i, parameter_type value)
 
iterator insert (qsizetype i, qsizetype count, parameter_type value)
 
iterator insert (qsizetype i, qsizetype count, parameter_type value)
 
iterator insert (qsizetype i, rvalue_ref value)
 
iterator insert (qsizetype i, rvalue_ref value)
 
bool isEmpty () const const
 
bool isEmpty () const const
 
Ptr & last ()
 
Ptr & last ()
 
const Ptr & last () const const
 
const Ptr & last () const const
 
QList< Ptr > last (qsizetype n) const const
 
QList< Ptr > last (qsizetype n) const const
 
qsizetype lastIndexOf (const AT &value, qsizetype from) const const
 
qsizetype lastIndexOf (const AT &value, qsizetype from) const const
 
qsizetype length () const const
 
qsizetype length () const const
 
QList< Ptr > mid (qsizetype pos, qsizetype length) const const
 
QList< Ptr > mid (qsizetype pos, qsizetype length) const const
 
void move (qsizetype from, qsizetype to)
 
void move (qsizetype from, qsizetype to)
 
bool operator!= (const QList< Ptr > &other) const const
 
bool operator!= (const QList< Ptr > &other) const const
 
QList< Ptr > operator+ (const QList< Ptr > &other) &&
 
QList< Ptr > operator+ (const QList< Ptr > &other) &&
 
QList< Ptr > operator+ (const QList< Ptr > &other) const &const
 
QList< Ptr > operator+ (const QList< Ptr > &other) const &const
 
QList< Ptr > operator+ (QList< Ptr > &&other) &&
 
QList< Ptr > operator+ (QList< Ptr > &&other) &&
 
QList< Ptr > operator+ (QList< Ptr > &&other) const &const
 
QList< Ptr > operator+ (QList< Ptr > &&other) const &const
 
QList< Ptr > & operator+= (const QList< Ptr > &other)
 
QList< Ptr > & operator+= (const QList< Ptr > &other)
 
QList< Ptr > & operator+= (parameter_type value)
 
QList< Ptr > & operator+= (parameter_type value)
 
QList< Ptr > & operator+= (QList< Ptr > &&other)
 
QList< Ptr > & operator+= (QList< Ptr > &&other)
 
QList< Ptr > & operator+= (rvalue_ref value)
 
QList< Ptr > & operator+= (rvalue_ref value)
 
bool operator< (const QList< Ptr > &other) const const
 
bool operator< (const QList< Ptr > &other) const const
 
QList< Ptr > & operator<< (const QList< Ptr > &other)
 
QList< Ptr > & operator<< (const QList< Ptr > &other)
 
QList< Ptr > & operator<< (parameter_type value)
 
QList< Ptr > & operator<< (parameter_type value)
 
QDataStreamoperator<< (QDataStream &out, const QList< Ptr > &list)
 
QDataStreamoperator<< (QDataStream &out, const QList< Ptr > &list)
 
QList< Ptr > & operator<< (QList< Ptr > &&other)
 
QList< Ptr > & operator<< (QList< Ptr > &&other)
 
QList< Ptr > & operator<< (rvalue_ref value)
 
QList< Ptr > & operator<< (rvalue_ref value)
 
bool operator<= (const QList< Ptr > &other) const const
 
bool operator<= (const QList< Ptr > &other) const const
 
QList< Ptr > & operator= (const QList< Ptr > &other)
 
QList< Ptr > & operator= (const QList< Ptr > &other)
 
QList< Ptr > & operator= (QList< Ptr > &&other)
 
QList< Ptr > & operator= (QList< Ptr > &&other)
 
QList< Ptr > & operator= (std::initializer_list< Ptr > args)
 
QList< Ptr > & operator= (std::initializer_list< Ptr > args)
 
bool operator== (const QList< Ptr > &other) const const
 
bool operator== (const QList< Ptr > &other) const const
 
bool operator> (const QList< Ptr > &other) const const
 
bool operator> (const QList< Ptr > &other) const const
 
bool operator>= (const QList< Ptr > &other) const const
 
bool operator>= (const QList< Ptr > &other) const const
 
QDataStreamoperator>> (QDataStream &in, QList< Ptr > &list)
 
QDataStreamoperator>> (QDataStream &in, QList< Ptr > &list)
 
reference operator[] (qsizetype i)
 
reference operator[] (qsizetype i)
 
const_reference operator[] (qsizetype i) const const
 
const_reference operator[] (qsizetype i) const const
 
void pop_back ()
 
void pop_back ()
 
void pop_front ()
 
void pop_front ()
 
void prepend (parameter_type value)
 
void prepend (parameter_type value)
 
void prepend (rvalue_ref value)
 
void prepend (rvalue_ref value)
 
void push_back (parameter_type value)
 
void push_back (parameter_type value)
 
void push_back (rvalue_ref value)
 
void push_back (rvalue_ref value)
 
void push_front (parameter_type value)
 
void push_front (parameter_type value)
 
void push_front (rvalue_ref value)
 
void push_front (rvalue_ref value)
 
size_t qHash (const QList< Ptr > &key, size_t seed)
 
size_t qHash (const QList< Ptr > &key, size_t seed)
 
reverse_iterator rbegin ()
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const const
 
const_reverse_iterator rbegin () const const
 
void remove (qsizetype i, qsizetype n)
 
void remove (qsizetype i, qsizetype n)
 
qsizetype removeAll (const AT &t)
 
qsizetype removeAll (const AT &t)
 
void removeAt (qsizetype i)
 
void removeAt (qsizetype i)
 
void removeFirst ()
 
void removeFirst ()
 
qsizetype removeIf (Predicate pred)
 
qsizetype removeIf (Predicate pred)
 
void removeLast ()
 
void removeLast ()
 
bool removeOne (const AT &t)
 
bool removeOne (const AT &t)
 
reverse_iterator rend ()
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const const
 
const_reverse_iterator rend () const const
 
void replace (qsizetype i, parameter_type value)
 
void replace (qsizetype i, parameter_type value)
 
void replace (qsizetype i, rvalue_ref value)
 
void replace (qsizetype i, rvalue_ref value)
 
void reserve (qsizetype size)
 
void reserve (qsizetype size)
 
void resize (qsizetype size)
 
void resize (qsizetype size)
 
void resize (qsizetype size, parameter_type c)
 
void resize (qsizetype size, parameter_type c)
 
void shrink_to_fit ()
 
void shrink_to_fit ()
 
qsizetype size () const const
 
qsizetype size () const const
 
QList< Ptr > sliced (qsizetype pos) const const
 
QList< Ptr > sliced (qsizetype pos) const const
 
QList< Ptr > sliced (qsizetype pos, qsizetype n) const const
 
QList< Ptr > sliced (qsizetype pos, qsizetype n) const const
 
void squeeze ()
 
void squeeze ()
 
bool startsWith (parameter_type value) const const
 
bool startsWith (parameter_type value) const const
 
void swap (QList< Ptr > &other)
 
void swap (QList< Ptr > &other)
 
void swapItemsAt (qsizetype i, qsizetype j)
 
void swapItemsAt (qsizetype i, qsizetype j)
 
Ptr takeAt (qsizetype i)
 
Ptr takeAt (qsizetype i)
 
value_type takeFirst ()
 
value_type takeFirst ()
 
value_type takeLast ()
 
value_type takeLast ()
 
QList< Ptr > toList () const const
 
QList< Ptr > toList () const const
 
QList< Ptr > toVector () const const
 
QList< Ptr > toVector () const const
 
Ptr value (qsizetype i) const const
 
Ptr value (qsizetype i) const const
 
Ptr value (qsizetype i, parameter_type defaultValue) const const
 
Ptr value (qsizetype i, parameter_type defaultValue) const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QList< Ptr >
QList< Ptr > fromList (const QList< Ptr > &list)
 
QList< Ptr > fromList (const QList< Ptr > &list)
 
QList< Ptr > fromVector (const QList< Ptr > &list)
 
QList< Ptr > fromVector (const QList< Ptr > &list)
 
- Public Attributes inherited from QList< Ptr >
typedef const_pointer
 
typedef const_pointer
 
typedef const_reference
 
typedef const_reference
 
typedef const_reverse_iterator
 
typedef const_reverse_iterator
 
typedef ConstIterator
 
typedef ConstIterator
 
typedef difference_type
 
typedef difference_type
 
typedef Iterator
 
typedef Iterator
 
typedef parameter_type
 
typedef parameter_type
 
typedef pointer
 
typedef pointer
 
typedef reference
 
typedef reference
 
typedef reverse_iterator
 
typedef reverse_iterator
 
typedef rvalue_ref
 
typedef rvalue_ref
 
typedef size_type
 
typedef size_type
 
typedef value_type
 
typedef value_type
 

Detailed Description

List of mount points.

Definition at line 38 of file kmountpoint.h.

Constructor & Destructor Documentation

◆ List()

KMountPoint::List::List ( )

Definition at line 425 of file kmountpoint.cpp.

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 459 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 430 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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.