~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/ksysguard/processcore/processes_gnu_p.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  This file is part of the KDE project
 
2
    Copyright (C) 2009 Pino Toscano <pino@kde.org>
 
3
 
 
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.
 
8
 
 
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.
 
13
 
 
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.
 
18
*/
 
19
 
 
20
#include "processes_local_p.h"
 
21
#include "process.h"
 
22
 
 
23
#ifdef __GNUC__
 
24
#warning Totally bogus ProcessesLocal implementation
 
25
#endif
 
26
 
 
27
namespace KSysGuard
 
28
{
 
29
 
 
30
class ProcessesLocal::Private
 
31
{
 
32
public:
 
33
    Private()
 
34
    {}
 
35
    ~Private()
 
36
    {}
 
37
};
 
38
 
 
39
 
 
40
ProcessesLocal::ProcessesLocal()
 
41
    : d(0)
 
42
{
 
43
}
 
44
 
 
45
ProcessesLocal::~ProcessesLocal()
 
46
{
 
47
   delete d;
 
48
}
 
49
 
 
50
long ProcessesLocal::getParentPid(long pid)
 
51
{
 
52
    long ppid = -1;
 
53
    return ppid;
 
54
}
 
55
 
 
56
bool ProcessesLocal::updateProcessInfo(long pid, Process *process)
 
57
{
 
58
    return false;
 
59
}
 
60
 
 
61
QSet<long> ProcessesLocal::getAllPids()
 
62
{
 
63
    QSet<long> pids;
 
64
    return pids;
 
65
}
 
66
 
 
67
bool ProcessesLocal::sendSignal(long pid, int sig)
 
68
{
 
69
    return false;
 
70
}
 
71
 
 
72
bool ProcessesLocal::setNiceness(long pid, int priority)
 
73
{
 
74
    return false;
 
75
}
 
76
 
 
77
bool ProcessesLocal::setScheduler(long pid, int priorityClass, int priority)
 
78
{
 
79
    return false;
 
80
}
 
81
 
 
82
bool ProcessesLocal::setIoNiceness(long pid, int priorityClass, int priority)
 
83
{
 
84
    return false;
 
85
}
 
86
 
 
87
bool ProcessesLocal::supportsIoNiceness()
 
88
{
 
89
    return false;
 
90
}
 
91
 
 
92
long long ProcessesLocal::totalPhysicalMemory()
 
93
{
 
94
    long long memory = 0;
 
95
    return memory;
 
96
}
 
97
 
 
98
}