aboutsummaryrefslogtreecommitdiffstats
path: root/lib/siscomponentrecord.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/siscomponentrecord.h')
-rw-r--r--lib/siscomponentrecord.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/siscomponentrecord.h b/lib/siscomponentrecord.h
new file mode 100644
index 0000000..995750d
--- /dev/null
+++ b/lib/siscomponentrecord.h
@@ -0,0 +1,38 @@
+#ifndef _SISCOMPONENTRECORD_H
+#define _SISCOMPONENTRECORD_H
+
+#include "sistypes.h"
+
+class SISFile;
+
+/**
+ * The name of the component in this SIS file.
+ * A single instance holds the names for all languages.
+ */
+class SISComponentNameRecord
+{
+public:
+
+ virtual ~SISComponentNameRecord();
+
+ /**
+ * Populate the fields.
+ */
+ void fillFrom(uchar* buf, int base, SISFile* sisFile);
+
+ uchar* getName(int no);
+
+private:
+
+ uint32* m_nameLengths;
+ uint32* m_namePtrs;
+
+ /**
+ * The extracted names.
+ */
+ uchar** m_names;
+
+};
+
+#endif
+