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 / k3bimagefilereader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.2 KB  |  56 lines

  1. /* 
  2.  *
  3.  * $Id: k3bimagefilereader.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_IMAGE_FILE_READER_H_
  17. #define _K3B_IMAGE_FILE_READER_H_
  18.  
  19. #include <qstring.h>
  20. #include "k3b_export.h"
  21.  
  22. class LIBK3B_EXPORT K3bImageFileReader
  23. {
  24.  public:
  25.   K3bImageFileReader();
  26.   virtual ~K3bImageFileReader();
  27.  
  28.   /**
  29.    * Open a file. In most cases the TOC file
  30.    */
  31.   void openFile( const QString& filename );
  32.  
  33.   virtual bool isValid() const;
  34.  
  35.   /**
  36.    * Return the current set filename;
  37.    */
  38.   const QString& filename() const;
  39.  
  40.   /**
  41.    * returns the name of the corresponding image file.
  42.    */
  43.   virtual const QString& imageFilename() const;
  44.  
  45.  protected:
  46.   virtual void readFile() = 0;
  47.   void setValid( bool );
  48.   void setImageFilename( const QString& );
  49.  
  50.  private:
  51.   class Private;
  52.   Private* d;
  53. };
  54.  
  55. #endif
  56.