File indexing completed on 2024-04-14 05:34:12

0001 /*
0002     SPDX-FileCopyrightText: 2010 Sebastian Doerner <sebastian@sebastian-doerner.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef PULLDIALOG_H
0008 #define PULLDIALOG_H
0009 
0010 #include <QDialog>
0011 #include <QHash>
0012 class QComboBox;
0013 class QDialogButtonBox;
0014 
0015 class PullDialog : public QDialog
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     explicit PullDialog(QWidget* parent = nullptr);
0021     QString source() const;
0022     QString remoteBranch() const;
0023 private:
0024     QDialogButtonBox *m_buttonBox;
0025     QComboBox * m_remoteComboBox;
0026     QComboBox * m_remoteBranchComboBox;
0027     QHash<QString, QStringList> m_remoteBranches;
0028 private Q_SLOTS:
0029     void remoteSelectionChanged(const QString& newRemote);
0030 };
0031 
0032 #endif // PULLDIALOG_H