xref: /haiku/src/tests/apps/miniterminal/Arguments.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef ARGUMENTS_H
7 #define ARGUMENTS_H
8 
9 #include <Rect.h>
10 
11 class Arguments {
12 public:
13 	Arguments();
14 	~Arguments();
15 
16 	void Parse(int argc, const char *const *argv);
17 
18 	BRect Bounds() const		{ return fBounds; }
19 	const char *Title() const	{ return fTitle; }
20 	bool StandardShell() const	{ return fStandardShell; }
21 	void GetShellArguments(int &argc, const char *const *&argv) const;
22 
23 private:
24 	void _SetShellArguments(int argc, const char *const *argv);
25 
26 	BRect		fBounds;
27 	bool		fStandardShell;
28 	int			fShellArgumentCount;
29 	const char	**fShellArguments;
30 	const char	*fTitle;
31 };
32 
33 
34 #endif	// ARGUMENTS_H
35