• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions

KDeviceListItem Class Reference

Item for the Device List model Represent a Solid::Device in the tree device list model. More...

#include <kdevicelistitem_p.h>

List of all members.

Public Member Functions

 KDeviceListItem ()
 ~KDeviceListItem ()
KDeviceListItem * child (int row)
int childCount () const
QList< KDeviceListItem * > children ()
Solid::Device & device ()
int indexOf (KDeviceListItem *child) const
KDeviceListItem * parent ()
int row () const
void setDevice (const Solid::Device &device)
void setParent (KDeviceListItem *parent)

Detailed Description

Item for the Device List model Represent a Solid::Device in the tree device list model.

It helps to map the device in the tree.

Keep a reference of the device that it maps.

Author:
Michaƫl Larouche <michael.larouche@kdemail.net>

Definition at line 40 of file kdevicelistitem_p.h.


Constructor & Destructor Documentation

KDeviceListItem::KDeviceListItem ( )

Create a new DeviceListItem.

Definition at line 40 of file kdevicelistitem.cpp.

KDeviceListItem::~KDeviceListItem ( )

The d-tor duh.

Definition at line 45 of file kdevicelistitem.cpp.


Member Function Documentation

KDeviceListItem * KDeviceListItem::child ( int  row)

Return a child of this item according to the given row.

Parameters:
rowrow of the child to retrieve.
Returns:
the child DeviceListItem

Definition at line 50 of file kdevicelistitem.cpp.

int KDeviceListItem::childCount ( ) const

Helper method to get the numbers of childrens of this item.

Returns:
the child count of this item.

Definition at line 65 of file kdevicelistitem.cpp.

QList< KDeviceListItem * > KDeviceListItem::children ( )

Get all the children of this item.

Returns:
list of children.

Definition at line 55 of file kdevicelistitem.cpp.

Solid::Device & KDeviceListItem::device ( )

Get the Solid::Device reference for this item.

Returns:
the Solid::Device reference.

Definition at line 102 of file kdevicelistitem.cpp.

int KDeviceListItem::indexOf ( KDeviceListItem *  child) const

Returns the index position of a child in the list.

Parameters:
childthe child to insert.
Returns:
the index position of a child in the list.

Definition at line 60 of file kdevicelistitem.cpp.

KDeviceListItem * KDeviceListItem::parent ( )

Get the parent of this item.

Returns:
the parent DeviceListItem.

Definition at line 92 of file kdevicelistitem.cpp.

int KDeviceListItem::row ( ) const

Get the relative(to parent) row position of this item in the tree.

Returns:
the row position.

Definition at line 70 of file kdevicelistitem.cpp.

void KDeviceListItem::setDevice ( const Solid::Device &  device)

Get the Solid::Device reference for this item.

Parameters:
devicethe Solid::Device reference.

Definition at line 97 of file kdevicelistitem.cpp.

void KDeviceListItem::setParent ( KDeviceListItem *  parent)

Set the parent of this item.

Parameters:
parentthe parent DeviceListItem.

Definition at line 79 of file kdevicelistitem.cpp.


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

KIO

Skip menu "KIO"
  • 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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