00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: SuProtocol.h 00014 00015 Author: Thomas Roelz <tom@suse.de> 00016 Maintainer: Arvin Schnell <arvin@suse.de> 00017 00018 /-*/ 00019 00020 00021 #ifndef SuProtocol_h 00022 #define SuProtocol_h 00023 00024 #include "RemoteProtocol.h" 00025 00026 00027 class SuProtocol : public RemoteProtocol 00028 { 00029 const bool is_server; 00030 00031 std::string loginname; 00032 std::string componentname; 00033 00038 bool at_password_prompt; 00039 00040 public: 00048 SuProtocol (bool is_server, std::string loginname, std::string componentname); 00049 00050 callStatus callComponent (std::string password = "", bool passwd_supplied = false); 00051 00055 bool doesEcho () const; 00056 00057 }; 00058 00059 00060 #endif // SuProtocol_h
1.4.4