File indexing completed on 2025-01-05 05:14:48
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 "abstractactions.h" 0010 #include "libkommitwidgets_export.h" 0011 0012 class LIBKOMMITWIDGETS_EXPORT RemotesActions : public AbstractActions 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit RemotesActions(Git::Manager *git, QWidget *parent = nullptr); 0018 0019 Q_REQUIRED_RESULT const QString &remoteName() const; 0020 void setRemoteName(const QString &newRemoteName); 0021 0022 private: 0023 void create(); 0024 void remove(); 0025 void changeUrl(); 0026 void rename(); 0027 void update(); 0028 DEFINE_ACTION(actionCreate) 0029 DEFINE_ACTION(actionRemove) 0030 DEFINE_ACTION(actionRename) 0031 DEFINE_ACTION(actionUpdate) 0032 DEFINE_ACTION(actionChangeUrl) 0033 QString mRemoteName; 0034 };