+++ /dev/null
-#ifndef __FILTERINTERFACE_H__
-#define __FILTERINTERFACE_H__
-
-#include <QtCore>
-#include "drawing.h"
-
-/**
- * This is the interface that must be implemented for all
- * format filter classes. The FileIO class
- * uses the methods defined in here to interact with the format
- * filter classes.
- *
- * @author Andrew Mustun
- */
-class FilterInterface
-{
- public:
- /**
- * Constructor.
- */
- FilterInterface();
- virtual ~FilterInterface();
-
- virtual bool canImport(RS2::FormatType t);
- virtual bool canExport(RS2::FormatType t);
-
- /**
- * The implementation of this method in a inherited format
- * class should read a file from disk and put the entities
- * into the current entity container.
- */
- virtual bool fileImport(Drawing & g, const QString & file, RS2::FormatType type) = 0;
-
- /**
- * The implementation of this method in a inherited format
- * class should write the entities in the current entity container
- * to a file on the disk.
- */
- virtual bool fileExport(Drawing & g, const QString & file, RS2::FormatType type) = 0;
-
- protected:
- void addImportFormat(RS2::FormatType type);
- void addExportFormat(RS2::FormatType type);
-
- protected:
- //! Pointer to the graphic we currently operate on.
- //Drawing* graphic;
-
- //! Vector of file extensions this filter can import.
-// Q3ValueList<RS2::FormatType> importFormats;
- QList<RS2::FormatType> importFormats;
-
- //! Vector of file extensions this filter can export.
-// Q3ValueList<RS2::FormatType> exportFormats;
- QList<RS2::FormatType> exportFormats;
-};
-
-#endif