comparison OrthancServer/ServerIndex.h @ 1177:5b2d8c280ac2 db-changes

Plugins can monitor changes through callbacks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Sep 2014 17:37:44 +0200
parents 1ea4094d077c
children efece308018e
comparison
equal deleted inserted replaced
1176:f24e04838054 1177:5b2d8c280ac2
58 typedef std::list<FileInfo> Attachments; 58 typedef std::list<FileInfo> Attachments;
59 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap; 59 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap;
60 60
61 private: 61 private:
62 class Transaction; 62 class Transaction;
63 struct UnstableResourcePayload; 63 class UnstableResourcePayload;
64 64
65 bool done_; 65 bool done_;
66 boost::mutex mutex_; 66 boost::mutex mutex_;
67 boost::thread flushThread_; 67 boost::thread flushThread_;
68 boost::thread unstableResourcesMonitorThread_; 68 boost::thread unstableResourcesMonitorThread_;
90 const std::string& newPatientId); 90 const std::string& newPatientId);
91 91
92 void StandaloneRecycling(); 92 void StandaloneRecycling();
93 93
94 void MarkAsUnstable(int64_t id, 94 void MarkAsUnstable(int64_t id,
95 Orthanc::ResourceType type); 95 Orthanc::ResourceType type,
96 const std::string& publicId);
96 97
97 void GetStatisticsInternal(/* out */ uint64_t& compressedSize, 98 void GetStatisticsInternal(/* out */ uint64_t& compressedSize,
98 /* out */ uint64_t& uncompressedSize, 99 /* out */ uint64_t& uncompressedSize,
99 /* out */ unsigned int& countStudies, 100 /* out */ unsigned int& countStudies,
100 /* out */ unsigned int& countSeries, 101 /* out */ unsigned int& countSeries,