class OSProcessList
|
This class encapsulates all OS specific information about the process list. More... |
|
|
Public Types
- enum SORTKEY { SORTBY_PID = 0,
SORTBY_PPID,
SORTBY_NAME,
SORTBY_UID,
SORTBY_USERNAME,
SORTBY_CPU,
SORTBY_TIME,
SORTBY_PRIORITY,
SORTBY_STATUS,
SORTBY_VMSIZE,
SORTBY_VMRSS,
SORTBY_VMLIB
}
Public Methods
Private Methods
Private Members
This class encapsulates all OS specific information about the process list.
Since inquiring process status is highly OS dependant all these adaptions
should be made in this file.
| enum SORTKEY { SORTBY_PID = 0,
SORTBY_PPID,
SORTBY_NAME,
SORTBY_UID,
SORTBY_USERNAME,
SORTBY_CPU,
SORTBY_TIME,
SORTBY_PRIORITY,
SORTBY_STATUS,
SORTBY_VMSIZE,
SORTBY_VMRSS,
SORTBY_VMLIB
}
| SORTKEY |
OSProcessList ()
| OSProcessList |
~OSProcessList ()
| ~OSProcessList |
[virtual]
bool update (void)
| update |
This function clears the old process list and retrieves a current one
from the OS.
bool hasName (void)
| hasName |
[const]
The 'has...' functions can be used to inquire if the OS supports a
specific process attribute. The return value may be hardcoded
for each platform.
bool hasCmdLine (void)
| hasCmdLine |
[const]
bool hasUid (void)
| hasUid |
[const]
bool hasUserTime (void)
| hasUserTime |
[const]
bool hasSysTime (void)
| hasSysTime |
[const]
bool hasUserLoad (void)
| hasUserLoad |
[const]
bool hasSysLoad (void)
| hasSysLoad |
[const]
bool hasStatus (void)
| hasStatus |
[const]
bool hasPriority (void)
| hasPriority |
[const]
bool hasNiceLevel (void)
| hasNiceLevel |
[const]
bool hasVmSize (void)
| hasVmSize |
[const]
bool hasVmRss (void)
| hasVmRss |
[const]
bool hasVmLib (void)
| hasVmLib |
[const]
void setSortCriteria (SORTKEY sk)
| setSortCriteria |
SORTKEY getSortCriteria (void)
| getSortCriteria |
[const]
[const]
This function is needed mainly because we can have errors during the
constructor execution. Since it has no return value we can call this
function to find out if the class is fully operational.
const QString& getErrMessage (void)
| getErrMessage |
This function can be used when calls to ok() return false to find out
what has happened. The error variable is cleared after a call to
getErrMessage().
int compareItems (GCI it1, GCI it2)
| compareItems |
[private virtual]
| SORTKEY sortCriteria
| sortCriteria |
[private]
[private]
[private]
[private]
| Generated by: andreas on linux on Sat Jun 15 19:28:49 2002, using kdoc 2.0a53. |