summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-08 19:28:53 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-08 19:28:53 +0100
commited9f2ce38e11c907c8b801736bebc6923e9dbb2b (patch)
treecb23cbf41eb8e060c58935e873dce427ff2c6e35 /common/resourceaccess.cpp
parent65be895825a61ae463d09604634b064570febdc2 (diff)
downloadsink-ed9f2ce38e11c907c8b801736bebc6923e9dbb2b.tar.gz
sink-ed9f2ce38e11c907c8b801736bebc6923e9dbb2b.zip
Emit a notification for revision changes.
The notification should replace the revision update command completely.
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r--common/resourceaccess.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp
index dd862c8..daa2e82 100644
--- a/common/resourceaccess.cpp
+++ b/common/resourceaccess.cpp
@@ -528,6 +528,9 @@ bool ResourceAccess::processMessageBuffer()
528 case Commands::RevisionUpdateCommand: { 528 case Commands::RevisionUpdateCommand: {
529 auto buffer = Commands::GetRevisionUpdate(d->partialMessageBuffer.constData() + headerSize); 529 auto buffer = Commands::GetRevisionUpdate(d->partialMessageBuffer.constData() + headerSize);
530 Log() << QString("Revision updated to: %1").arg(buffer->revision()); 530 Log() << QString("Revision updated to: %1").arg(buffer->revision());
531 Notification n;
532 n.type = Sink::Commands::NotificationType::NotificationType_RevisionUpdate;
533 emit notification(n);
531 emit revisionChanged(buffer->revision()); 534 emit revisionChanged(buffer->revision());
532 535
533 break; 536 break;
@@ -572,6 +575,7 @@ bool ResourceAccess::processMessageBuffer()
572 case Sink::Commands::NotificationType::NotificationType_Status: 575 case Sink::Commands::NotificationType::NotificationType_Status:
573 case Sink::Commands::NotificationType::NotificationType_Warning: 576 case Sink::Commands::NotificationType::NotificationType_Warning:
574 case Sink::Commands::NotificationType::NotificationType_Progress: 577 case Sink::Commands::NotificationType::NotificationType_Progress:
578 case Sink::Commands::NotificationType::NotificationType_RevisionUpdate:
575 default: 579 default:
576 Warning() << "Received unknown notification: " << buffer->type(); 580 Warning() << "Received unknown notification: " << buffer->type();
577 break; 581 break;