2002-08-21 02:13:08 +00:00
|
|
|
#ifndef SONG_CACHE_INDEX_H
|
|
|
|
|
#define SONG_CACHE_INDEX_H
|
|
|
|
|
|
|
|
|
|
#include "IniFile.h"
|
|
|
|
|
|
|
|
|
|
class SongCacheIndex {
|
|
|
|
|
IniFile CacheIndex;
|
2003-09-16 05:16:57 +00:00
|
|
|
static CString MangleName( const CString &Name );
|
|
|
|
|
|
2002-08-21 02:13:08 +00:00
|
|
|
public:
|
|
|
|
|
SongCacheIndex();
|
|
|
|
|
~SongCacheIndex();
|
|
|
|
|
|
|
|
|
|
void ReadCacheIndex();
|
2003-05-22 19:36:54 +00:00
|
|
|
void AddCacheIndex( const CString &path, unsigned hash );
|
|
|
|
|
unsigned GetCacheHash( const CString &path ) const;
|
2002-08-21 02:13:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern SongCacheIndex *SONGINDEX; // global and accessable from anywhere in our program
|
|
|
|
|
|
|
|
|
|
#endif
|