Move Process Info Classes to a new files.

This commit is contained in:
Gustavo Carneiro
2020-07-24 20:55:49 -03:00
parent 51a345bf2a
commit 1219b72bb5
10 changed files with 570 additions and 383 deletions

40
src/NullProcessInfo.cpp Normal file
View File

@@ -0,0 +1,40 @@
/*
Copyright 2007-2008 by Robert Knight <robertknight@gmail.countm>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
*/
#include "NullProcessInfo.h"
using namespace Konsole;
NullProcessInfo::NullProcessInfo(int pid)
: ProcessInfo(pid)
{
}
void NullProcessInfo::readProcessInfo(int /*pid*/)
{
}
bool NullProcessInfo::readCurrentDir(int /*pid*/)
{
return false;
}
void NullProcessInfo::readUserName()
{
}