Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.h @ 5783:56352ae88120 find-refactoring
wip: new ReadOnly configuration
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 16 Sep 2024 18:31:37 +0200 |
parents | 093a8693ba16 |
children | b0d778f1e66d |
comparison
equal
deleted
inserted
replaced
5782:f1ccb67fce31 | 5783:56352ae88120 |
---|---|
275 // New in Orthanc 1.9.0 | 275 // New in Orthanc 1.9.0 |
276 DicomTransferSyntax preferredTransferSyntax_; | 276 DicomTransferSyntax preferredTransferSyntax_; |
277 boost::mutex dynamicOptionsMutex_; | 277 boost::mutex dynamicOptionsMutex_; |
278 bool isUnknownSopClassAccepted_; | 278 bool isUnknownSopClassAccepted_; |
279 std::set<DicomTransferSyntax> acceptedTransferSyntaxes_; | 279 std::set<DicomTransferSyntax> acceptedTransferSyntaxes_; |
280 bool readOnly_; | |
280 | 281 |
281 StoreResult StoreAfterTranscoding(std::string& resultPublicId, | 282 StoreResult StoreAfterTranscoding(std::string& resultPublicId, |
282 DicomInstanceToStore& dicom, | 283 DicomInstanceToStore& dicom, |
283 StoreInstanceMode mode, | 284 StoreInstanceMode mode, |
284 bool isReconstruct); | 285 bool isReconstruct); |
341 void SetCompressionEnabled(bool enabled); | 342 void SetCompressionEnabled(bool enabled); |
342 | 343 |
343 bool IsCompressionEnabled() const | 344 bool IsCompressionEnabled() const |
344 { | 345 { |
345 return compressionEnabled_; | 346 return compressionEnabled_; |
347 } | |
348 | |
349 void SetReadOnly(bool readOnly) | |
350 { | |
351 readOnly_ = true; | |
352 } | |
353 | |
354 bool IsReadOnly() const | |
355 { | |
356 return readOnly_; | |
357 } | |
358 | |
359 bool IsSaveJobs() const | |
360 { | |
361 return saveJobs_; | |
346 } | 362 } |
347 | 363 |
348 bool AddAttachment(int64_t& newRevision, | 364 bool AddAttachment(int64_t& newRevision, |
349 const std::string& resourceId, | 365 const std::string& resourceId, |
350 FileContentType attachmentType, | 366 FileContentType attachmentType, |