Bug 175220 - porting of "bool KProcess::setPriority ()" from KDE3 to KDE4
Summary: porting of "bool KProcess::setPriority ()" from KDE3 to KDE4
Status: CONFIRMED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.1
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-15 14:41 UTC by urwald
Modified: 2013-07-12 18:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description urwald 2008-11-15 14:41:08 UTC
Version:            (using KDE 4.1.3)

Since KDE 3.2, the class KProcess had a function setPriority(). (see http://developer.kde.org/documentation/library/3.2-api/kdecore/html/classKProcess.html#a37) With this function, it was possible to set the process priority.

Since KDE 4, this function is no longer avaible. Please make it avaible also in KDE 4!

(In KDE 3, setPriority() accepted an int as argument, corresponding to the UNIX "nice" levels. PrioLowest, PrioLow, PrioLower, PrioNormal, PrioHigher, PrioHigh, PrioHighest are only representing values between -20 und 19. KDE 4 isn't limited to UNIX, so it seems better to me, to make a new, platform-indepented enum with values named like above - without relying on UNIX "nice". setPriority should accept than only this enum as argument - and transfer it to a platform-dependend value.)
Comment 1 Oswald Buddenhagen 2008-11-17 09:30:01 UTC
this is trolltech task 164953 and "it needs some thought".
Comment 2 urwald 2008-11-17 12:51:17 UTC
See http://trolltech.com/developer/task-tracker/index_html?method=entry&id=164953 for details.

However, Trolltech has decreased the priority bit by bit down to actually "No Priority". So I assume we won't get an implementation in QProcess... and this would make it interesting to implement it in KProcess.
Comment 3 Oswald Buddenhagen 2008-11-17 14:13:00 UTC
if you can come up with semantics that work reasonably well cross-platform, we can have it in qt "soon" (qt 4.6, that is). but you'll notice that it isn't straight-forward by any means.
Comment 4 urwald 2008-11-17 14:44:32 UTC
Okay, my knowlege is limited to linux. I didn't know that that's complicate on other platforms...