forked from qt-creator/qt-creator
GitLab: Allow browsing and cloning projects
Change-Id: I1cc877ea6b5a55ae7bdb8e7a529afeb08d09e0c0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -38,15 +38,23 @@ class Query
|
||||
public:
|
||||
enum Type {
|
||||
NoQuery,
|
||||
Project
|
||||
User,
|
||||
Project,
|
||||
Projects
|
||||
};
|
||||
|
||||
explicit Query(Type type, const QStringList ¶meters = {});
|
||||
void setPageParameter(int page);
|
||||
void setAdditionalParameters(const QStringList &additional);
|
||||
bool hasPaginatedResults() const;
|
||||
Type type() const { return m_type; }
|
||||
QString toString() const;
|
||||
|
||||
private:
|
||||
Type m_type = NoQuery;
|
||||
QStringList m_parameter;
|
||||
QStringList m_additionalParameters;
|
||||
int m_pageParameter = -1;
|
||||
};
|
||||
|
||||
class QueryRunner : public QObject
|
||||
@@ -70,6 +78,7 @@ private:
|
||||
|
||||
Utils::QtcProcess m_process;
|
||||
bool m_running = false;
|
||||
bool m_paginated = false;
|
||||
};
|
||||
|
||||
} // namespace GitLab
|
||||
|
||||
Reference in New Issue
Block a user