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 7 8 9 #include <OS.h> 10 #include <String.h> 11 12 13 class ShellInfo { 14 public: 15 ShellInfo(); 16 17 pid_t ProcessID() const 18 { return fProcessID; } 19 void SetProcessID(pid_t processID) 20 { fProcessID = processID; } 21 22 bool IsDefaultShell() const 23 { return fIsDefaultShell; } 24 void SetDefaultShell(bool isDefault) 25 { fIsDefaultShell = isDefault; } 26 27 int Encoding() const 28 { return fEncoding; } 29 const BString& EncodingName() const 30 { return fEncodingName; } 31 void SetEncoding(int encoding); 32 33 private: 34 pid_t fProcessID; 35 bool fIsDefaultShell; 36 int fEncoding; 37 BString fEncodingName; 38 }; 39 40 41 #endif // SHELL_INFO_H 42