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 70 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 55 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 65 of file kprocesslist.cpp.

qint64 KProcessInfo::pid ( ) const

The pid of the process.

Definition at line 60 of file kprocesslist.cpp.

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-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:04:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.