src/ldproject.h

Thu, 19 Mar 2015 15:24:02 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Thu, 19 Mar 2015 15:24:02 +0200
branch
projects
changeset 938
cc8920320184
parent 937
d5a58674ccd1
permissions
-rw-r--r--

- 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();
};

mercurial