KProcessList::KProcessInfo

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.

Since
5.58

Definition at line 27 of file kprocesslist.h.

Constructor & Destructor Documentation

◆ KProcessInfo() [1/4]

KProcessInfo::KProcessInfo ( )

Definition at line 19 of file kprocesslist.cpp.

◆ KProcessInfo() [2/4]

KProcessInfo::KProcessInfo ( qint64 pid,
const QString & command,
const QString & user )

Definition at line 24 of file kprocesslist.cpp.

◆ KProcessInfo() [3/4]

KProcessInfo::KProcessInfo ( qint64 pid,
const QString & command,
const QString & name,
const QString & user )

Definition at line 29 of file kprocesslist.cpp.

◆ KProcessInfo() [4/4]

KProcessInfo::KProcessInfo ( const KProcessInfo & other)

Definition at line 39 of file kprocesslist.cpp.

◆ ~KProcessInfo()

KProcessInfo::~KProcessInfo ( )

Definition at line 45 of file kprocesslist.cpp.

Member Function Documentation

◆ command()

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.

◆ 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.

◆ operator=()

KProcessInfo & KProcessInfo::operator= ( const KProcessInfo & other)

Definition at line 49 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 Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.