#ifndef IIMPORTER_H #define IIMPORTER_H #include #include #include class IImporter { public: explicit IImporter(const QMetaObject *metaObject) { m_metaObject = metaObject; } virtual void setImportFile(const QString &fileName) = 0; virtual int recordCount() = 0; virtual QSharedPointer nextRecord() = 0; virtual bool isError() = 0; protected: const QMetaObject *m_metaObject; }; #endif // IIMPORTER_H