summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/files/fileStream.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/project2/files/fileStream.cpp b/project2/files/fileStream.cpp
index df39406..707b37e 100644
--- a/project2/files/fileStream.cpp
+++ b/project2/files/fileStream.cpp
@@ -12,6 +12,7 @@ class FileStream : public Stream {
public:
FileStream(ScriptNodePtr p) :
Stream(p),
+ contentType(p, "contenttype", "application/octet-stream"),
path(p, "path")
{
}
@@ -37,6 +38,12 @@ class FileStream : public Stream {
}
}
+ virtual Glib::ustring getContentType(ExecContext * ec) const override
+ {
+ return contentType(ec);
+ }
+
+ const Variable contentType;
const Variable path;
};
DECLARE_LOADER("filestream", FileStream);