xref: /haiku/src/apps/terminal/ActiveProcessInfo.cpp (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
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 
10 ActiveProcessInfo::ActiveProcessInfo()
11 	:
12 	fID(-1),
13 	fName(),
14 	fCurrentDirectory()
15 {
16 }
17 
18 
19 void
20 ActiveProcessInfo::SetTo(pid_t id, const BString& name,
21 	const BString& currentDirectory)
22 {
23 	fID = id;
24 	fName = name;
25 	fCurrentDirectory = currentDirectory;
26 }
27 
28 
29 void
30 ActiveProcessInfo::Unset()
31 {
32 	fID = -1;
33 	fName = BString();
34 	fCurrentDirectory = BString();
35 }
36