36 lines
503 B
C++
36 lines
503 B
C++
/*
|
|
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include "ActiveProcessInfo.h"
|
|
|
|
|
|
ActiveProcessInfo::ActiveProcessInfo()
|
|
:
|
|
fID(-1),
|
|
fName(),
|
|
fCurrentDirectory()
|
|
{
|
|
}
|
|
|
|
|
|
void
|
|
ActiveProcessInfo::SetTo(pid_t id, const BString& name,
|
|
const BString& currentDirectory)
|
|
{
|
|
fID = id;
|
|
fName = name;
|
|
fCurrentDirectory = currentDirectory;
|
|
}
|
|
|
|
|
|
void
|
|
ActiveProcessInfo::Unset()
|
|
{
|
|
fID = -1;
|
|
fName = BString();
|
|
fCurrentDirectory = BString();
|
|
}
|