forked from qt-creator/qt-creator
Gerrit: Determine server by git remote
Currently SSH only. Change-Id: Ic29ca20e4c63cb5c692e9dc196ba205f0cbc9c6f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c317114591
commit
34504ad797
@@ -35,6 +35,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
class GerritServer;
|
||||
class GerritParameters;
|
||||
class QueryContext;
|
||||
|
||||
@@ -67,7 +68,7 @@ class GerritChange
|
||||
public:
|
||||
bool isValid() const { return number && !url.isEmpty() && !project.isEmpty(); }
|
||||
QString filterString() const;
|
||||
QStringList gitFetchArguments(const QSharedPointer<GerritParameters> &p) const;
|
||||
QStringList gitFetchArguments(const GerritServer &server) const;
|
||||
|
||||
QString url;
|
||||
int number = 0;
|
||||
@@ -119,7 +120,7 @@ public:
|
||||
enum QueryState { Idle, Running, Ok, Error };
|
||||
QueryState state() const { return m_state; }
|
||||
|
||||
void refresh(const QString &query);
|
||||
void refresh(const QSharedPointer<GerritServer> &server, const QString &query);
|
||||
|
||||
signals:
|
||||
void refreshStateChanged(bool isRefreshing); // For disabling the "Refresh" button.
|
||||
@@ -137,6 +138,7 @@ private:
|
||||
QList<QStandardItem *> changeToRow(const GerritChangePtr &c) const;
|
||||
|
||||
const QSharedPointer<GerritParameters> m_parameters;
|
||||
QSharedPointer<GerritServer> m_server;
|
||||
QueryContext *m_query = 0;
|
||||
QueryState m_state = Idle;
|
||||
QString m_userName;
|
||||
|
||||
Reference in New Issue
Block a user