summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-10-06 22:56:37 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-10-06 22:56:37 +0000
commit9c2d9e6fe34a677c965eb9bbfd407b0b964ad763 (patch)
treed75b5ec63e91d1a82495c5d1da315e1ca79f88bd
parentc1a0336566620898ae53dd588137575383d0d3f4 (diff)
downloadvdr-plugin-muggle-9c2d9e6fe34a677c965eb9bbfd407b0b964ad763.tar.gz
vdr-plugin-muggle-9c2d9e6fe34a677c965eb9bbfd407b0b964ad763.tar.bz2
Delete generated image files
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@854 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--mg_image_provider.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mg_image_provider.h b/mg_image_provider.h
index 9f9fcc0..2c81ef7 100644
--- a/mg_image_provider.h
+++ b/mg_image_provider.h
@@ -10,6 +10,10 @@ class mgItemGd;
#include <string>
#include <vector>
+#include <id3v2frame.h>
+#include <tbytevector.h>
+#include <id3v2tag.h>
+
class mgImageProvider : public cThread
{
public:
@@ -46,6 +50,9 @@ class mgImageProvider : public cThread
*/
void fillImageList( std::string dir );
+ void writeImage( TagLib::ByteVector &image, int num, std::string &image_cache );
+ std::string treatFrameList( TagLib::ID3v2::FrameList &l, std::string &image_cache );
+
/*! \brief save images from APIC tag and save to file. returns directory where images were saved or empty string if no images were found in the APIC tag
*/
std::string extractImagesFromTag( std::string filename );
@@ -70,6 +77,8 @@ class mgImageProvider : public cThread
std::vector<std::string> m_converted_images;
std::string m_source_dir;
+
+ bool m_delete_imgs_from_tag;
};
#endif