KProcessList::KProcessInfo

KProcessList::KProcessInfo Class Reference

#include <kprocesslist.h>

Public Member Functions

 KProcessInfo (qint64 pid, const QString &command, const QString &user)
 
 KProcessInfo (qint64 pid, const QString &command, const QString &name, const QString &user)
 
 KProcessInfo (const KProcessInfo &other)
 
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.

Since
5.58

Definition at line 28 of file kprocesslist.h.

Member Function Documentation

QString KProcessInfo::command ( ) const

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

Since
5.61

Definition at line 72 of file kprocesslist.cpp.

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 57 of file kprocesslist.cpp.

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 67 of file kprocesslist.cpp.

qint64 KProcessInfo::pid ( ) const

The pid of the process.

Definition at line 62 of file kprocesslist.cpp.

QString KProcessInfo::user ( ) const

The username the process is running under.

Definition at line 77 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-2020 The KDE developers.
Generated on Wed May 27 2020 23:06:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.