Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h Sat Sep 14 11:24:11 2024 +0200 +++ b/OrthancServer/Sources/ServerContext.h Mon Sep 16 18:31:37 2024 +0200 @@ -277,6 +277,7 @@ boost::mutex dynamicOptionsMutex_; bool isUnknownSopClassAccepted_; std::set<DicomTransferSyntax> acceptedTransferSyntaxes_; + bool readOnly_; StoreResult StoreAfterTranscoding(std::string& resultPublicId, DicomInstanceToStore& dicom, @@ -345,6 +346,21 @@ return compressionEnabled_; } + void SetReadOnly(bool readOnly) + { + readOnly_ = true; + } + + bool IsReadOnly() const + { + return readOnly_; + } + + bool IsSaveJobs() const + { + return saveJobs_; + } + bool AddAttachment(int64_t& newRevision, const std::string& resourceId, FileContentType attachmentType,