1/* 2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7#include "ActiveProcessInfo.h" 8 9 10ActiveProcessInfo::ActiveProcessInfo() 11 : 12 fID(-1), 13 fName(), 14 fCurrentDirectory() 15{ 16} 17 18 19void 20ActiveProcessInfo::SetTo(pid_t id, const BString& name, 21 const BString& currentDirectory) 22{ 23 fID = id; 24 fName = name; 25 fCurrentDirectory = currentDirectory; 26} 27 28 29void 30ActiveProcessInfo::Unset() 31{ 32 fID = -1; 33 fName = BString(); 34 fCurrentDirectory = BString(); 35} 36