kpilot Library API Documentation

listItems.h

00001 /* listItems.h                  KPilot
00002 **
00003 ** Copyright (C) 1998-2001 by Dan Pilone
00004 **
00005 ** This file defines a subclasse of QListBoxText that carries
00006 ** additional information useful for Pilot records. In particular it
00007 ** carries an int (for the pilot's uid?) and a void * (for pilotrecord?)
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
00024 ** MA 02111-1307, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
00029 */
00030 
00031 #ifndef _KPILOT_LISTITEMS_H
00032 #define _KPILOT_LISTITEMS_H
00033 
00034 #ifndef QLISTBOX_H
00035 #include <qlistbox.h>
00036 #endif
00037 
00038 class PilotListItem : public QListBoxText
00039 {
00040 public:
00041         PilotListItem(const QString &text, int pilotid=0, void *r=0); 
00042         virtual ~PilotListItem();
00043         int id() const {return fid;};
00044         const void *rec() const {return fr;};
00045 
00046 
00047 protected:
00048         int fid;
00049         void *fr;
00050 
00051 #ifdef DEBUG
00052 public:
00053         static void counts();
00054 private:
00055         static int crt,del,bal,count;
00056 #endif
00057 };
00058 
00059 
00060 #else
00061 #ifdef DEBUG
00062 #warning "File doubly included"
00063 #endif
00064 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:14 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001