btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / terminal / ShellInfo.h
blob63d9eed898a231c3cdae2e7a457357de802079ae
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SHELL_INFO_H
6 #define SHELL_INFO_H
9 #include <OS.h>
10 #include <String.h>
13 class ShellInfo {
14 public:
15 ShellInfo();
17 pid_t ProcessID() const
18 { return fProcessID; }
19 void SetProcessID(pid_t processID)
20 { fProcessID = processID; }
22 bool IsDefaultShell() const
23 { return fIsDefaultShell; }
24 void SetDefaultShell(bool isDefault)
25 { fIsDefaultShell = isDefault; }
27 int Encoding() const
28 { return fEncoding; }
29 const BString& EncodingName() const
30 { return fEncodingName; }
31 void SetEncoding(int encoding);
33 private:
34 pid_t fProcessID;
35 bool fIsDefaultShell;
36 int fEncoding;
37 BString fEncodingName;
41 #endif // SHELL_INFO_H