Made GitClient a Qt-Object.

This commit is contained in:
Gerhard Hoffmann 2023-07-14 13:10:55 +02:00
parent 9df425f5f8
commit aeae9002fe

View File

@ -1,15 +1,21 @@
#ifndef GIT_CLIENT_H_INCLUDED #ifndef GIT_CLIENT_H_INCLUDED
#define GIT_CLIENT_H_INCLUDED #define GIT_CLIENT_H_INCLUDED
#include <QObject>
#include <optional> #include <optional>
#include "process/command.h" #include "process/command.h"
class Worker;
class GitClient : public QObject {
Q_OBJECT
class GitClient { Worker *m_worker;
QString m_workingDirectory; QString const m_repositoryPath;
QString m_branchName; QString const m_customerId;
QString const m_workingDirectory;
QString const m_branchName;
QString const m_customerRepository;
std::optional<QString> gitCloneRepository(QString const &repPath); std::optional<QString> gitCloneRepository(QString const &repPath);
bool gitCheckout(QString const &branchName); bool gitCheckout(QString const &branchName);