Hi all,<br><br>I came out with a problem with kuiserver. We have capabilities, and think about the capability "Pausable". When we receive a signal of which action was triggered, we will get KJob::Pausable as actionId. When you click on the "Pause" button, it should go to "Resume", and then, the problem comes, how to do in an elegant way to retrieve a different KJob::Pausable than before... I mean, it is not cute at all having KJob::Pausable, KJob::Resumeable (i don't even know if it is said this way). If a job can be paused, then it can be resumed.
<br><br>So I came up with an idea, and I don't really know if is the best, but it can give us a more interesting approach to jobs in general. I suggest having new methods in KJob class:<br><br>void setState(State state);
<br>State state() const;<br><br>Where State could be an enum, for example with some of this: "InProgress, Paused, Cancelled, Failed". I don't know if more or them may be interesting.<br><br>What do you think ?
<br><br><br>Bye and thanks,<br>Rafael Fernández López.