Changeset View
Changeset View
Standalone View
Standalone View
processcore/process.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 29 | public: | |||
---|---|---|---|---|---|
78 | long ioCharactersActuallyWrittenRate; | 78 | long ioCharactersActuallyWrittenRate; | ||
79 | int numThreads; | 79 | int numThreads; | ||
80 | QList<Process *> children; | 80 | QList<Process *> children; | ||
81 | QTime timeKillWasSent; | 81 | QTime timeKillWasSent; | ||
82 | int index; | 82 | int index; | ||
83 | Process::Changes changes; | 83 | Process::Changes changes; | ||
84 | int elapsedTimeMilliSeconds; | 84 | int elapsedTimeMilliSeconds; | ||
85 | int noNewPrivileges; | 85 | int noNewPrivileges; | ||
86 | QString cGroup; | ||||
86 | }; | 87 | }; | ||
87 | 88 | | |||
88 | Process::Process() | 89 | Process::Process() | ||
89 | : d(new ProcessPrivate()) | 90 | : d(new ProcessPrivate()) | ||
90 | { | 91 | { | ||
91 | clear(); | 92 | clear(); | ||
92 | } | 93 | } | ||
93 | 94 | | |||
▲ Show 20 Lines • Show All 388 Lines • ▼ Show 20 Line(s) | 482 | { | |||
482 | return d->changes; | 483 | return d->changes; | ||
483 | } | 484 | } | ||
484 | 485 | | |||
485 | int Process::elapsedTimeMilliSeconds() const | 486 | int Process::elapsedTimeMilliSeconds() const | ||
486 | { | 487 | { | ||
487 | return d->elapsedTimeMilliSeconds; | 488 | return d->elapsedTimeMilliSeconds; | ||
488 | } | 489 | } | ||
489 | 490 | | |||
491 | QString Process::cGroup() const | ||||
492 | { | ||||
493 | return d->cGroup; | ||||
494 | } | ||||
495 | | ||||
490 | void Process::setParentPid(long int parent_pid) | 496 | void Process::setParentPid(long int parent_pid) | ||
491 | { | 497 | { | ||
492 | d->parent_pid = parent_pid; | 498 | d->parent_pid = parent_pid; | ||
493 | } | 499 | } | ||
494 | 500 | | |||
495 | void Process::setParent(Process* parent) | 501 | void Process::setParent(Process* parent) | ||
496 | { | 502 | { | ||
497 | d->parent = parent; | 503 | d->parent = parent; | ||
▲ Show 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 777 | { | |||
772 | d->elapsedTimeMilliSeconds = value; | 778 | d->elapsedTimeMilliSeconds = value; | ||
773 | } | 779 | } | ||
774 | 780 | | |||
775 | void Process::setChanges(KSysGuard::Process::Change changes) | 781 | void Process::setChanges(KSysGuard::Process::Change changes) | ||
776 | { | 782 | { | ||
777 | d->changes = changes; | 783 | d->changes = changes; | ||
778 | } | 784 | } | ||
779 | 785 | | |||
786 | void Process::setCGroup(const QString &_cGroup) { | ||||
787 | if(d->cGroup == _cGroup) return; | ||||
788 | d->cGroup = _cGroup; | ||||
789 | d->changes |= Process::Status; | ||||
790 | } | ||||
791 | | ||||
780 | } | 792 | } |