Playlist.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef PLAYLIST_H
- #define PLAYLIST_H
- #include <windows.h>
- typedef struct playlist_item_s {
- char *filename;
- } playlist_item_t;
- typedef struct playlist_node_s {
- struct playlist_node_s *next;
- playlist_item_t item;
- } playlist_node_t;
- class Playlist {
- private:
- DWORD itemCount;
- DWORD current;
- playlist_node_t *playlist;
- public:
- Playlist();
- ~Playlist();
- void Reset();
- void AddItem(char *filename);
- void RemoveItemAt(DWORD i);
-
- void NextItem();
- void PreviousItem();
- DWORD GetItemCount();
- playlist_item_t *GetItemAt(DWORD i);
- DWORD GetCurrentPosition();
- playlist_item_t *GetCurrentItem();
- void SetCurrentPosition(DWORD pos);
- };
- #endif