xref: /haiku/src/apps/terminal/ShellParameters.h (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
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);
20 			const char* const*	Arguments() const
21 									{ return fArguments; }
22 			int					ArgumentCount() const
23 									{ return fArgumentCount; }
24 
25 			void				SetCurrentDirectory(
26 									const BString& currentDirectory);
27 			const BString&		CurrentDirectory() const
28 									{ return fCurrentDirectory; }
29 
30 			void				SetEncoding(const BString& encoding);
31 			const BString&		Encoding() const
32 									{ return fEncoding; }
33 
34 private:
35 			const char* const*	fArguments;
36 			int					fArgumentCount;
37 			BString				fCurrentDirectory;
38 			BString				fEncoding;
39 };
40 
41 
42 
43 #endif	// SHELL_PARAMETERS_H
44