kpilot Library API Documentation

listItems.cc

00001 /* listItem.cc                  KPilot
00002 **
00003 ** Copyright (C) 1998-2001 by Dan Pilone
00004 **
00005 ** Program description
00006 */
00007 
00008 /*
00009 ** This program is free software; you can redistribute it and/or modify
00010 ** it under the terms of the GNU General Public License as published by
00011 ** the Free Software Foundation; either version 2 of the License, or
00012 ** (at your option) any later version.
00013 **
00014 ** This program is distributed in the hope that it will be useful,
00015 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017 ** GNU General Public License for more details.
00018 **
00019 ** You should have received a copy of the GNU General Public License
00020 ** along with this program in a file called COPYING; if not, write to
00021 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
00022 ** MA 02111-1307, USA.
00023 */
00024 
00025 /*
00026 ** Bug reports and questions can be sent to kde-pim@kde.org
00027 */
00028 
00029 static const char *listitems_id =
00030         "$Id: listItems.cc,v 1.7.6.2 2003/03/12 23:31:14 adridg Exp $";
00031 
00032 #include "options.h"
00033 
00034 
00035 
00036 #ifndef _QSTRING_H
00037 #include <qstring.h>
00038 #endif
00039 #ifndef _QLISTBOX_H
00040 #include <qlistbox.h>
00041 #endif
00042 
00043 
00044 
00045 #ifndef _KPILOT_LISTITEMS_H
00046 #include "listItems.h"
00047 #endif
00048 
00049 #ifdef DEBUG
00050 /* static */ int PilotListItem::crt = 0;
00051 /* static */ int PilotListItem::del = 0;
00052 /* static */ int PilotListItem::count = 0;
00053 
00054 /* static */ void PilotListItem::counts()
00055 {
00056         FUNCTIONSETUP;
00057         DEBUGKPILOT << fname
00058                 << ": created=" << crt << " deletions=" << del << endl;
00059 }
00060 #endif
00061 
00062 PilotListItem::PilotListItem(const QString & text,
00063         int pilotid, void *r) :
00064         QListBoxText(text),
00065         fid(pilotid),
00066         fr(r)
00067 {
00068         // FUNCTIONSETUP;
00069 #ifdef DEBUG
00070         crt++;
00071         count++;
00072         if (!(count & 0xff))
00073                 counts();
00074 #endif
00075         (void) listitems_id;
00076 }
00077 
00078 PilotListItem::~PilotListItem()
00079 {
00080         // FUNCTIONSETUP;
00081 #ifdef DEBUG
00082         del++;
00083         count++;
00084         if (!(count & 0xff))
00085                 counts();
00086 #endif
00087 }
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001