Login object now has methods to retrieve user name and password

This commit is contained in:
Emiel Bruijntjes 2014-02-04 06:57:25 -08:00
parent fb742ba06d
commit d4e543e74a
2 changed files with 19 additions and 1 deletions

View File

@ -58,6 +58,24 @@ public:
*/
virtual ~Login() {}
/**
* Retrieve the user name
* @return string
*/
const std::string &user() const
{
return _user;
}
/**
* Retrieve the password
* @return string
*/
const std::string &password() const
{
return _password;
}
/**
* String representation in SASL PLAIN mode
* @return string

View File

@ -1,4 +1,4 @@
CPP = g++
CPP = g++-4.8
RM = rm -f
CPPFLAGS = -Wall -c -I. -O2 -flto -std=c++11 -g
LD = g++