File indexing completed on 2024-05-12 12:39:21
0001 /* 0002 SPDX-FileCopyrightText: 2016 Artur Puzio <cytadela88@gmail.com> 0003 SPDX-FileCopyrightText: 2016 Kevin Funk <kfunk@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KDEVPLATFORM_PLUGIN_GIT_NAMEEMAILDIALOG_H 0009 #define KDEVPLATFORM_PLUGIN_GIT_NAMEEMAILDIALOG_H 0010 0011 #include <QDialog> 0012 0013 namespace Ui { class GitNameEmailDialog; } 0014 0015 class GitNameEmailDialog : public QDialog 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit GitNameEmailDialog(QWidget *parent = nullptr); 0021 ~GitNameEmailDialog() override; 0022 0023 QString name() const; 0024 void setName(const QString& name); 0025 QString email() const; 0026 void setEmail(const QString& email); 0027 0028 bool isGlobal() const; 0029 0030 private Q_SLOTS: 0031 void updateUi(); 0032 0033 private: 0034 QScopedPointer<Ui::GitNameEmailDialog> ui; 0035 }; 0036 0037 #endif //KDEVPLATFORM_PLUGIN_GIT_NAMEEMAILDIALOG_H