7 #define FILEIO FileIO::instance()
10 class FilterInterface;
13 * API Class for importing files.
15 * @author James Hammons
16 * @author Andrew Mustun
24 static FileIO * instance();
25 void registerFilter(FilterInterface * f);
26 QList<FilterInterface *> getFilterList();
27 FilterInterface * getImportFilter(RS2::FormatType t);
28 FilterInterface * getExportFilter(RS2::FormatType t);
29 bool fileImport(Drawing & graphic, const QString & file,
30 RS2::FormatType type = RS2::FormatUnknown);
31 bool fileExport(Drawing & graphic, const QString & file,
32 RS2::FormatType type = RS2::FormatUnknown);
33 RS2::FormatType detectFormat(const QString & file);
36 static FileIO * uniqueInstance;
37 QList<FilterInterface *> filterList;
40 #endif // __FILEIO_H__