X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Ffileio.h;fp=src%2Fbase%2Ffileio.h;h=d3b90ed5700b26287edf98105f383f3ccc19549d;hb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;hp=a564f782d9fa3b7e4854c1dbc46d056bab39fb5d;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/fileio.h b/src/base/fileio.h index a564f78..d3b90ed 100644 --- a/src/base/fileio.h +++ b/src/base/fileio.h @@ -2,12 +2,12 @@ #define __FILEIO_H__ #include -#include "rs.h" +#include "enums.h" -#define RS_FILEIO RS_FileIO::instance() +#define FILEIO FileIO::instance() class Drawing; -class RS_FilterInterface; +class FilterInterface; /** * API Class for importing files. @@ -15,17 +15,17 @@ class RS_FilterInterface; * @author James Hammons * @author Andrew Mustun */ -class RS_FileIO +class FileIO { protected: - RS_FileIO(); + FileIO(); public: - static RS_FileIO * instance(); - void registerFilter(RS_FilterInterface * f); - QList getFilterList(); - RS_FilterInterface * getImportFilter(RS2::FormatType t); - RS_FilterInterface * getExportFilter(RS2::FormatType t); + static FileIO * instance(); + void registerFilter(FilterInterface * f); + QList getFilterList(); + FilterInterface * getImportFilter(RS2::FormatType t); + FilterInterface * getExportFilter(RS2::FormatType t); bool fileImport(Drawing & graphic, const QString & file, RS2::FormatType type = RS2::FormatUnknown); bool fileExport(Drawing & graphic, const QString & file, @@ -33,8 +33,8 @@ class RS_FileIO RS2::FormatType detectFormat(const QString & file); protected: - static RS_FileIO * uniqueInstance; - QList filterList; + static FileIO * uniqueInstance; + QList filterList; }; #endif // __FILEIO_H__