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
00059 void setLogin (const char * username, const char * password);
00060
00064 operator svn_client_ctx_t * ();
00065
00069 svn_client_ctx_t * ctx ();
00070
00075 void reset ();
00076
00082 void setLogMessage (const char * msg);
00083
00089 const char *
00090 getLogMessage () const;
00091
00097 const char *
00098 getUsername () const;
00099
00105 const char *
00106 getPassword () const;
00107
00115 void
00116 setListener (ContextListener * listener);
00117
00123 ContextListener *
00124 getListener () const;
00125
00126 private:
00127 struct Data;
00128 Data * m;
00129
00133 Context & operator = (const Context &);
00134 };
00135 }
00136
00137 #endif
00138
00139
00140
00141
00142