Files

24 lines
522 B
C++
Raw Permalink Normal View History

2017-04-21 23:35:57 +02:00
#ifndef IIMPORTER_H
#define IIMPORTER_H
#include <QMetaObject>
#include <QObject>
#include <QSharedPointer>
2017-04-25 21:36:23 +02:00
#include "core_global.h"
2017-04-21 23:35:57 +02:00
2017-04-25 21:36:23 +02:00
class CORESHARED_EXPORT IImporter
2017-04-21 23:35:57 +02:00
{
public:
explicit IImporter(const QMetaObject *metaObject) { m_metaObject = metaObject; }
virtual void setImportFile(const QString &fileName) = 0;
virtual int recordCount() = 0;
virtual QSharedPointer<QObject> nextRecord() = 0;
virtual bool isError() = 0;
protected:
const QMetaObject *m_metaObject;
};
#endif // IIMPORTER_H