12 #ifndef CXFILEMANAGERSERVICEPROXY_H
13 #define CXFILEMANAGERSERVICEPROXY_H
15 #include "cxResourceExport.h"
31 virtual bool isNull();
33 bool canLoad(
const QString &type,
const QString &filename);
34 DataPtr load(
const QString &uid,
const QString &filename);
35 QString canLoadDataType()
const;
36 std::vector<DataPtr> read(
const QString &filename);
38 bool readInto(
DataPtr data, QString path);
39 QString findDataTypeFromFile(QString filename);
43 void save(
DataPtr data,
const QString &filename);
47 std::vector<FileReaderWriterServicePtr> getExportersForDataType(QString dataType);
48 std::vector<FileReaderWriterServicePtr> getImportersForDataType(QString dataType);
49 QString getFileReaderName(
const QString &filename);
52 void initServiceListener();
56 boost::shared_ptr<ServiceTrackerListener<FileManagerService> > mServiceListener;
58 ctkPluginContext *mPluginContext;
64 #endif // CXFILEMANAGERSERVICEPROXY_H