diff OrthancServer/ServerIndex.h @ 201:bee20e978835

refactoring of delete
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Nov 2012 17:36:19 +0100
parents 9c58b2b03cf0
children 1650557bd81a
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h	Tue Nov 27 16:49:22 2012 +0100
+++ b/OrthancServer/ServerIndex.h	Tue Nov 27 17:36:19 2012 +0100
@@ -47,6 +47,7 @@
   namespace Internals
   {
     class SignalDeletedLevelFunction;
+    class ServerIndexListenerTodo;
   }
 
 
@@ -56,7 +57,7 @@
     SQLite::Connection db_;
     boost::mutex mutex_;
 
-    std::auto_ptr<IServerIndexListener> listener2_;
+    std::auto_ptr<Internals::ServerIndexListenerTodo> listener2_;
     std::auto_ptr<DatabaseWrapper> db2_;
 
     // DO NOT delete the following one, SQLite::Connection will do it automatically
@@ -114,7 +115,8 @@
     SeriesStatus GetSeriesStatus(int id);
 
   public:
-    ServerIndex(const std::string& storagePath);
+    ServerIndex(FileStorage& fileStorage,
+                const std::string& dbPath);
 
     StoreStatus Store(const DicomMap& dicomSummary,
                       const std::string& fileUuid,