-
Notifications
You must be signed in to change notification settings - Fork 1
/
exttag.h
31 lines (27 loc) · 1.43 KB
/
exttag.h
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
#pragma once
#include <fileref.h>
#include <string>
#include <vector>
#include <windows.h> // for SYSTEMTIME.
// Indicates the users preference rating of an item on a scale of 0-99 (0 = unrated, 1-12 = One Star,
// 13-37 = Two Stars, 38-62 = Three Stars, 63-87 = Four Stars, 88-99 = Five Stars).
unsigned char rating(const TagLib::FileRef &fileref);
std::wstring albumArtist(const TagLib::FileRef &fileref);
typedef std::vector<std::wstring> wstrvec_t;
wstrvec_t keywords(const TagLib::FileRef &fileref);
// Fill at least the year, and, if possible, the month and day.
// Order by completeness (ie. yyyy-mm-dd is better than yyyy),
// then by order of apperance in the tag. Pick the first.
SYSTEMTIME releasedate(const TagLib::FileRef &fileref);
std::wstring composer(const TagLib::FileRef &fileref);
std::wstring conductor(const TagLib::FileRef &fileref);
std::wstring subtitle(const TagLib::FileRef &fileref);
std::wstring label(const TagLib::FileRef &fileref);
std::wstring producer(const TagLib::FileRef &fileref);
std::wstring mood(const TagLib::FileRef &fileref);
std::wstring copyright(const TagLib::FileRef &fileref);
// Part of set, based on the WMA documentation,
// http://msdn.microsoft.com/en-us/library/aa391979(VS.85).aspx
// is returned as a pair of values (integers?) seperated by a forward slash,
// representing the part number and total parts, ie. disc number and discs in set.
std::wstring partofset(const TagLib::FileRef &fileref);