KProcess Nice level

Harri Porten porten at
Tue May 27 13:31:00 BST 2003

On Tue, 27 May 2003, Oswald Buddenhagen wrote:

> the Prio* constant name prefix is somewhat ominous, but "Priority" is
> too long for my taste, and if i put it in a namespace to get names like
> Priority::High as luis suggested, we once more risk name clashes because
> some bonehead #defined High or something like that.

Given that setPriority() accepts all (valid) integer values instead of the
enum type I don't see what benefit the enum has. IMO, either have
setPriority(Priority p) or setPriority(int p) without any enum.


More information about the kde-core-devel mailing list