Search for usage in LXR

KProcessList::KProcessInfo Class Reference

#include <kprocesslist.h>

Public Member Functions

 KProcessInfo (const KProcessInfo &other)
 KProcessInfo (qint64 pid, const QString &command, const QString &name, const QString &user)
 KProcessInfo (qint64 pid, const QString &command, const QString &user)
QString command () const
bool isValid () const
QString name () const
KProcessInfooperator= (const KProcessInfo &other)
qint64 pid () const
QString user () const

Detailed Description

Contains information about a process.

This class is usually not used alone but rather returned by processInfoList and processInfo. To check if the data contained in this class is valid use the isValid method.


Definition at line 27 of file kprocesslist.h.

Member Function Documentation

◆ command()

QString KProcessInfo::command ( ) const

The command line running this process e.g /bin/ls /some/path -R.


Definition at line 70 of file kprocesslist.cpp.

◆ isValid()

bool KProcessInfo::isValid ( ) const

If the KProcessInfo contains valid information.

If it returns true the pid, name and user function returns valid information, otherwise they return value is undefined.

Definition at line 55 of file kprocesslist.cpp.

◆ name()

QString KProcessInfo::name ( ) const

The name of the process.

The class will try to get the full path to the executable file for the process but if it is not available the name of the process will be used instead. e.g /bin/ls

Definition at line 65 of file kprocesslist.cpp.

◆ pid()

qint64 KProcessInfo::pid ( ) const

The pid of the process.

Definition at line 60 of file kprocesslist.cpp.

◆ user()

QString KProcessInfo::user ( ) const

The username the process is running under.

Definition at line 75 of file kprocesslist.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 04:01:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.