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 "pool.hpp"
00025
00026 namespace svn
00027 {
00028
00029 class ContextListener;
00030
00036 class Context
00037 {
00038 public:
00042 Context ();
00043
00049 Context (const Context &src);
00050
00054 virtual ~Context ();
00055
00061 void setAuthCache (bool value);
00062
00066 void setLogin (const char * username, const char * password);
00067
00071 operator svn_client_ctx_t * ();
00072
00076 svn_client_ctx_t * ctx ();
00077
00082 void reset ();
00083
00089 void setLogMessage (const char * msg);
00090
00096 const char *
00097 getLogMessage () const;
00098
00104 const char *
00105 getUsername () const;
00106
00112 const char *
00113 getPassword () const;
00114
00122 void
00123 setListener (ContextListener * listener);
00124
00130 ContextListener *
00131 getListener () const;
00132
00133 private:
00134 struct Data;
00135 Data * m;
00136
00140 Context & operator = (const Context &);
00141 };
00142 }
00143
00144 #endif
00145
00146
00147
00148
00149