File indexing completed on 2025-01-05 05:14:50

0001 /*
0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com>
0003 
0004 SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "appdialog.h"
0010 #include "libkommitwidgets_export.h"
0011 #include "ui_submoduleinfodialog.h"
0012 
0013 namespace Git
0014 {
0015 class AddSubmoduleCommand;
0016 class Manager;
0017 }
0018 class LIBKOMMITWIDGETS_EXPORT SubmoduleInfoDialog : public AppDialog, private Ui::SubmoduleInfoDialog
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit SubmoduleInfoDialog(Git::Manager *git, QWidget *parent = nullptr);
0024 
0025     Q_REQUIRED_RESULT bool force() const;
0026     void setForce(bool newForce);
0027 
0028     Q_REQUIRED_RESULT QString url() const;
0029     void setUrl(const QString &newUrl);
0030 
0031     Q_REQUIRED_RESULT QString path() const;
0032     void setPath(const QString &newPath);
0033 
0034     Q_REQUIRED_RESULT QString branch() const;
0035     void setBranch(const QString &newBranch);
0036 
0037     Q_REQUIRED_RESULT Git::AddSubmoduleCommand *command() const;
0038 
0039 private Q_SLOTS:
0040     void slotLineEditPathUrlSelected(const QUrl &url);
0041 };