You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
479 B
C++

#ifndef IIMPORTER_H
#define IIMPORTER_H
#include <QMetaObject>
#include <QObject>
#include <QSharedPointer>
class IImporter
{
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