diff options
author | unK <electricityispower@gmail.com> | 2008-09-03 01:16:26 +0200 |
---|---|---|
committer | unK <electricityispower@gmail.com> | 2008-09-03 01:16:26 +0200 |
commit | 723de0687e9878ae12ede9c179b59fb1fe4f635c (patch) | |
tree | 1db1cb1fe8d118b6ed6e207e6e0aefcd31ed249d /src/helpers.h | |
parent | 451f2e112e946cb363d023302b2bd384b9374f68 (diff) |
class Menu is template now / bunch of code clean-ups.
Diffstat (limited to 'src/helpers.h')
-rw-r--r-- | src/helpers.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/helpers.h b/src/helpers.h index d8fc78e2..756c0728 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -30,8 +30,9 @@ extern ncmpcpp_config Config; -void UpdateItemList(const ItemList &, Menu *, int = 1); -void UpdateSongList(const SongList &, Menu *, int = 1); +void UpdateItemList(Menu<Item> *); +void UpdateSongList(Menu<Song> *); +void UpdateFoundList(const SongList &, Menu<string> *); void DeleteSong(int); void PlaylistDeleteSong(const string &, int); @@ -46,7 +47,8 @@ bool SortSongsByTrack(Song *, Song *); bool CaseInsensitiveComparison(string, string); void WindowTitle(const string &); string TotalPlaylistLength(); -string DisplaySong(const Song &, const string & = Config.song_list_format); +string DisplayItem(const Item &, void * = NULL); +string DisplaySong(const Song &, void * = &Config.song_list_format); void ShowMessage(const string &, int = Config.message_delay_time); bool SortDirectory(const Item &a, const Item &b); void GetDirectory(string); |