1 /* This file is part of the KDE project
2 Copyright (C) 2007 Adriaan de Groot <groot@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #include "processes_local_p.h"
27 #include <sys/param.h>
28 #include <sys/types.h>
30 #include <sys/resource.h>
37 #warning Totally bogus ProcessesLocal implementation
43 class ProcessesLocal::Private
50 ProcessesLocal::ProcessesLocal() : d(0)
54 long ProcessesLocal::getParentPid(long pid
) {
59 bool ProcessesLocal::updateProcessInfo( long pid
, Process
*process
)
64 QSet
<long> ProcessesLocal::getAllPids( )
70 bool ProcessesLocal::sendSignal(long pid
, int sig
) {
74 bool ProcessesLocal::setNiceness(long pid
, int priority
) {
78 bool ProcessesLocal::setScheduler(long pid
, int priorityClass
, int priority
)
83 bool ProcessesLocal::setIoNiceness(long pid
, int priorityClass
, int priority
) {
84 return false; //Not yet supported
87 bool ProcessesLocal::supportsIoNiceness() {
91 long long ProcessesLocal::totalPhysicalMemory() {
95 ProcessesLocal::~ProcessesLocal()