00001 #ifndef LOGIN_HH_ 00002 # define LOGIN_HH_ 00003 00004 # include "cronous-interface.hh" 00005 # include "outgoing-packet.hh" 00006 # include "packets_fwd.hh" 00007 00008 namespace actions 00009 { 00010 class Login : public packets::OutgoingPacket 00011 { 00012 public: 00013 Login(std::string user = environment::CronousInterface::get_instance().get_username(), 00014 std::string pass = environment::CronousInterface::get_instance().get_password()); 00015 00016 const static int op = 0x17; 00017 00018 void print_tag(std::ostream &os) const; 00019 void print_data(std::ostream &os) const; 00020 void process(packets::PacketVisitor &ph); 00021 00022 protected: 00023 std::string _user; 00024 std::string _pass; 00025 }; 00026 }; 00027 00028 #endif