KIO
#include <kdevicelistitem_p.h>
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.
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
-
row row 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
-
child the 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
-
device the Solid::Device reference.
Definition at line 97 of file kdevicelistitem.cpp.
| void KDeviceListItem::setParent | ( | KDeviceListItem * | parent | ) |
Set the parent of this item.
- Parameters
-
parent the parent DeviceListItem.
Definition at line 79 of file kdevicelistitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference