comparison OrthancServer/ServerContext.cpp @ 1198:1169528a9a5f db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Oct 2014 13:52:01 +0200
parents 6b9b02a16e99
children f1c01451a8ee
comparison
equal deleted inserted replaced
1197:61b71ccac362 1198:1169528a9a5f
520 { 520 {
521 return index_.DeleteResource(target, uuid, expectedType); 521 return index_.DeleteResource(target, uuid, expectedType);
522 } 522 }
523 523
524 524
525 void ServerContext::SignalChange(ChangeType changeType, 525 void ServerContext::SignalChange(const ServerIndexChange& change)
526 ResourceType resourceType,
527 const std::string& publicId)
528 { 526 {
529 if (plugins_ != NULL) 527 if (plugins_ != NULL)
530 { 528 {
531 try 529 try
532 { 530 {
533 plugins_->SignalChange(changeType, resourceType, publicId); 531 plugins_->SignalChange(change);
534 } 532 }
535 catch (OrthancException& e) 533 catch (OrthancException& e)
536 { 534 {
537 LOG(ERROR) << "Error in OnChangeCallback (plugins): " << e.What(); 535 LOG(ERROR) << "Error in OnChangeCallback (plugins): " << e.What();
538 } 536 }
539 } 537 }
540 } 538 }
541
542 } 539 }