File indexing completed on 2024-05-05 17:50:47
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2009 by Rajko Albrecht ral@alwins-world.de * 0003 * http://kdesvn.alwins-world.de/ * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0019 ***************************************************************************/ 0020 #ifndef KDESVND_LISTENER_H 0021 #define KDESVND_LISTENER_H 0022 0023 #include "svnqt/context_listener.h" 0024 0025 class kdesvnd; 0026 0027 class KdesvndListener: public svn::ContextListener 0028 { 0029 friend class kdesvnd; 0030 0031 kdesvnd *m_back; 0032 public: 0033 explicit KdesvndListener(kdesvnd *p); 0034 virtual ~KdesvndListener(); 0035 /* context-listener methods */ 0036 bool contextGetLogin(const QString &realm, 0037 QString &username, 0038 QString &password, 0039 bool &maySave) override; 0040 bool contextGetSavedLogin(const QString &realm, QString &username, QString &password) override; 0041 bool contextGetCachedLogin(const QString &realm, QString &username, QString &password) override; 0042 0043 void contextNotify(const char *path, 0044 svn_wc_notify_action_t action, 0045 svn_node_kind_t kind, 0046 const char *mime_type, 0047 svn_wc_notify_state_t content_state, 0048 svn_wc_notify_state_t prop_state, 0049 svn_revnum_t revision) override; 0050 void contextNotify(const svn_wc_notify_t *action) override; 0051 0052 bool contextCancel() override; 0053 bool contextGetLogMessage(QString &msg, const svn::CommitItemList &) override; 0054 virtual svn::ContextListener::SslServerTrustAnswer 0055 contextSslServerTrustPrompt(const SslServerTrustData &data, 0056 apr_uint32_t &acceptedFailures) override; 0057 bool contextSslClientCertPrompt(QString &certFile) override; 0058 bool contextLoadSslClientCertPw(QString &password, const QString &realm) override; 0059 bool contextSslClientCertPwPrompt(QString &password, 0060 const QString &realm, bool &maySave) override; 0061 void contextProgress(long long int current, long long int max) override; 0062 0063 /* context listener virtuals end */ 0064 0065 protected: 0066 svn::ContextP m_CurrentContext; 0067 svn::ClientP m_Svnclient; 0068 }; 0069 0070 #endif