10
|
1 // Filename : cache.h
|
|
2 // Last Change: 21-Oct-2011.
|
|
3 //
|
|
4 #ifndef __cache__
|
|
5 #define __cache__
|
|
6
|
|
7 class CacheItem
|
|
8 {
|
|
9 public:
|
|
10 wxString filename; // key
|
|
11 wxString fullpathname;
|
|
12 wxString z, l;
|
|
13 wxBitmap thumbnail;
|
|
14 bool marksheet;
|
|
15 };
|
|
16
|
|
17 WX_DECLARE_HASH_MAP( wxString, CacheItem*, wxStringHash, wxStringEqual, CacheHash );
|
|
18
|
|
19 class Cache
|
|
20 {
|
|
21 public:
|
|
22 wxString key;
|
|
23 CacheHash ch;
|
|
24 wxString m_dir;
|
|
25
|
|
26 bool IsCached( wxString file );
|
|
27 void UpdateCache();
|
|
28 };
|
|
29
|
|
30 bool Cache::IsCached( wxString file )
|
|
31 {
|
|
32 Cache* i = new Cache;
|
|
33 return false;
|
|
34 }
|
|
35
|
|
36
|
|
37 #endif // __cache__
|
|
38
|