1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef _TESTLISTENER_
#define _TESTLISTENER_
#include "src/svnqt/context_listener.hpp"
class TestListener:public svn::ContextListener
{
public:
TestListener(){}
virtual ~TestListener(){}
virtual void contextProgress(long long int current, long long int max){};
virtual bool contextSslClientCertPwPrompt (QString &,const QString &, bool &){return false;}
virtual bool contextLoadSslClientCertPw(QString&,const QString&){return false;}
virtual bool contextSslClientCertPrompt (QString &){return false;}
virtual svn::ContextListener::SslServerTrustAnswer
contextSslServerTrustPrompt (const SslServerTrustData &,
apr_uint32_t & ){return svn::ContextListener::SslServerTrustAnswer();}
virtual bool contextGetLogMessage (QString &,const svn::CommitItemList&){return false;}
virtual bool contextCancel(){return false;}
virtual void contextNotify (const svn_wc_notify_t *){}
virtual void contextNotify (const char *,svn_wc_notify_action_t,
svn_node_kind_t,
const char *,
svn_wc_notify_state_t,
svn_wc_notify_state_t,
svn_revnum_t){}
virtual bool contextGetSavedLogin (const QString & realm,QString & username,QString & password){return false;}
virtual bool contextGetCachedLogin (const QString & realm,QString & username,QString & password){return false;}
virtual bool contextGetLogin (const QString & realm,
QString & username,
QString & password,
bool & maySave){maySave=false;return false;}
};
#endif
|