#ifndef DICCSVWRITER_H #define DICCSVWRITER_H #include #include #include "../export-import/CsvData.h" class Dictionary; class DicRecord; class DicCsvWriter { public: DicCsvWriter( const Dictionary* aDict ); // For writing from a dictionary DicCsvWriter( const QList aEntries ); // For writing from list of entries QString toCsvString( const CsvExportData& aExportData ); // Both for writing from a dictionary and list of entries private: QString dicEntryToString( const DicRecord* aEntry ) const; private: const Dictionary* m_dict; QList m_entries; // Used both for dictionary and entries QStringList m_selectedFieldNames; CsvExportData m_params; QRegExp m_fieldSepRegExp; }; #endif // DICCSVWRITER_H