libyui-qt-pkg  2.44.7
 All Classes Functions Variables Enumerations
YQPkgObjList::ExcludedItems Class Reference

Public Types

typedef std::map
< QTreeWidgetItem
*, QTreeWidgetItem * > 
ItemMap
 
typedef std::pair
< QTreeWidgetItem
*, QTreeWidgetItem * > 
ItemPair
 
typedef ItemMap::iterator iterator
 

Public Member Functions

 ExcludedItems (YQPkgObjList *parent)
 Constructor.
 
virtual ~ExcludedItems ()
 Destructor.
 
void add (QTreeWidgetItem *item, QTreeWidgetItem *oldParent)
 Add a list item to the excluded items and transfer ownership to this class. More...
 
void remove (QTreeWidgetItem *item)
 Remove a list item from the excluded items and transfer ownership back to the caller.
 
void clear ()
 Clear the excluded items. More...
 
bool contains (QTreeWidgetItem *item)
 Returns 'true' if the specified item is in the excluded items.
 
QTreeWidgetItem * oldParentItem (QTreeWidgetItem *item)
 Returns the old parent of this item so it can be reparented or 0 if it was a root item.
 
int size () const
 Returns the number of items.
 
iterator begin ()
 Returns an iterator that points to the first excluded item.
 
iterator end ()
 Returns an iterator that points after the last excluded item.
 

Detailed Description

Definition at line 777 of file YQPkgObjList.h.

Member Function Documentation

void YQPkgObjList::ExcludedItems::add ( QTreeWidgetItem *  item,
QTreeWidgetItem *  oldParent 
)

Add a list item to the excluded items and transfer ownership to this class.

oldParent is the previous parent item of this item or 0 if it was a root item.

Definition at line 1662 of file YQPkgObjList.cc.

void YQPkgObjList::ExcludedItems::clear ( )

Clear the excluded items.

Delete all items still excluded.

Definition at line 1679 of file YQPkgObjList.cc.


The documentation for this class was generated from the following files: