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