Pages
API Documentation
On this page

Solid::DeviceInterface Class

Base class of all device interfaces. More...

List of all members, including inherited members

Public Types

Public Functions

Static Public Members

Detailed Description

A device interface describes what a device can do. A device generally has a set of device interfaces.

Member Type Documentation

enum DeviceInterface::Type

This enum type defines the type of device interface that a Device can have.

Constant Value Description
Solid::DeviceInterface::Unknown 0 An undetermined device interface
Solid::DeviceInterface::GenericInterface 1
Solid::DeviceInterface::Processor 2 A processor
Solid::DeviceInterface::Block 3 A block device
Solid::DeviceInterface::StorageAccess 4 A mechanism to access data on a storage device
Solid::DeviceInterface::StorageDrive 5 A storage drive
Solid::DeviceInterface::OpticalDrive 6 An optical drive (CD-ROM, DVD, ...)
Solid::DeviceInterface::StorageVolume 7 A volume
Solid::DeviceInterface::OpticalDisc 8 An optical disc
Solid::DeviceInterface::Camera 9 A digital camera
Solid::DeviceInterface::PortableMediaPlayer 10 A portable media player
Solid::DeviceInterface::Battery 12
Solid::DeviceInterface::NetworkShare 14 A network share interface

Member Function Documentation

bool DeviceInterface::isValid() const

Returns if this device interface is valid (available in the system).

[static] Solid::DeviceInterface::Type DeviceInterface::stringToType(const QString &type)

Returns the device interface type for the given class name.

[static] QString DeviceInterface::typeDescription(Solid::DeviceInterface::Type type)

Returns a pretty name for the device interface type for use in an application.

[static] QString DeviceInterface::typeToString(Solid::DeviceInterface::Type type)

Returns the class name of the device interface type.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.