class ProcessList

This class implementes a table filled with information about the running processes. More...

Definition#include <whatsup/ProcessList.h>
InheritsQListView (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Slots

Signals

Private Types

Private Methods

Private Slots

Private Members


Detailed Description

This class implementes a table filled with information about the running processes. The table is derived from QListView.

enum { FILTER_ALL = 0, FILTER_SYSTEM, FILTER_USER, FILTER_OWN }

enum { REFRESH_MANUAL = 0, REFRESH_SLOW, REFRESH_MEDIUM, REFRESH_FAST }

 ProcessList (Config& cfg,QWidget* parent = 0, const char* name = 0)

ProcessList

 ~ProcessList ()

~ProcessList

void  saveSettings (Config& cfg)

saveSettings

void  loadSettings (Config& cfg)

loadSettings

int  setAutoUpdateMode (bool mode = TRUE)

setAutoUpdateMode

This function can be used to control the auto update feature of the widget. If auto update mode is enabled the display is refreshed according to the set refresh rate.

void  setSorting (int column, bool increasing = TRUE)

setSorting

[virtual]

To support bi-directional sorting we need to re-implement setSorting to respect the direction and the different contense (text, number, etc).

Reimplemented from QListView.

void  clearSelection (void)

clearSelection

This function clears the current selection and sends out a signal.

Reimplemented from QListView.

void  update (void)

update

[slot]

The udpate function can be used to update the displayed process list. A current list of processes is requested from the OS.

void  signalProcess (int sig)

signalProcess

[slot]

void  reniceProcess ()

reniceProcess

[slot]

void  signalHub ()

signalHub

[slot]

void  signalInt ()

signalInt

[slot]

void  signalTerm ()

signalTerm

[slot]

void  signalKill ()

signalKill

[slot]

void  setRefreshRate (int)

setRefreshRate

[slot]

This slot allows the refresh rate to be set by other widgets. Possible values are REFRESH_MANUAL, REFRESH_SLOW, REFRESH_MEDIUM and REFRESH_FAST.

void  refreshManual ()

refreshManual

[slot]

void  refreshSlow ()

refreshSlow

[slot]

void  refreshMedium ()

refreshMedium

[slot]

void  refreshFast ()

refreshFast

[slot]

void  setTreeView (bool tv)

setTreeView

[slot]

void  setFilterMode (int fm)

setFilterMode

[slot]

This slot allows the filter mode to be set by other widgets. Possible values are FILTER_ALL, FILTER_SYSTEM, FILTER_USER and FILTER_OWN. This filter mechanism will be much more sophisticated in the future.

void  refreshRateChanged (int)

refreshRateChanged

[signal]

void  filterModeChanged (int)

filterModeChanged

[signal]

void  treeViewChanged (bool)

treeViewChanged

[signal]

void  processSelected (int)

processSelected

[signal]

enum { HEADER_REMOVE = 0, HEADER_ADD, HEADER_HELP }

[private]

enum { UPDATE_SLOW_VALUE = 20, UPDATE_MEDIUM_VALUE = 7, UPDATE_FAST_VALUE = 1 }

[private]

int  selectedPid (void)

selectedPid

[private const]

This function returns the process ID of the currently selected process. If there isn't any -1 is returned.

void  initTabCol (Config& cfg)

initTabCol

[private]

void  load ()

load

[private]

bool  matchesFilter (OSProcess* p)

matchesFilter

[private const]

ProcessLVI*  buildList (int selectedProcess)

buildList

[private]

ProcessLVI*  buildTree (int selectedProcess)

buildTree

[private]

void  deleteLeaves (void)

deleteLeaves

[private]

bool  isLeafProcess (int pid)

isLeafProcess

[private]

void  extendTree (OSProcessList* pl, ProcessLVI* parent, int ppid, ProcessLVI** newSelection, int selectedProcess)

extendTree

[private]

void  addProcess (OSProcess* p, ProcessLVI* pli)

addProcess

[private]

void  timerEvent (QTimerEvent*)

timerEvent

[private virtual]

This function is automatically triggered by timer events. It refreshes the displayed process list.

friend class ProcessLVI

ProcessLVI

[private]

int  mapV2T (int vcol)

mapV2T

[private]

Since some columns of our process table might be invisible the columns of the QListView and the data structure do not match. We have to map the visible columns to the table columns (V2T).

int  mapT2V (int tcol)

mapT2V

[private]

This function maps a table columns index to a visible columns index.

void  selectionChangedSlot (QListViewItem* lvi)

selectionChangedSlot

[private slots slot]

void  timerOff ()

timerOff

[private slots slot]

This functions stops the timer that triggers automatic refreshed of the process list.

void  timerOn ()

timerOn

[private slots slot]

This function starts the timer that triggers the automatic refreshes of the process list. It reads the interval from the member object timerInterval. To change the interval the timer must be stoped first with timerOff() and than started again with timeOn().

int filterMode

filterMode

[private]

int sortColumn

sortColumn

[private]

bool increasing

increasing

[private]

int refreshRate

refreshRate

[private]

int currColumn

currColumn

[private]

int timerInterval

timerInterval

[private]

int timerId

timerId

[private]

bool treeViewEnabled

treeViewEnabled

[private]

OSProcessList pl

pl

[private]


Generated by: andreas on linux on Sat Jun 15 19:28:49 2002, using kdoc 2.0a53.