summaryrefslogtreecommitdiff
path: root/lyt/directorypackage.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2010-10-14 20:17:20 +0200
committerTreeki <treeki@gmail.com>2010-10-14 20:17:20 +0200
commitebcc95da4c26369511caa90d89c5ed06e1e4853a (patch)
tree6ed445f0204a6e6615088d135c4b29c4309077a4 /lyt/directorypackage.h
parentfdf8cfec2b795393d7ee901abaf747575067068b (diff)
downloadLayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.tar.gz
LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.zip
brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs)
Diffstat (limited to '')
-rw-r--r--lyt/directorypackage.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lyt/directorypackage.h b/lyt/directorypackage.h
index 80d12f9..df8a50e 100644
--- a/lyt/directorypackage.h
+++ b/lyt/directorypackage.h
@@ -24,15 +24,15 @@ class LYTDirectoryPackage : public LYTPackageBase {
public:
LYTDirectoryPackage(QString path);
- QStringList listAnims();
- QStringList listLayouts();
- QStringList listTextures();
- QStringList listFonts();
+ QStringList listAnims() const;
+ QStringList listLayouts() const;
+ QStringList listTextures() const;
+ QStringList listFonts() const;
- QByteArray getAnim(QString name);
- QByteArray getLayout(QString name);
- QByteArray getTexture(QString name);
- QByteArray getFont(QString name);
+ QByteArray getAnim(QString name) const;
+ QByteArray getLayout(QString name) const;
+ QByteArray getTexture(QString name) const;
+ QByteArray getFont(QString name) const;
bool writeAnim(QString name, QByteArray data);
bool writeLayout(QString name, QByteArray data);
@@ -40,12 +40,12 @@ public:
bool writeFont(QString name, QByteArray data);
bool savePackage();
- QString description();
- QString path();
+ QString description() const;
+ QString path() const;
protected:
- QStringList listSubDirIfExists(QString dirName);
- QByteArray getFileFromSubDirIfExists(QString dirName, QString fileName);
+ QStringList listSubDirIfExists(QString dirName) const;
+ QByteArray getFileFromSubDirIfExists(QString dirName, QString fileName) const;
bool writeFileToSubDir(QString dirName, QString fileName, QByteArray data);