home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kmdiiterator.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.8 KB  |  52 lines

  1. //----------------------------------------------------------------------------
  2. //    filename             : kmdiiterator.h
  3. //----------------------------------------------------------------------------
  4. //    Project              : KDE MDI extension
  5. //
  6. //    begin                : 02/2000       by Massimo Morin
  7. //    changes              : 02/2000       by Falk Brettschneider to create an
  8. //                           - 06/2000     stand-alone Qt extension set of
  9. //                                         classes and a Qt-based library
  10. //                           2000-2003     maintained by the KDevelop project
  11. //
  12. //    copyright            : (C) 1999-2003 by Massimo Morin (mmorin@schedsys.com)
  13. //                                         and
  14. //                                         Falk Brettschneider
  15. //    email                :  falkbr@kdevelop.org (Falk Brettschneider)
  16. //----------------------------------------------------------------------------
  17. //
  18. //----------------------------------------------------------------------------
  19. //
  20. //    This program is free software; you can redistribute it and/or modify
  21. //    it under the terms of the GNU Library General Public License as
  22. //    published by the Free Software Foundation; either version 2 of the
  23. //    License, or (at your option) any later version.
  24. //
  25. //----------------------------------------------------------------------------
  26.  
  27. #ifndef _KMDIITERATOR_H_
  28. #define _KMDIITERATOR_H_
  29.  
  30.  
  31. template <class Item>
  32. class KMdiIterator
  33. {
  34. public:
  35.     virtual ~KMdiIterator() {}
  36.  
  37.     virtual void first() = 0;
  38.     virtual void last() = 0;
  39.     virtual void next() = 0;
  40.     virtual void prev() = 0;
  41.     virtual bool isDone() const = 0;
  42.     virtual Item currentItem() const = 0;
  43.  
  44. protected:
  45.     KMdiIterator() {}
  46. }
  47. ;
  48.  
  49. #endif // _KMDIITERATOR_H_ 
  50. // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
  51.  
  52.