Commit 83711964 authored by jan.koester's avatar jan.koester
Browse files

api changed

parent 807e8200
Loading
Loading
Loading
Loading
Loading
+5 −5
Changes for client/client.cpp: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -41,23 +41,23 @@ authdb::client::ClientConnection::~ClientConnection(){
    delete _Client;
}

void authdb::client::ClientConnection::setUrl(const char *url){
void authdb::client::ClientConnection::setUrl(const std::string &url){
    _Url=url;
}

void authdb::client::ClientConnection::setClientname(const char *name){
void authdb::client::ClientConnection::setClientName(const std::string &name){
    _CltName=name;
}

void authdb::client::ClientConnection::setClientSecret(const char *secret){
void authdb::client::ClientConnection::setClientSecret(const std::string &secret){
    _CltSecret=secret;
}

void authdb::client::ClientConnection::setUsername(const char *username){
void authdb::client::ClientConnection::setUsername(const std::string &username){
    _UserName=username;
}

void authdb::client::ClientConnection::setUserPassword(const char *password){
void authdb::client::ClientConnection::setUserPassword(const std::string &password){
    _UserPassword=password;
}

+5 −5
Changes for client/client.h: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -39,11 +39,11 @@ namespace authdb {
        public:
            ClientConnection();
            ~ClientConnection();
            void setUrl(const char *url);
            void setClientname(const char *name);
            void setClientSecret(const char *secret);
            void setUsername(const char *username);
            void setUserPassword(const char *password);
            void setUrl(const std::string &url);
            void setClientName(const std::string &name);
            void setClientSecret(const std::string &secret);
            void setUsername(const std::string &username);
            void setUserPassword(const std::string &password);
        private:
            libhttppp::HttpUrl _Url;
            std::string _CltName;