00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
#ifndef _SVNCPP_CONTEXT_HPP_
00015
#define _SVNCPP_CONTEXT_HPP_
00016
00017
00018
#include <string>
00019
00020
00021
#include "svn_client.h"
00022
00023
00024
#include "svncpp/pool.hpp"
00025
00026
00027
namespace svn
00028 {
00029
00030
class ContextListener;
00031
00037 class Context
00038 {
00039
public:
00047
Context (
const std::string & configDir=
"");
00048
00054
Context (
const Context &src);
00055
00059
virtual ~Context ();
00060
00066
void setAuthCache (
bool value);
00067
00071
void setLogin (
const char * username,
const char * password);
00072
00076
operator svn_client_ctx_t * ();
00077
00081 svn_client_ctx_t *
ctx ();
00082
00087
void reset ();
00088
00094
void setLogMessage (
const char * msg);
00095
00101
const char *
00102
getLogMessage ()
const;
00103
00109
const char *
00110
getUsername ()
const;
00111
00117
const char *
00118
getPassword ()
const;
00119
00127
void
00128
setListener (
ContextListener * listener);
00129
00135
ContextListener *
00136
getListener ()
const;
00137
00138
private:
00139
struct Data;
00140 Data * m;
00141
00145
Context & operator = (
const Context &);
00146 };
00147 }
00148
00149
#endif
00150
00151
00152
00153
00154