Playlist.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #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