Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp @ 4571:9224e107d613 db-changes
simplifying IDatabaseListener::SignalChange() as IDatabaseListener::SignalResourceDeleted()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 16:49:34 +0100 |
parents | 648defffc8cc |
children | bec74e29f86b |
comparison
equal
deleted
inserted
replaced
4570:648defffc8cc | 4571:9224e107d613 |
---|---|
906 { | 906 { |
907 case _OrthancPluginDatabaseAnswerType_DeletedAttachment: | 907 case _OrthancPluginDatabaseAnswerType_DeletedAttachment: |
908 { | 908 { |
909 const OrthancPluginAttachment& attachment = | 909 const OrthancPluginAttachment& attachment = |
910 *reinterpret_cast<const OrthancPluginAttachment*>(answer.valueGeneric); | 910 *reinterpret_cast<const OrthancPluginAttachment*>(answer.valueGeneric); |
911 listener.SignalFileDeleted(Convert(attachment)); | 911 listener.SignalAttachmentDeleted(Convert(attachment)); |
912 break; | 912 break; |
913 } | 913 } |
914 | 914 |
915 case _OrthancPluginDatabaseAnswerType_RemainingAncestor: | 915 case _OrthancPluginDatabaseAnswerType_RemainingAncestor: |
916 { | 916 { |
920 } | 920 } |
921 | 921 |
922 case _OrthancPluginDatabaseAnswerType_DeletedResource: | 922 case _OrthancPluginDatabaseAnswerType_DeletedResource: |
923 { | 923 { |
924 ResourceType type = Plugins::Convert(static_cast<OrthancPluginResourceType>(answer.valueInt32)); | 924 ResourceType type = Plugins::Convert(static_cast<OrthancPluginResourceType>(answer.valueInt32)); |
925 ServerIndexChange change(ChangeType_Deleted, type, answer.valueString); | 925 listener.SignalResourceDeleted(type, answer.valueString); |
926 listener.SignalChange(change); | |
927 break; | 926 break; |
928 } | 927 } |
929 | 928 |
930 default: | 929 default: |
931 throw OrthancException(ErrorCode_DatabasePlugin); | 930 throw OrthancException(ErrorCode_DatabasePlugin); |