xref: /haiku/src/apps/terminal/ShellParameters.h (revision 25a7b01d15612846f332751841da3579db313082)
1 /*
2  * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef SHELL_PARAMETERS_H
6 #define SHELL_PARAMETERS_H
7 
8 
9 #include <String.h>
10 
11 
12 class ShellParameters {
13 public:
14 								ShellParameters(int argc,
15 									const char* const* argv,
16 									const BString& currentDirectory
17 										= BString());
18 
19 			void				SetArguments(int argc, const char* const* argv);
Arguments()20 			const char* const*	Arguments() const
21 									{ return fArguments; }
ArgumentCount()22 			int					ArgumentCount() const
23 									{ return fArgumentCount; }
24 
25 			void				SetCurrentDirectory(
26 									const BString& currentDirectory);
CurrentDirectory()27 			const BString&		CurrentDirectory() const
28 									{ return fCurrentDirectory; }
29 
30 			void				SetEncoding(int encoding);
Encoding()31 			int					Encoding() const
32 									{ return fEncoding; }
33 
34 private:
35 			const char* const*	fArguments;
36 			int					fArgumentCount;
37 			BString				fCurrentDirectory;
38 			int					fEncoding;
39 };
40 
41 
42 
43 #endif	// SHELL_PARAMETERS_H
44