comparison OrthancServer/ServerContext.cpp @ 1189:6b9b02a16e99 db-changes

NewChildInstance change type
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Sep 2014 17:02:28 +0200
parents 0561f2087cc9
children 1169528a9a5f
comparison
equal deleted inserted replaced
1187:49edef619f1f 1189:6b9b02a16e99
369 { 369 {
370 plugins_->SignalStoredInstance(dicom, resultPublicId); 370 plugins_->SignalStoredInstance(dicom, resultPublicId);
371 } 371 }
372 catch (OrthancException& e) 372 catch (OrthancException& e)
373 { 373 {
374 LOG(ERROR) << "Error in OnStoredInstance callback (Lua): " << e.What(); 374 LOG(ERROR) << "Error in OnStoredInstance callback (plugins): " << e.What();
375 } 375 }
376 } 376 }
377 } 377 }
378 378
379 return status; 379 return status;
518 const std::string& uuid, 518 const std::string& uuid,
519 ResourceType expectedType) 519 ResourceType expectedType)
520 { 520 {
521 return index_.DeleteResource(target, uuid, expectedType); 521 return index_.DeleteResource(target, uuid, expectedType);
522 } 522 }
523
524
525 void ServerContext::SignalChange(ChangeType changeType,
526 ResourceType resourceType,
527 const std::string& publicId)
528 {
529 if (plugins_ != NULL)
530 {
531 try
532 {
533 plugins_->SignalChange(changeType, resourceType, publicId);
534 }
535 catch (OrthancException& e)
536 {
537 LOG(ERROR) << "Error in OnChangeCallback (plugins): " << e.What();
538 }
539 }
540 }
541
523 } 542 }