21 #ifndef KCAL_LISTBASE_H 22 #define KCAL_LISTBASE_H 24 #include <tqvaluelist.h> 37 : TQValueList<T *>(), mAutoDelete( false ) 42 : TQValueList<T *>( l ), mAutoDelete( false ) 49 TQValueListIterator<T *> it; 50 for( it = TQValueList<T*>::begin(); it != TQValueList<T*>::end(); ++it ) { 58 if ( this == &l ) return * this; 59 TQValueList<T *>::operator=( l ); 63 void setAutoDelete( bool autoDelete ) 65 mAutoDelete = autoDelete; 68 bool removeRef( T *t ) 70 TQValueListIterator<T *> it = this-> find( t ); 71 if ( it == TQValueList<T*>::end() ) { 74 if ( mAutoDelete ) delete t; 83 for ( TQValueListIterator<T*> it = TQValueList<T*>::begin(); 84 it != TQValueList<T*>::end(); ++it ) { 88 TQValueList<T*>::clear(); This class provides a template for lists of pointers.
Attachment * find(TQWidget *parent, const TQString &attachmentName, Incidence *incidence) Finds the attachment in the user's calendar, by attachmentName and incidence.
Namespace KCal is for global classes, objects and/or functions in libkcal.
|