.TH "KySdkProcess" 3 "Wed Sep 20 2023" "1.0" "KySdk Process Library" \" -*- nroff -*- .ad l .nh .SH NAME KySdkProcess \- D-Bus signal class for generating instantaneous detailed process information. Mainly used to generate CPU usage of a process, get memory usage rate of a process, get process status, get port number occupied by a process, get process start time, get process running time, get CPU time of a process, get process Command, get process owner, get process information, and get D-Bus signals for all process information. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits QObject\&. .SS "Public Slots" .in +1c .ti -1c .RI "double \fBgetProcInfoCpuUsage\fP (int pid) const" .br .RI "Get CPU usage of a process" .ti -1c .RI "double \fBgetProcInfoMemUsage\fP (int pid) const" .br .RI "Get memory usage rate of a process" .ti -1c .RI "QString \fBgetProcInfoStatus\fP (int pid) const" .br .RI "Get process status" .ti -1c .RI "int \fBgetProcInfoPort\fP (int pid) const" .br .RI "Get port number occupied by a process" .ti -1c .RI "QString \fBgetProcInfoStartTime\fP (int pid) const" .br .RI "Get process start time" .ti -1c .RI "QString \fBgetProcInfoRunningTime\fP (int pid) const" .br .RI "Get process running time" .ti -1c .RI "QString \fBgetProcInfoCpuTime\fP (int pid) const" .br .RI "Get CPU time of a process" .ti -1c .RI "QString \fBgetProcInfoCmd\fP (int pid) const" .br .RI "Get process Command" .ti -1c .RI "QString \fBgetProcInfoUser\fP (int pid) const" .br .RI "Get process owner" .ti -1c .RI "QStringList \fBgetProcInfo\fP (const QString procName) const" .br .RI "Get process information" .ti -1c .RI "QStringList \fBgetAllProcInfo\fP () const" .br .RI "Get all process information" .in -1c .SH "Detailed Description" .PP D-Bus signal class for generating instantaneous detailed process information. Mainly used to generate CPU usage of a process, get memory usage rate of a process, get process status, get port number occupied by a process, get process start time, get process running time, get CPU time of a process, get process Command, get process owner, get process information, and get D-Bus signals for all process information. .PP .SH "Public Slots" .PP .SS "QStringList KySdkProcess::getAllProcInfo () const\fR [slot]\fP" .PP Get all process information .PP \fBReturns\fP .RS 4 QStringList List of all processes' CPU usage, memory usage rate, status, port number occupation, start time, running time, CPU time, Command, and owner information .RE .PP .SS "QStringList KySdkProcess::getProcInfo (const QString procName) const\fR [slot]\fP" .PP Get information of a specific process .PP \fBParameters\fP .RS 4 \fIprocName\fP Process name .RE .PP \fBReturns\fP .RS 4 QStringList List of process information including CPU usage, memory usage rate, status, port number occupation, start time, running time, CPU time, Command, and owner information .RE .PP .SS "QString KySdkProcess::getProcInfoCmd (int pid) const\fR [slot]\fP" .PP Get Command of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process Command .RE .PP .SS "QString KySdkProcess::getProcInfoCpuTime (int pid) const\fR [slot]\fP" .PP Get CPU time of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process CPU time .RE .PP .SS "double KySdkProcess::getProcInfoCpuUsage (int pid) const\fR [slot]\fP" .PP Get CPU usage of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 double Process CPU usage .RE .PP .SS "double KySdkProcess::getProcInfoMemUsage (int pid) const\fR [slot]\fP" .PP Get memory usage rate of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 double Process memory usage rate .RE .PP .SS "int KySdkProcess::getProcInfoPort (int pid) const\fR [slot]\fP" .PP Get port number occupied by a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 int Port number used by the process .RE .PP .SS "QString KySdkProcess::getProcInfoRunningTime (int pid) const\fR [slot]\fP" .PP Get running time of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process running time .RE .PP .SS "QString KySdkProcess::getProcInfoStartTime (int pid) const\fR [slot]\fP" .PP Get start time of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process start time .RE .PP .SS "QString KySdkProcess::getProcInfoStatus (int pid) const\fR [slot]\fP" .PP Get process status .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process status .RE .PP .SS "QString KySdkProcess::getProcInfoUser (int pid) const\fR [slot]\fP" .PP Get owner of a process .PP \fBParameters\fP .RS 4 \fIpid\fP Process ID .RE .PP \fBReturns\fP .RS 4 QString Process owner .RE .PP .SH "Author" .PP Generated automatically by Doxygen for kysdkdbus.h from the source code\&.