while searching for songs in media library, consider year of the album

This commit is contained in:
Andrzej Rybczak
2009-02-24 15:56:16 +01:00
parent d27a0510e4
commit 89b53ddfdb
7 changed files with 52 additions and 33 deletions

View File

@@ -33,11 +33,24 @@ class CaseInsensitiveSorting
{
public:
bool operator()(std::string, std::string);
bool operator()(const string_pair &, const string_pair &);
bool operator()(MPD::Song *, MPD::Song *);
bool operator()(const MPD::Item &, const MPD::Item &);
template <class A, class B> bool operator()(const std::pair<A, B> &a, const std::pair<A, B> &b)
{
std::string aa = a.first;
std::string bb = b.first;
ToLower(aa);
ToLower(bb);
return aa < bb;
}
};
template <class A, class B> std::string StringPairToString(const std::pair<A, B> &pair, void *)
{
return pair.first;
}
void UpdateSongList(Menu<MPD::Song> *);
bool Keypressed(int, const int *);