OSDN Git Service

Rename "Git clone" to "Git clone..." (corrected).
[tortoisegit/TortoiseGitJp.git] / src / TGitCache / GitStatusCache.h
index a8eeece..0e31e6f 100644 (file)
  * Provides access to a global object of itself which handles all\r
  * the requests for status.\r
  */\r
-class CSVNStatusCache\r
+class CGitStatusCache\r
 {\r
 private:\r
-       CSVNStatusCache(void);\r
-       ~CSVNStatusCache(void);\r
+       CGitStatusCache(void);\r
+       ~CGitStatusCache(void);\r
 \r
 public:\r
-       static CSVNStatusCache& Instance();\r
+       static CGitStatusCache& Instance();\r
        static void Create();\r
        static void Destroy();\r
        static bool SaveCache();\r
@@ -53,30 +53,30 @@ public:
        void Refresh();\r
 \r
        /// Get the status for a single path (main entry point, called from named-pipe code\r
-       CStatusCacheEntry GetStatusForPath(const CTSVNPath& path, DWORD flags,  bool bFetch = true);\r
+       CStatusCacheEntry GetStatusForPath(const CTGitPath& path, DWORD flags,  bool bFetch = true);\r
 \r
        /// Find a directory in the cache (a new entry will be created if there isn't an existing entry)\r
-       CCachedDirectory * GetDirectoryCacheEntry(const CTSVNPath& path);\r
-       CCachedDirectory * GetDirectoryCacheEntryNoCreate(const CTSVNPath& path);\r
+       CCachedDirectory * GetDirectoryCacheEntry(const CTGitPath& path);\r
+       CCachedDirectory * GetDirectoryCacheEntryNoCreate(const CTGitPath& path);\r
 \r
        /// Add a folder to the background crawler's work list\r
-       void AddFolderForCrawling(const CTSVNPath& path);\r
+       void AddFolderForCrawling(const CTGitPath& path);\r
 \r
        /// Removes the cache for a specific path, e.g. if a folder got deleted/renamed\r
-       void RemoveCacheForPath(const CTSVNPath& path);\r
+       void RemoveCacheForPath(const CTGitPath& path);\r
 \r
        /// Removes all items from the cache\r
        void ClearCache();\r
        \r
        /// Call this method before getting the status for a shell request\r
-       void StartRequest(const CTSVNPath& path);\r
+       void StartRequest(const CTGitPath& path);\r
        /// Call this method after the data for the shell request has been gathered\r
-       void EndRequest(const CTSVNPath& path);\r
+       void EndRequest(const CTGitPath& path);\r
        \r
        /// Notifies the shell about file/folder status changes.\r
        /// A notification is only sent for paths which aren't currently\r
        /// in the list of handled shell requests to avoid deadlocks.\r
-       void UpdateShell(const CTSVNPath& path);\r
+       void UpdateShell(const CTGitPath& path);\r
 \r
        size_t GetCacheSize() {return m_directoryCache.size();}\r
        int GetNumberOfWatchedPaths() {return watcher.GetNumberOfWatchedPaths();}\r
@@ -85,7 +85,7 @@ public:
        void Stop();\r
 \r
        void CloseWatcherHandles(HDEVNOTIFY hdev);\r
-       void CSVNStatusCache::CloseWatcherHandles(const CTSVNPath& path);\r
+       void CGitStatusCache::CloseWatcherHandles(const CTGitPath& path);\r
 \r
        bool WaitToRead(DWORD waitTime = INFINITE) {return m_rwSection.WaitToRead(waitTime);}\r
        bool WaitToWrite(DWORD waitTime = INFINITE) {return m_rwSection.WaitToWrite(waitTime);}\r
@@ -98,11 +98,11 @@ public:
        void AssertLock() {;}\r
        void AssertWriting() {;}\r
 #endif\r
-       bool IsPathAllowed(const CTSVNPath& path) {return !!m_shellCache.IsPathAllowed(path.GetWinPath());}\r
+       bool IsPathAllowed(const CTGitPath& path) {return !!m_shellCache.IsPathAllowed(path.GetWinPath());}\r
        bool IsUnversionedAsModified() {return !!m_shellCache.IsUnversionedAsModified();}\r
-       bool IsPathGood(const CTSVNPath& path);\r
-       bool IsPathWatched(const CTSVNPath& path) {return watcher.IsPathWatched(path);}\r
-       bool AddPathToWatch(const CTSVNPath& path) {return watcher.AddPath(path);}\r
+       bool IsPathGood(const CTGitPath& path);\r
+       bool IsPathWatched(const CTGitPath& path) {return watcher.IsPathWatched(path);}\r
+       bool AddPathToWatch(const CTGitPath& path) {return watcher.AddPath(path);}\r
 \r
        bool m_bClearMemory;\r
 private:\r
@@ -110,16 +110,16 @@ private:
        CRWSection m_rwSection;\r
        CAtlList<CString> m_askedList;\r
        CCachedDirectory::CachedDirMap m_directoryCache;\r
-       std::set<CTSVNPath> m_NoWatchPaths;\r
-       SVNHelper m_svnHelp;\r
+       std::set<CTGitPath> m_NoWatchPaths;\r
+//     SVNHelper m_svnHelp;\r
        ShellCache      m_shellCache;\r
 \r
-       static CSVNStatusCache* m_pInstance;\r
+       static CGitStatusCache* m_pInstance;\r
 \r
        CFolderCrawler m_folderCrawler;\r
        CShellUpdater m_shellUpdater;\r
 \r
-       CTSVNPath m_mostRecentPath;\r
+       CTGitPath m_mostRecentPath;\r
        CStatusCacheEntry m_mostRecentStatus;\r
        long m_mostRecentExpiresAt;\r
 \r