summaryrefslogtreecommitdiffstats
path: root/noatun/library/noatuntags/tags.h
blob: ec98aef2168b81a2459534b3743b7c68fda782a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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