6 #include <QNetworkAccessManager>
12 class JiraAgent : public QObject {
16 enum JobType {Undefined, GetTicketInfo};
18 static bool available();
24 void setJobType(JobType jt);
25 bool setBranch(BranchItem *bi);
26 bool setTicket(const QString &id);
35 void unknownStepWarning();
38 void jiraTicketReady(QJsonObject);
41 void startGetTicketRequest();
44 void ticketReceived(QNetworkReply *reply);
47 void sslErrors(QNetworkReply *, const QList<QSslError> &errors);
55 bool abortJob; // Flag to abort during initialization of job
58 QNetworkAccessManager *networkManager;
61 // Settings: Credentials to access JIRA
63 QString personalAccessTokenInt;
67 // Settings: Where to find JIRA and which ticket
69 QString serverNameInt;
74 // Backreferences to take action in calling model