d->type = t;
}
+String AttachedPictureFrame::description() const
+{
+ return d->description;
+}
+
+void AttachedPictureFrame::setDescription(const String &desc)
+{
+ d->description = desc;
+}
+
ByteVector AttachedPictureFrame::picture() const
{
return d->data;
pos += 1;
int offset = data.find(textDelimiter(String::Latin1), pos);
+
if(offset < pos)
return;
+
d->mimeType = String(data.mid(pos, offset - pos), String::Latin1);
pos = offset + 1;
pos += 1;
offset = data.find(textDelimiter(d->textEncoding), pos);
+
if(offset < pos)
return;
+
d->description = String(data.mid(pos, offset - pos), d->textEncoding);
pos = offset + 1;
*/
void setType(Type t);
+ /*!
+ * Returns a text description of the image.
+ *
+ * \see setDescription()
+ * \see textEncoding()
+ * \see setTextEncoding()
+ */
+
+ String description() const;
+
+ /*!
+ * Sets a textual description of the image to \a desc.
+ *
+ * \see description()
+ * \see textEncoding()
+ * \see setTextEncoding()
+ */
+
+ void setDescription(const String &desc);
+
/*!
* Returns the image data as a ByteVector.
*