• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Solid

Solid::StorageDrive

Solid::StorageDrive Class Reference

This device interface is available on storage devices. More...

#include <storagedrive.h>

Inheritance diagram for Solid::StorageDrive:

Inheritance graph
[legend]

List of all members.


Public Types

enum  Bus {
  Ide, Usb, Ieee1394, Scsi,
  Sata, Platform
}
enum  DriveType {
  HardDisk, CdromDrive, Floppy, Tape,
  CompactFlash, MemoryStick, SmartMedia, SdMmc,
  Xd
}

Public Member Functions

Bus bus () const
DriveType driveType () const
bool isHotpluggable () const
bool isRemovable () const
virtual ~StorageDrive ()

Static Public Member Functions

static Type deviceInterfaceType ()

Protected Member Functions

 StorageDrive (StorageDrivePrivate &dd, QObject *backendObject)

Properties

Bus bus
DriveType driveType
bool hotpluggable
bool removable

Detailed Description

This device interface is available on storage devices.

A storage is anything that can contain a set of volumes (card reader, hard disk, cdrom drive...). It's a particular kind of block device.

Definition at line 38 of file storagedrive.h.


Member Enumeration Documentation

enum Solid::StorageDrive::Bus

This enum type defines the type of bus a storage device is attached to.

  • Ide : An Integrated Drive Electronics (IDE) bus, also known as ATA
  • Usb : An Universal Serial Bus (USB)
  • Ieee1394 : An Ieee1394 bus, also known as Firewire
  • Scsi : A Small Computer System Interface bus
  • Sata : A Serial Advanced Technology Attachment (SATA) bus
  • Platform : A legacy bus that is part of the underlying platform
Enumerator:
Ide 
Usb 
Ieee1394 
Scsi 
Sata 
Platform 

Definition at line 60 of file storagedrive.h.

enum Solid::StorageDrive::DriveType

This enum type defines the type of drive a storage device can be.

  • HardDisk : A hard disk
  • CdromDrive : An optical drive
  • Floppy : A floppy disk drive
  • Tape : A tape drive
  • CompactFlash : A Compact Flash card reader
  • MemoryStick : A Memory Stick card reader
  • SmartMedia : A Smart Media card reader
  • SdMmc : A SecureDigital/MultiMediaCard card reader
  • Xd : A xD card reader
Enumerator:
HardDisk 
CdromDrive 
Floppy 
Tape 
CompactFlash 
MemoryStick 
SmartMedia 
SdMmc 
Xd 

Definition at line 75 of file storagedrive.h.


Constructor & Destructor Documentation

Solid::StorageDrive::~StorageDrive (  )  [virtual]

Destroys a StorageDrive object.

Definition at line 37 of file storagedrive.cpp.

Solid::StorageDrive::StorageDrive ( StorageDrivePrivate &  dd,
QObject *  backendObject 
) [protected]

For internal use only.

Definition at line 31 of file storagedrive.cpp.


Member Function Documentation

Bus Solid::StorageDrive::bus (  )  const

Retrieves the type of physical interface this storage device is connected to.

Returns:
the bus type
See also:
Solid::Ifaces::Enums::StorageDrive::Bus

static Type Solid::StorageDrive::deviceInterfaceType (  )  [inline, static]

Get the Solid::DeviceInterface::Type of the StorageDrive device interface.

Returns:
the StorageDrive device interface type
See also:
Solid::Ifaces::Enums::DeviceInterface::Type

Reimplemented in Solid::OpticalDrive.

Definition at line 102 of file storagedrive.h.

DriveType Solid::StorageDrive::driveType (  )  const

Retrieves the type of this storage drive.

Returns:
the drive type
See also:
Solid::Ifaces::Enums::StorageDrive::DriveType

bool Solid::StorageDrive::isHotpluggable (  )  const

Indicates if this storage device can be plugged or unplugged while the computer is running.

Returns:
true if this storage supports hotplug, false otherwise

Definition at line 60 of file storagedrive.cpp.

bool Solid::StorageDrive::isRemovable (  )  const

Indicates if the media contained by this drive can be removed.

For example memory card can be removed from the drive by the user, while partitions can't be removed from hard disks.

Returns:
true if media can be removed, false otherwise.

Definition at line 54 of file storagedrive.cpp.


Property Documentation

Solid::StorageDrive::Bus Solid::StorageDrive::bus [read]

Definition at line 42 of file storagedrive.h.

Solid::StorageDrive::DriveType Solid::StorageDrive::driveType [read]

Definition at line 43 of file storagedrive.h.

bool Solid::StorageDrive::hotpluggable [read]

Definition at line 45 of file storagedrive.h.

bool Solid::StorageDrive::removable [read]

Definition at line 44 of file storagedrive.h.


The documentation for this class was generated from the following files:
  • storagedrive.h
  • storagedrive.cpp

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal