X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Ffilterinterface.h;fp=src%2Fbase%2Ffilterinterface.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=3150eea970581500e108f4e7365b79d5d81250d0;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/filterinterface.h b/src/base/filterinterface.h deleted file mode 100644 index 3150eea..0000000 --- a/src/base/filterinterface.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef __FILTERINTERFACE_H__ -#define __FILTERINTERFACE_H__ - -#include -#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 importFormats; - QList importFormats; - - //! Vector of file extensions this filter can export. -// Q3ValueList exportFormats; - QList exportFormats; -}; - -#endif