mirror of
https://github.com/taglib/taglib.git
synced 2025-09-07 13:54:22 -04:00
Add a mechanism for extending the file type resolution in JuK using FileRefs.
This is generally much better thought out than the current method of creating FileRefs using the native mime system and also allows for extension to additional file formats. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@437382 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -120,6 +120,9 @@ namespace TagLib {
|
||||
*/
|
||||
List<T> &append(const List<T> &l);
|
||||
|
||||
List<T> &prepend(const T &item);
|
||||
List<T> &prepend(const List<T> &l);
|
||||
|
||||
/*!
|
||||
* Clears the list. If auto deletion is enabled and this list contains a
|
||||
* pointer type the members are also deleted.
|
||||
|
@ -164,6 +164,22 @@ List<T> &List<T>::append(const List<T> &l)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
List<T> &List<T>::prepend(const T &item)
|
||||
{
|
||||
detach();
|
||||
d->list.push_front(item);
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
List<T> &List<T>::prepend(const List<T> &l)
|
||||
{
|
||||
detach();
|
||||
d->list.insert(d->list.begin(), l.begin(), l.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void List<T>::clear()
|
||||
{
|
||||
|
Reference in New Issue
Block a user