gio-qt 0.0.16
Loading...
Searching...
No Matches
DGioDrive Class Reference
Inheritance diagram for DGioDrive:
Collaboration diagram for DGioDrive:

Public Member Functions

 DGioDrive (Gio::Drive *gmmDrivePtr, QObject *parent=nullptr)
QString name () const
 Gets the name of drive.
QString identifier (const QString &kind=DGIODRIVE_IDENTIFIER_KIND_UNIX_DEVICE) const
 Gets the identifier of the given kind for drive.
bool hasVolumes () const
bool canStart () const
bool canStop () const
bool canEject () const
bool isMediaRemovable () const
 Checks if the drive supports removable media.
bool isRemovable () const
 Checks if the drive and/or its media is considered removable by the user.

Member Function Documentation

◆ identifier()

QString DGioDrive::identifier ( const QString & kind = DGIODRIVE_IDENTIFIER_KIND_UNIX_DEVICE) const

Gets the identifier of the given kind for drive.

Wrapper of Gio::Drive::get_identifier()

The only identifier currently available is DGIODRIVE_IDENTIFIER_KIND_UNIX_DEVICE.

Parameters
kindthe kind of identifier to return
Returns
A string containing the requested identfier, or empty string if the drive doesn't have this kind of identifier.

◆ isMediaRemovable()

bool DGioDrive::isMediaRemovable ( ) const

Checks if the drive supports removable media.

Wrapper of Gio::Drive::is_media_removable()

Returns
true if drive supports removable media, false otherwise.

◆ isRemovable()

bool DGioDrive::isRemovable ( ) const

Checks if the drive and/or its media is considered removable by the user.

Wrapper of Gio::Drive::is_removable()

Returns
true if drive and/or its media is considered removable, false otherwise.
See also
isMediaRemovable()

◆ name()

QString DGioDrive::name ( ) const

Gets the name of drive.

Wrapper of Gio::Drive::get_name()


The documentation for this class was generated from the following files: