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
12class ShellParameters {
13public:
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(int encoding);
31			int					Encoding() const
32									{ return fEncoding; }
33
34private:
35			const char* const*	fArguments;
36			int					fArgumentCount;
37			BString				fCurrentDirectory;
38			int					fEncoding;
39};
40
41
42
43#endif	// SHELL_PARAMETERS_H
44