diff options
Diffstat (limited to 'src/subtitle_image.h')
| -rw-r--r-- | src/subtitle_image.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/subtitle_image.h b/src/subtitle_image.h index 062df56b..3c4b3fe8 100644 --- a/src/subtitle_image.h +++ b/src/subtitle_image.h @@ -82,17 +82,26 @@ public: return _png_image; } - void set_png_image (Data d) { - _png_image = d; + void set_png_image (Data png) { + _png_image = png; } + void read_png_file (boost::filesystem::path file); + void write_png_file (boost::filesystem::path file) const; + std::string id () const { return _id; } + /** @return the most recent disk file used to read or write this asset, if there is one */ + boost::optional<boost::filesystem::path> file () const { + return _file; + } + private: Data _png_image; std::string _id; + mutable boost::optional<boost::filesystem::path> _file; }; bool operator== (SubtitleImage const & a, SubtitleImage const & b); |
