From d4e543e74a57b0fcf4ca3fccd1d54062ab2f71c3 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 4 Feb 2014 06:57:25 -0800 Subject: [PATCH] Login object now has methods to retrieve user name and password --- include/login.h | 18 ++++++++++++++++++ src/Makefile | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/include/login.h b/include/login.h index 7e10aec..7605696 100644 --- a/include/login.h +++ b/include/login.h @@ -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 diff --git a/src/Makefile b/src/Makefile index 3a9b4e9..3ba1fd9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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++