kmdinulliterator.h

00001 //----------------------------------------------------------------------------
00002 //    filename             : kmdinulliterator.h
00003 //----------------------------------------------------------------------------
00004 //    Project              : KDE MDI extension
00005 //
00006 //    begin                : 02/2000       by Massimo Morin
00007 //    changes              : 02/2000       by Falk Brettschneider to create an
00008 //                           - 06/2000     stand-alone Qt extension set of
00009 //                                         classes and a Qt-based library
00010 //                           2000-2003     maintained by the KDevelop project
00011 //
00012 //    copyright            : (C) 1999-2003 by Massimo Morin (mmorin@schedsys.com)
00013 //                                         and
00014 //                                         Falk Brettschneider
00015 //    email                :  falkbr@kdevelop.org (Falk Brettschneider)
00016 //----------------------------------------------------------------------------
00017 //
00018 //----------------------------------------------------------------------------
00019 //
00020 //    This program is free software; you can redistribute it and/or modify
00021 //    it under the terms of the GNU Library General Public License as
00022 //    published by the Free Software Foundation; either version 2 of the
00023 //    License, or (at your option) any later version.
00024 //
00025 //----------------------------------------------------------------------------
00026 
00027 #ifndef _KMDINULLITERATOR_H_
00028 #define _KMDINULLITERATOR_H_
00029 
00030 #include "kmdiiterator.h"
00031 
00032 template <class Item>
00033 class KMdiNullIterator : public KMdiIterator<Item> {
00034 public:
00035    KMdiNullIterator() {};
00036    virtual void first() {}
00037    virtual void last() {}
00038    virtual void next() {}
00039    virtual void prev() {}
00040    virtual bool isDone() const { return true; }
00041    virtual Item currentItem() const {
00042    /* should really never go inside here */
00043    return 0;
00044    }
00045 };
00046 
00047 #endif // _KMDINULLITERATOR_H_
00048 // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
00049 
KDE Home | KDE Accessibility Home | Description of Access Keys