dbhub: Allow pushing to other user accounts to which you have access

This adds a new row to the Push dialog in which you can set the user
name in case you want to push to a different account.
This commit is contained in:
Martin Kleusberg
2020-08-30 21:32:11 +02:00
parent 8c12ee01ae
commit dfc7645079
6 changed files with 91 additions and 23 deletions

View File

@@ -46,7 +46,8 @@ public:
RequestTypeDownload,
};
void fetch(const QUrl& url, RequestType type, const QString& clientCert = QString(), std::function<void(QByteArray)> when_finished = {}, bool synchronous = false);
void fetch(const QUrl& url, RequestType type, const QString& clientCert = QString(),
std::function<void(QByteArray)> when_finished = {}, bool synchronous = false, bool ignore_errors = false);
void push(const QString& filename, const QUrl& url, const QString& clientCert, const QString& remotename,
const QString& commitMessage = QString(), const QString& licence = QString(), bool isPublic = false,
const QString& branch = QString("master"), bool forcePush = false, const QString& last_commit = QString());