Main Page | Class Hierarchy | Compound List | File List | Compound Members

MP7ListViewItem Class Reference

Instances of this class represent derived QListViewItem objects representing XML elements within an MPEG-7 document. More...

#include <MP7ListViewItem.hpp>

List of all members.

Public Member Functions

 MP7ListViewItem (QListView *parent)
 MP7ListViewItem (MP7ListViewItem *parent, MP7ListViewItem *after=NULL)
 Insert this item after after in parent's list of children.

 MP7ListViewItem (MP7ListViewItem *parent, QDomElement elem, MP7ListViewItem *after=NULL)
 Insert this item after after in parent's list of children and create a corresponding element elem in the QDom tree.

 MP7ListViewItem (MP7ListViewItem *parent, int pos, QDomElement elem)
 Construct this item in position pos in the parent's list of children.

virtual ~MP7ListViewItem ()
 Destructor.

void setDomElement (const QDomElement &elem)
 Set the XML element corresponding to this item.

QDomElement domElement () const
 Return the XML element corresponding to this item.

MP7ListViewItem * prevSibling () const
 Return the previous sibling of this item.


Detailed Description

Instances of this class represent derived QListViewItem objects representing XML elements within an MPEG-7 document.

Each instance of this class is associated with an XML element in a QDom tree.

Please note: The QListView object containing instances of this class must not allow sorting of items (see QListView::setSorting()), because this class assumes a 1-1 correspondence between the child node order in the list view and QDom trees.

Author:
Mario Taschwer
Version:
Id
MP7ListViewItem.hpp,v 1.4 2004/09/24 13:15:09 mtaschwer Exp


Constructor & Destructor Documentation

MP7ListViewItem::MP7ListViewItem (  QListView *  parent  ) 
 

See also:
QListViewItem::QListViewItem(QListView *)

MP7ListViewItem::MP7ListViewItem (  MP7ListViewItem *  parent,
MP7ListViewItem *  after = NULL
) 
 

Insert this item after after in parent's list of children.

If after is NULL, this item will be parent's first child.

See also:
QListViewItem::QListViewItem(QListViewItem *, QListViewItem *after)

MP7ListViewItem::MP7ListViewItem (  MP7ListViewItem *  parent,
QDomElement  elem,
MP7ListViewItem *  after = NULL
) 
 

Insert this item after after in parent's list of children and create a corresponding element elem in the QDom tree.

If after is NULL, this item will be parent's first child.

MP7ListViewItem::MP7ListViewItem (  MP7ListViewItem *  parent,
int  pos,
QDomElement  elem
) 
 

Construct this item in position pos in the parent's list of children.

Parameters:
parent the parent item.
pos the position of this item in the parent's list of children. If pos is -1, this item will be inserted as the last child.
elem if !elem.isNull(), elem will be inserted into the corresponding QDom tree.

virtual MP7ListViewItem::~MP7ListViewItem (   )  [virtual]
 

Destructor.

Removes the associated QDomElement, too.


Member Function Documentation

MP7ListViewItem* MP7ListViewItem::prevSibling (   )  const
 

Return the previous sibling of this item.

Returns:
NULL if there is no such sibling.

void MP7ListViewItem::setDomElement (  const QDomElement &  elem  ) 
 

Set the XML element corresponding to this item.

The element must already be a node of the XML DOM tree.


The documentation for this class was generated from the following file:
Generated on Mon Sep 27 09:12:05 2004 for Muvino by doxygen 1.3.2