comparison Framework/Plugins/DatabaseBackendAdapterV3.cpp @ 366:cd9521e04249 attach-custom-data

DatabaseBackendAdapterV4: added support for customData + revision when not already done
author Alain Mazy <am@osimis.io>
date Thu, 15 Sep 2022 18:12:34 +0200
parents 7ec412af11cb
children
comparison
equal deleted inserted replaced
365:7671fa7f099e 366:cd9521e04249
582 int32_t contentType, 582 int32_t contentType,
583 uint64_t uncompressedSize, 583 uint64_t uncompressedSize,
584 const std::string& uncompressedHash, 584 const std::string& uncompressedHash,
585 int32_t compressionType, 585 int32_t compressionType,
586 uint64_t compressedSize, 586 uint64_t compressedSize,
587 const std::string& compressedHash) ORTHANC_OVERRIDE 587 const std::string& compressedHash,
588 const std::string& /*customData*/) ORTHANC_OVERRIDE
588 { 589 {
589 OrthancPluginDatabaseEvent event; 590 OrthancPluginDatabaseEvent event;
590 event.type = OrthancPluginDatabaseEventType_DeletedAttachment; 591 event.type = OrthancPluginDatabaseEventType_DeletedAttachment;
591 event.content.attachment.uuid = StoreString(uuid); 592 event.content.attachment.uuid = StoreString(uuid);
592 event.content.attachment.contentType = contentType; 593 event.content.attachment.contentType = contentType;
628 int32_t contentType, 629 int32_t contentType,
629 uint64_t uncompressedSize, 630 uint64_t uncompressedSize,
630 const std::string& uncompressedHash, 631 const std::string& uncompressedHash,
631 int32_t compressionType, 632 int32_t compressionType,
632 uint64_t compressedSize, 633 uint64_t compressedSize,
633 const std::string& compressedHash) ORTHANC_OVERRIDE 634 const std::string& compressedHash,
635 const std::string& /*customData*/) ORTHANC_OVERRIDE
634 { 636 {
635 SetupAnswerType(_OrthancPluginDatabaseAnswerType_Attachment); 637 SetupAnswerType(_OrthancPluginDatabaseAnswerType_Attachment);
636 638
637 OrthancPluginAttachment attachment; 639 OrthancPluginAttachment attachment;
638 attachment.uuid = StoreString(uuid); 640 attachment.uuid = StoreString(uuid);