File indexing completed on 2024-06-16 04:24:03

0001 /*
0002     SPDX-FileCopyrightText: 2007 Robert Gruber <rgruber@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de>
0004 
0005     Adapted for Git
0006     SPDX-FileCopyrightText: 2008 Evgeniy Ivanov <powerfox@kde.ru>
0007 
0008     Pimpl-ed and exported
0009     SPDX-FileCopyrightText: 2014 Maciej Poleski
0010 
0011     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0012 */
0013 
0014 #ifndef KDEVPLATFORM_DVCSIMPORTMETADATAWIDGET_H
0015 #define KDEVPLATFORM_DVCSIMPORTMETADATAWIDGET_H
0016 
0017 #include <vcs/widgets/vcsimportmetadatawidget.h>
0018 
0019 namespace Ui {
0020 class DvcsImportMetadataWidget;
0021 }
0022 
0023 class DvcsImportMetadataWidgetPrivate;
0024 
0025 /**
0026  * Asks the user for all options needed to import an existing directory into
0027  * a Git repository
0028  * @author Robert Gruber <rgruber@users.sourceforge.net>
0029  */
0030 class KDEVPLATFORMVCS_EXPORT DvcsImportMetadataWidget : public KDevelop::VcsImportMetadataWidget
0031 {
0032     Q_OBJECT
0033     Q_DECLARE_PRIVATE(DvcsImportMetadataWidget)
0034     
0035 public:
0036     explicit DvcsImportMetadataWidget(QWidget* parent=nullptr);
0037     ~DvcsImportMetadataWidget() override;
0038 
0039     QUrl source() const override;
0040     KDevelop::VcsLocation destination() const override;
0041     QString message() const override; //Is not used, it returns an empty string
0042     void setSourceLocation( const KDevelop::VcsLocation& ) override;
0043     void setSourceLocationEditable( bool ) override;
0044     void setMessage(const QString& message) override;
0045     bool hasValidData() const override;
0046 
0047 private:
0048     DvcsImportMetadataWidgetPrivate *const d_ptr;
0049 };
0050 
0051 #endif