00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: RshProtocol.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Arvin Schnell <arvin@suse.de> 00017 00018 /-*/ 00019 // -*- c++ -*- 00020 00021 00022 #ifndef RshProtocol_h 00023 #define RshProtocol_h 00024 00025 #include "RemoteProtocol.h" 00026 00027 00028 class RshProtocol : public RemoteProtocol 00029 { 00030 const bool is_server; 00031 00032 std::string used_shell; 00033 std::string loginname; 00034 std::string componentname; 00035 00040 bool at_password_prompt; 00041 00042 public: 00052 RshProtocol (bool is_server, std::string loginname, std::string hostname, 00053 std::string componentname, std::string shell); 00054 00055 callStatus callComponent (std::string password = "", bool passwd_supplied = false); 00056 00060 bool doesEcho () const; 00061 00062 }; 00063 00064 00065 #endif // RshProtocol_h
1.4.4