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

Solid

Solid::Block

Solid::Block Class Reference

#include <block.h>

Inheritance diagram for Solid::Block:

Inheritance graph
[legend]

List of all members.


Detailed Description

This device interface is available on block devices.

A block device is an adressable device such as drive or partition. It is possible to interact with such a device using a special file in the system.

Definition at line 39 of file block.h.


Public Member Functions

virtual ~Block ()
int deviceMajor () const
int deviceMinor () const
QString device () const

Static Public Member Functions

static Type deviceInterfaceType ()

Properties

int major
int minor
QString device

Friends

class Device

Constructor & Destructor Documentation

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

Destroys a Block object.

Definition at line 31 of file block.cpp.


Member Function Documentation

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

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

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

Definition at line 72 of file block.h.

int Solid::Block::deviceMajor (  )  const

Retrieves the major number of the node file to interact with the device.

Returns:
the device major number

Definition at line 36 of file block.cpp.

int Solid::Block::deviceMinor (  )  const

Retrieves the minor number of the node file to interact with the device.

Returns:
the device minor number

Definition at line 42 of file block.cpp.

QString Solid::Block::device (  )  const

Retrieves the absolute path of the special file to interact with the device.

Returns:
the absolute path of the special file to interact with the device


Friends And Related Function Documentation

friend class Device [friend]

Reimplemented from Solid::DeviceInterface.

Definition at line 46 of file block.h.


Property Documentation

int Solid::Block::major [read]

Definition at line 42 of file block.h.

int Solid::Block::minor [read]

Definition at line 43 of file block.h.

QString Solid::Block::device [read]

Definition at line 44 of file block.h.


The documentation for this class was generated from the following files:
  • block.h
  • block.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
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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