+ m_base64Data = base64;
+
+ /*
+ * We need to do the conversion to create the thumbnail
+ */
+ image::Image *image = imageFromBase64(base64);
+ Q_ASSERT(image);
+ QImage img = qimageFromRawImage(image);
+ m_thumb = thumbnail(img);
+ delete image;
+}
+
+QByteArray ApiSurface::base64Data() const
+{
+ return m_base64Data;
+}
+
+QImage ApiSurface::thumb() const
+{
+ return m_thumb;
+}
+
+int ApiSurface::depth() const
+{
+ return m_depth;
+}
+
+void ApiSurface::setDepth(int depth)
+{
+ m_depth = depth;
+}
+
+QString ApiSurface::formatName() const
+{
+ return m_formatName;
+}
+
+void ApiSurface::setFormatName(const QString &str)
+{
+ m_formatName = str;
+}
+
+
+ApiTexture::ApiTexture()
+ : ApiSurface()
+{
+}
+
+QString ApiTexture::label() const
+{
+ return m_label;
+}
+
+void ApiTexture::setLabel(const QString &str)
+{
+ m_label = str;
+}