File indexing completed on 2024-05-12 05:44:24
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2009 by Rajko Albrecht * 0003 * ral@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 THREADCONTEXTLISTENERDATA_H 0021 #define THREADCONTEXTLISTENERDATA_H 0022 0023 #include "svnqt/context_listener.h" 0024 0025 #include <QMutex> 0026 #include <QString> 0027 0028 /** 0029 @author Rajko Albrecht 0030 */ 0031 struct ThreadContextListenerData { 0032 ThreadContextListenerData() 0033 : noProgress(true) 0034 , bReturnValue(false) 0035 { 0036 } 0037 0038 /* sometimes suppress progress messages */ 0039 bool noProgress; 0040 0041 static QMutex *callbackMutex(); // only one callback at a time 0042 0043 /* safed due condition above */ 0044 /* this variables are for the event handling across threads */ 0045 bool bReturnValue; 0046 struct strust_answer { 0047 svn::ContextListener::SslServerTrustAnswer sslTrustAnswer; 0048 svn::ContextListener::SslServerTrustData trustdata; 0049 strust_answer() 0050 : sslTrustAnswer(svn::ContextListener::DONT_ACCEPT) 0051 { 0052 } 0053 } m_strust_answer; 0054 0055 /* login into server */ 0056 struct slogin_data { 0057 QString user, password, realm; 0058 bool maysave; 0059 slogin_data() 0060 : maysave(false) 0061 { 0062 } 0063 } m_slogin_data; 0064 0065 struct slog_message { 0066 QString msg; 0067 svn::CommitItemList items; 0068 } m_slog_message; 0069 0070 struct scert_pw { 0071 QString password, realm; 0072 bool maysave; 0073 scert_pw() 0074 : maysave(false) 0075 { 0076 } 0077 } m_scert_pw; 0078 0079 struct scert_file { 0080 QString certfile; 0081 } m_scert_file; 0082 }; 0083 0084 #endif