diff include/cache.h @ 11:9b0840b0be7e

cache done.
author pyon@macmini
date Sun, 23 Oct 2011 07:43:34 +0900
parents 1fda3a06c39b
children 6ed3b64ed39a
line wrap: on
line diff
--- a/include/cache.h	Fri Oct 21 07:58:23 2011 +0900
+++ b/include/cache.h	Sun Oct 23 07:43:34 2011 +0900
@@ -1,5 +1,5 @@
 // Filename   : cache.h
-// Last Change: 21-Oct-2011.
+// Last Change: 22-Oct-2011.
 //
 #ifndef __cache__
 #define __cache__
@@ -9,30 +9,14 @@
 public:
     wxString filename;  // key
     wxString fullpathname; 
-    wxString z, l;
+    wxString modtime;
+    float    z;
+    long     l;
+    bool     marksheet;
     wxBitmap thumbnail;
-    bool     marksheet;
+    bool     exists;
 };
 
-WX_DECLARE_HASH_MAP( wxString, CacheItem*, wxStringHash, wxStringEqual, CacheHash );
-
-class Cache
-{
-public:
-    wxString  key;
-    CacheHash ch;
-    wxString  m_dir;
-
-    bool IsCached( wxString file );
-    void UpdateCache();
-};
-
-bool Cache::IsCached( wxString file )
-{
-    Cache* i = new Cache;
-    return false;
-}
-
 
 #endif // __cache__