• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • ListBase
Public Member Functions
KCal::ListBase Class Reference

#include <listbase.h>

Inherits QList< T * >.

List of all members.

Public Member Functions

 ListBase ()
 ListBase (const ListBase &other)
 ~ListBase ()
void clearAll ()
ListBase & operator= (const ListBase &l)
bool operator== (const ListBase &l2)
bool removeRef (T *t)
void removeRef (typename QList< T * >::iterator it)
void setAutoDelete (bool autoDelete)

Detailed Description

This class provides a template for lists of pointers.

It extends QList<T *> with an "auto-delete" functionality.


Constructor & Destructor Documentation

KCal::ListBase::ListBase ( ) [inline]

Constructor.

Definition at line 50 of file listbase.h.

KCal::ListBase::ListBase ( const ListBase &  other) [inline]

Copy constructor.

Parameters:
otheris the ListBase to copy.

Definition at line 59 of file listbase.h.

KCal::ListBase::~ListBase ( ) [inline]

Destructor.

Definition at line 67 of file listbase.h.


Member Function Documentation

void KCal::ListBase::clearAll ( ) [inline]

Clears the list.

Memory is also freed if the list is set to "auto-delete" mode.

Definition at line 102 of file listbase.h.

ListBase& KCal::ListBase::operator= ( const ListBase &  l) [inline]

Assigns l to this listbase.

Parameters:
lis the ListBase to copy.

Definition at line 78 of file listbase.h.

bool KCal::ListBase::removeRef ( T *  t) [inline]

Removes all the members from the list with the specified address.

Memory is also freed if the list is set to "auto-delete" mode.

Parameters:
tis the pointer to remove from the list.
Returns:
true if successful; otherwise false (no such address t found).

Definition at line 116 of file listbase.h.

void KCal::ListBase::removeRef ( typename QList< T * >::iterator  it) [inline]

Removes the specified member from the list.

Memory is also freed if the list is set to "auto-delete" mode.

Parameters:
itthe iterator to remove from the list.

Definition at line 134 of file listbase.h.

void KCal::ListBase::setAutoDelete ( bool  autoDelete) [inline]

Sets this list to operate in "auto-delete" mode.

This mode deletes the memory pointed at by all members of the list in the destructor.

Parameters:
autoDeleteif true, puts the list into "auto-delete" mode.

Definition at line 93 of file listbase.h.


The documentation for this class was generated from the following file:
  • listbase.h

KCal Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal