12 #ifndef CXFILEMANAGERSERVICE_H
13 #define CXFILEMANAGERSERVICE_H
16 #include "cxResourceExport.h"
17 #include "boost/shared_ptr.hpp"
20 #define FileManagerService_iid "cx::FileManagerService"
34 virtual bool isNull() = 0;
39 virtual bool canLoad(
const QString& type,
const QString& filename) = 0;
40 virtual QString canLoadDataType()
const = 0;
41 virtual std::vector<DataPtr> read(
const QString &filename) = 0;
44 virtual DataPtr load(
const QString& uid,
const QString& filename) = 0;
45 virtual bool readInto(
DataPtr data, QString path) = 0;
49 virtual void save(
DataPtr data,
const QString& filename) = 0;
57 virtual QString findDataTypeFromFile(QString filename) = 0;
58 virtual std::vector<FileReaderWriterServicePtr> getExportersForDataType(QString dataType) = 0;
59 virtual std::vector<FileReaderWriterServicePtr> getImportersForDataType(QString dataType) = 0;
61 virtual QString getFileReaderName(
const QString &filename) = 0;
67 #endif // CXFILEMANAGERSERVICE_H