Thu, 19 Mar 2015 15:24:02 +0200
- more work on project files
#pragma once #include "main.h" using LDProjectPtr = QSharedPointer<class LDProject>; class LDProject { public: LDProject (const LDProject&) = delete; ~LDProject(); void loadBinaryDocument (const QString& name, const QByteArray& data); bool save (const QString& filename); void operator= (const LDProject&) = delete; static LDProjectPtr LoadFromFile (const QString& filename); static LDProjectPtr NewProject(); private: void saveBinaryDocuments (struct archive* arc); QString m_filePath; QList<LDDocumentPtr> m_documents; QString m_lastErrorString; LDProject(); };