File indexing completed on 2024-04-28 05:41:54
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2009 by Rajko Albrecht ral@alwins-world.de * 0003 * https://kde.org/applications/development/org.kde.kdesvn * 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 DBOVERVIEW_H 0021 #define DBOVERVIEW_H 0022 0023 #include "ksvndialog.h" 0024 #include <svnqt/client.h> 0025 0026 namespace Ui 0027 { 0028 class DBOverView; 0029 } 0030 class QItemSelection; 0031 class QStringListModel; 0032 0033 class DbOverview : public KSvnDialog 0034 { 0035 Q_OBJECT 0036 private: 0037 explicit DbOverview(const svn::ClientP &aClient, QWidget *parent = nullptr); 0038 ~DbOverview() override; 0039 0040 public: 0041 static void showDbOverview(const svn::ClientP &aClient, QWidget *parent = nullptr); 0042 0043 private Q_SLOTS: 0044 virtual void itemActivated(const QItemSelection &, const QItemSelection &); 0045 virtual void deleteCacheItems(); 0046 virtual void deleteRepository(); 0047 virtual void repositorySettings(); 0048 0049 protected: 0050 QString selectedRepository() const; 0051 void enableButtons(bool); 0052 void genInfo(const QString &); 0053 0054 private: 0055 svn::ClientP m_clientP; 0056 QStringListModel *m_repo_model; 0057 Ui::DBOverView *m_ui; 0058 }; 0059 0060 #endif