SvnCpp
svn::Context Class Reference

#include <context.hpp>

Public Member Functions

 Context (const std::string &configDir="")
 Context (const Context &src)
virtual ~Context ()
void setAuthCache (bool value)
void setLogin (const char *username, const char *password)
 operator svn_client_ctx_t * ()
svn_client_ctx_t * ctx ()
void reset ()
void setLogMessage (const char *msg)
const char * getLogMessage () const
const char * getUsername () const
const char * getPassword () const
void setListener (ContextListener *listener)
ContextListenergetListener () const

Detailed Description

This class will hold the client context and replace the old notification and baton stuff

Constructor & Destructor Documentation

◆ Context() [1/2]

svn::Context::Context ( const std::string & configDir = "")

default constructor

Parameters
configDirlocation where the subversion api stores its configuration

Referenced by Context(), and getListener().

◆ Context() [2/2]

svn::Context::Context ( const Context & src)

copy constructor

Parameters
src

References Context().

◆ ~Context()

virtual svn::Context::~Context ( )
virtual

destructor

Member Function Documentation

◆ ctx()

svn_client_ctx_t * svn::Context::ctx ( )

return the svn_client_ctx object

◆ getListener()

ContextListener * svn::Context::getListener ( ) const

get the listener

Returns
the listener

References Context().

◆ getLogMessage()

const char * svn::Context::getLogMessage ( ) const

get log message

Returns
log message

◆ getPassword()

const char * svn::Context::getPassword ( ) const

get password

Returns
password

◆ getUsername()

const char * svn::Context::getUsername ( ) const

get username

Returns
username

◆ operator svn_client_ctx_t *()

svn::Context::operator svn_client_ctx_t * ( )

operator to get svn_client_ctx object

◆ reset()

void svn::Context::reset ( )

this will be called at the beginning of an action. the log message will be reset.

◆ setAuthCache()

void svn::Context::setAuthCache ( bool value)

enable/disable authentication caching

Parameters
valuetrue=enable/false=disable

◆ setListener()

void svn::Context::setListener ( ContextListener * listener)

set the listener for the context. The listener will be called to poll authentication information and other information like this

Parameters
listener

◆ setLogin()

void svn::Context::setLogin ( const char * username,
const char * password )

set username/password for authentication

◆ setLogMessage()

void svn::Context::setLogMessage ( const char * msg)

set log message

Parameters
msg

The documentation for this class was generated from the following file: