From 25b251f847f713d6024b39c597b8138b10f67da4 Mon Sep 17 00:00:00 2001 From: Don Roberts Date: Mon, 23 Sep 2024 14:46:00 -0500 Subject: [PATCH] Refactoring GtJob progress notifications --- .../GtNotificationJob.class.st | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/GToolkit-Notifications/GtNotificationJob.class.st b/src/GToolkit-Notifications/GtNotificationJob.class.st index 835d60e..31aa599 100644 --- a/src/GToolkit-Notifications/GtNotificationJob.class.st +++ b/src/GToolkit-Notifications/GtNotificationJob.class.st @@ -3,7 +3,8 @@ Class { #superclass : #GtNotificationEvent, #instVars : [ 'job', - 'state' + 'state', + 'summaryClass' ], #category : #'GToolkit-Notifications-Job' } @@ -83,6 +84,16 @@ GtNotificationJob >> subscribeToJob [ to: self. ] +{ #category : #accessing } +GtNotificationJob >> summaryClass [ + ^ summaryClass +] + +{ #category : #accessing } +GtNotificationJob >> summaryClass: anObject [ + summaryClass := anObject +] + { #category : #'private - subscriptions' } GtNotificationJob >> unsubscribeFromJob [ self job announcer unsubscribe: self.