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

KIO

Public Member Functions | List of all members
KDeviceListItem Class Reference

#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.

Author
Michaƫl Larouche micha.nosp@m.el.l.nosp@m.arouc.nosp@m.he@k.nosp@m.demai.nosp@m.l.ne.nosp@m.t

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
This file is part of the KDE documentation.
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.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal