diff options
author | Treeki <treeki@gmail.com> | 2010-10-07 15:56:13 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-07 15:56:13 +0200 |
commit | 5f6dad55d75cbe146ff7fefc899a02ccd39078ba (patch) | |
tree | 0822df14cc6d2c0329810c9ae7b4a4a638fe82b1 /lyt/packagebase.h | |
download | LayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.tar.gz LayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.zip |
initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time
Diffstat (limited to 'lyt/packagebase.h')
-rw-r--r-- | lyt/packagebase.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lyt/packagebase.h b/lyt/packagebase.h new file mode 100644 index 0000000..7f04cea --- /dev/null +++ b/lyt/packagebase.h @@ -0,0 +1,31 @@ +#ifndef LYTPACKAGEBASE_H +#define LYTPACKAGEBASE_H + +#include <QStringList> +#include <QByteArray> + + +class LYTPackageBase { +public: + LYTPackageBase(); + + virtual QStringList listAnims() = 0; + virtual QStringList listLayouts() = 0; + virtual QStringList listTextures() = 0; + virtual QStringList listFonts() = 0; + + virtual QByteArray getAnim(QString name) = 0; + virtual QByteArray getLayout(QString name) = 0; + virtual QByteArray getTexture(QString name) = 0; + virtual QByteArray getFont(QString name) = 0; + + virtual bool writeAnim(QString name, QByteArray data) = 0; + virtual bool writeLayout(QString name, QByteArray data) = 0; + virtual bool writeTexture(QString name, QByteArray data) = 0; + virtual bool writeFont(QString name, QByteArray data) = 0; + + virtual bool savePackage() = 0; + virtual QString description() = 0; +}; + +#endif // LYTPACKAGEBASE_H |