HaikuDepot: notify work status from main window
[haiku.git] / src / apps / terminal / ActiveProcessInfo.cpp
blobd930a2139e832f2786feeb48030168590732dbe6
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "ActiveProcessInfo.h"
10 ActiveProcessInfo::ActiveProcessInfo()
12 fID(-1),
13 fName(),
14 fCurrentDirectory()
19 void
20 ActiveProcessInfo::SetTo(pid_t id, const BString& name,
21 const BString& currentDirectory)
23 fID = id;
24 fName = name;
25 fCurrentDirectory = currentDirectory;
29 void
30 ActiveProcessInfo::Unset()
32 fID = -1;
33 fName = BString();
34 fCurrentDirectory = BString();