SongFilter: make SongFilter::Item class definition public
This commit is contained in:
parent
6859c22b69
commit
2d11c6ab29
@ -35,6 +35,7 @@ struct TagItem;
|
|||||||
struct Song;
|
struct Song;
|
||||||
|
|
||||||
class SongFilter {
|
class SongFilter {
|
||||||
|
public:
|
||||||
class Item {
|
class Item {
|
||||||
uint8_t tag;
|
uint8_t tag;
|
||||||
|
|
||||||
@ -55,6 +56,10 @@ class SongFilter {
|
|||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::string &GetValue() const {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
gcc_pure gcc_nonnull(2)
|
gcc_pure gcc_nonnull(2)
|
||||||
bool StringMatch(const char *s) const;
|
bool StringMatch(const char *s) const;
|
||||||
|
|
||||||
@ -68,6 +73,7 @@ class SongFilter {
|
|||||||
bool Match(const Song &song) const;
|
bool Match(const Song &song) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
std::list<Item> items;
|
std::list<Item> items;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -89,6 +95,10 @@ public:
|
|||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
bool Match(const Song &song) const;
|
bool Match(const Song &song) const;
|
||||||
|
|
||||||
|
const std::list<Item> &GetItems() const {
|
||||||
|
return items;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user