5 #include "rs_filterinterface.h"
7 #define RS_FILEIO RS_FileIO::instance()
12 * API Class for importing files.
14 * @author Andrew Mustun
22 static RS_FileIO * instance();
23 void registerFilter(RS_FilterInterface * f);
24 // Q3PtrList<RS_FilterInterface> getFilterList();
25 QList<RS_FilterInterface *> getFilterList();
26 RS_FilterInterface * getImportFilter(RS2::FormatType t);
27 RS_FilterInterface * getExportFilter(RS2::FormatType t);
29 bool fileImport(Drawing & graphic, const QString & file,
30 RS2::FormatType type = RS2::FormatUnknown);
32 bool fileExport(Drawing & graphic, const QString & file,
33 RS2::FormatType type = RS2::FormatUnknown);
35 RS2::FormatType detectFormat(const QString & file);
38 static RS_FileIO * uniqueInstance;
39 // Q3PtrList<RS_FilterInterface> filterList;
40 QList<RS_FilterInterface *> filterList;