xref: /haiku/src/apps/terminal/ShellParameters.cpp (revision 4466b89c65970de4c7236ac87faa2bee4589f413)
1 /*
2  * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "ShellParameters.h"
8 
9 
10 ShellParameters::ShellParameters(int argc, const char* const* argv,
11 	const BString& currentDirectory)
12 	:
13 	fArguments(argv),
14 	fArgumentCount(argc),
15 	fCurrentDirectory(currentDirectory),
16 	fEncoding("UTF8")
17 {
18 }
19 
20 
21 void
22 ShellParameters::SetArguments(int argc, const char* const* argv)
23 {
24 	fArguments = argv;
25 	fArgumentCount = argc;
26 }
27 
28 
29 void
30 ShellParameters::SetCurrentDirectory(const BString& currentDirectory)
31 {
32 	fCurrentDirectory = currentDirectory;
33 }
34 
35 
36 void
37 ShellParameters::SetEncoding(const BString& encoding)
38 {
39 	fEncoding = encoding;
40 }
41