File indexing completed on 2024-04-28 04:49:44

0001 /*
0002     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 #ifndef _K3B_IMAGE_FILE_READER_H_
0006 #define _K3B_IMAGE_FILE_READER_H_
0007 
0008 #include "k3b_export.h"
0009 #include <QString>
0010 
0011 namespace K3b {
0012     class LIBK3B_EXPORT ImageFileReader
0013     {
0014     public:
0015         ImageFileReader();
0016         virtual ~ImageFileReader();
0017 
0018         /**
0019          * Open a file. In most cases the TOC file
0020          */
0021         void openFile( const QString& filename );
0022 
0023         virtual bool isValid() const;
0024 
0025         /**
0026          * Return the current set filename;
0027          */
0028         QString filename() const;
0029 
0030         /**
0031          * returns the name of the corresponding image file.
0032          */
0033         virtual QString imageFilename() const;
0034 
0035     protected:
0036         virtual void readFile() = 0;
0037         void setValid( bool );
0038         void setImageFilename( const QString& );
0039 
0040     private:
0041         class Private;
0042         Private* d;
0043     };
0044 }
0045 
0046 #endif