diff options
Diffstat (limited to 'noatun/library/noatuntags/tags.h')
-rw-r--r-- | noatun/library/noatuntags/tags.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noatun/library/noatuntags/tags.h b/noatun/library/noatuntags/tags.h new file mode 100644 index 00000000..ec98aef2 --- /dev/null +++ b/noatun/library/noatuntags/tags.h @@ -0,0 +1,35 @@ +#ifndef __NOATUN_TAGS___TACOS_ARE_YUMMY +#define __NOATUN_TAGS___TACOS_ARE_YUMMY + +#include <noatun/playlist.h> + +class TagsGetter; + +class Tags +{ + friend class TagsGetter; +public: + /** + * priority is how early this comes + * 0 means "normal" + * anything larger than zero means that this should come later, + * negative numbers mean it should come first + * + * I'm talking about the order which you're being processed + **/ + Tags(int priority=0); + virtual ~Tags(); + + /** + * this will be called occasionally + * with an item you should fill up + **/ + virtual bool update(PlaylistItem &item)=0; + +private: + static TagsGetter *getter; + int mPriority; +}; + +#endif + |