00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _SVNCPP_CONTEXT_LISTENER_HPP_
00015 #define _SVNCPP_CONTEXT_LISTENER_HPP_
00016
00017
00018 #include <string>
00019
00020
00021 #include "svn_client.h"
00022
00023
00024 #include "pool.hpp"
00025
00026
00027
00028 namespace svn
00029 {
00036 class ContextListener
00037 {
00038 public:
00048 virtual bool
00049 contextGetLogin (std::string & username,
00050 std::string & password) = 0;
00051
00064 virtual void
00065 contextNotify (const char *path,
00066 svn_wc_notify_action_t action,
00067 svn_node_kind_t kind,
00068 const char *mime_type,
00069 svn_wc_notify_state_t content_state,
00070 svn_wc_notify_state_t prop_state,
00071 svn_revnum_t revision) = 0;
00072
00081 virtual bool
00082 contextGetLogMessage (std::string & msg) = 0;
00083
00096 virtual bool
00097 contextAskQuestion (const std::string & question,
00098 std::string & answer,
00099 bool hide) = 0;
00100 };
00101 }
00102
00103 #endif
00104
00105
00106
00107
00108