@@ -66,6 +66,7 @@ QString ctkAbstractJob::jobUID() const
6666void ctkAbstractJob::setJobUID (const QString &jobUID)
6767{
6868 this ->JobUID = jobUID;
69+ emit this ->jobUIDChanged ();
6970}
7071
7172// ----------------------------------------------------------------------------
@@ -108,6 +109,7 @@ void ctkAbstractJob::setStatus(JobStatus status)
108109 {
109110 emit this ->finished ();
110111 }
112+ emit this ->statusChanged (status);
111113}
112114
113115// ----------------------------------------------------------------------------
@@ -120,6 +122,7 @@ bool ctkAbstractJob::isPersistent() const
120122void ctkAbstractJob::setIsPersistent (bool persistent)
121123{
122124 this ->Persistent = persistent;
125+ emit isPersistentChanged (persistent);
123126}
124127
125128// ----------------------------------------------------------------------------
@@ -132,6 +135,7 @@ int ctkAbstractJob::retryCounter() const
132135void ctkAbstractJob::setRetryCounter (int retryCounter)
133136{
134137 this ->RetryCounter = retryCounter;
138+ emit this ->retryCounterChanged (retryCounter);
135139}
136140
137141// ----------------------------------------------------------------------------
@@ -144,6 +148,7 @@ int ctkAbstractJob::maximumConcurrentJobsPerType() const
144148void ctkAbstractJob::setMaximumConcurrentJobsPerType (int maximumConcurrentJobsPerType)
145149{
146150 this ->MaximumConcurrentJobsPerType = maximumConcurrentJobsPerType;
151+ emit this ->maximumConcurrentJobsPerTypeChanged (maximumConcurrentJobsPerType);
147152}
148153
149154// ----------------------------------------------------------------------------
@@ -156,6 +161,7 @@ int ctkAbstractJob::maximumNumberOfRetry() const
156161void ctkAbstractJob::setMaximumNumberOfRetry (int maximumNumberOfRetry)
157162{
158163 this ->MaximumNumberOfRetry = maximumNumberOfRetry;
164+ emit this ->maximumNumberOfRetryChanged (maximumNumberOfRetry);
159165}
160166
161167// ----------------------------------------------------------------------------
@@ -168,6 +174,7 @@ int ctkAbstractJob::retryDelay() const
168174void ctkAbstractJob::setRetryDelay (int retryDelay)
169175{
170176 this ->RetryDelay = retryDelay;
177+ emit this ->retryDelayChanged (retryDelay);
171178}
172179
173180// ----------------------------------------------------------------------------
@@ -180,6 +187,7 @@ QThread::Priority ctkAbstractJob::priority() const
180187void ctkAbstractJob::setPriority (const QThread::Priority &priority)
181188{
182189 this ->Priority = priority;
190+ emit this ->priorityChanged (priority);
183191}
184192
185193// ----------------------------------------------------------------------------
@@ -210,6 +218,7 @@ QString ctkAbstractJob::runningThreadID() const
210218void ctkAbstractJob::setRunningThreadID (QString runningThreadID)
211219{
212220 this ->RunningThreadID = runningThreadID;
221+ emit this ->runningThreadIDChanged (runningThreadID);
213222}
214223
215224// ----------------------------------------------------------------------------
@@ -234,6 +243,7 @@ bool ctkAbstractJob::destroyAfterUse() const
234243void ctkAbstractJob::setDestroyAfterUse (bool destroyAfterUse)
235244{
236245 this ->DestroyAfterUse = destroyAfterUse;
246+ emit this ->destroyAfterUseChanged (destroyAfterUse);
237247}
238248
239249// ----------------------------------------------------------------------------
0 commit comments