summaryrefslogtreecommitdiff
path: root/lyt/packagebase.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lyt/packagebase.h31
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