Changeset View
Changeset View
Standalone View
Standalone View
providers/ghprovider/ghresource.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
78 | * This method will eventually emit the authenticated signal. | 78 | * This method will eventually emit the authenticated signal. | ||
79 | * | 79 | * | ||
80 | * @param name The username of the current user. | 80 | * @param name The username of the current user. | ||
81 | * @param password The password used to login the current user. | 81 | * @param password The password used to login the current user. | ||
82 | */ | 82 | */ | ||
83 | void authenticate(const QString &name, const QString &password); | 83 | void authenticate(const QString &name, const QString &password); | ||
84 | 84 | | |||
85 | /** | 85 | /** | ||
86 | * Authenticate the current user with the two factor authentication code. | ||||
87 | * Must be called after a call to authenticate. | ||||
88 | * | ||||
89 | * @param code The two factor authentication code. | ||||
90 | */ | ||||
91 | void twoFactorAuthenticate(const QString &transferHeader, const QString &code); | ||||
92 | | ||||
93 | /** | ||||
86 | * Revoke an access to the Github API (a.k.a. log out the current user). | 94 | * Revoke an access to the Github API (a.k.a. log out the current user). | ||
87 | * | 95 | * | ||
88 | * @param id The id of the currently valid authorization. | 96 | * @param id The id of the currently valid authorization. | ||
89 | * @param name The name of the current user. | 97 | * @param name The name of the current user. | ||
90 | * @param password The Github API requires the password again to perform | 98 | * @param password The Github API requires the password again to perform | ||
91 | * this action. | 99 | * this action. | ||
92 | */ | 100 | */ | ||
93 | void revokeAccess(const QString &id, const QString &name, const QString &password); | 101 | void revokeAccess(const QString &id, const QString &name, const QString &password); | ||
Show All 33 Lines | 128 | Q_SIGNALS: | |||
127 | * @param token The authorization token (e.g. "14bf8e87e2ec5fe30f8a6755bda63b5bc4d02e22"). | 135 | * @param token The authorization token (e.g. "14bf8e87e2ec5fe30f8a6755bda63b5bc4d02e22"). | ||
128 | * Empty if something went wrong. | 136 | * Empty if something went wrong. | ||
129 | * @param tokenName The authorization token (e.g. "KDevelop Github Provider : machinename - Thu Nov 17 23:18:03 2016 GMT"). | 137 | * @param tokenName The authorization token (e.g. "KDevelop Github Provider : machinename - Thu Nov 17 23:18:03 2016 GMT"). | ||
130 | * Empty if something went wrong. | 138 | * Empty if something went wrong. | ||
131 | */ | 139 | */ | ||
132 | void authenticated(const QByteArray &id, const QByteArray &token, const QString &tokenName); | 140 | void authenticated(const QByteArray &id, const QByteArray &token, const QString &tokenName); | ||
133 | 141 | | |||
134 | /** | 142 | /** | ||
143 | * This signal is sent if two factor authentication is requested by GitHub. | ||||
144 | */ | ||||
145 | void twoFactorAuthRequested(const QString &transferHeader); | ||||
146 | | ||||
147 | /** | ||||
135 | * This signal is emitted when the model containing repos has | 148 | * This signal is emitted when the model containing repos has | ||
136 | * been updated. | 149 | * been updated. | ||
137 | */ | 150 | */ | ||
kfunk: Rename: `twoFactorRequested` -> `twoFactorAuthRequested` | |||||
138 | void reposUpdated(); | 151 | void reposUpdated(); | ||
139 | 152 | | |||
140 | /** | 153 | /** | ||
141 | * This signal is fired when the list of organizations for the current | 154 | * This signal is fired when the list of organizations for the current | ||
142 | * user has been updated. | 155 | * user has been updated. | ||
143 | * | 156 | * | ||
144 | * @param orgs A list of the names of the organizations. | 157 | * @param orgs A list of the names of the organizations. | ||
145 | */ | 158 | */ | ||
Show All 36 Lines |
Rename: twoFactorRequested -> twoFactorAuthRequested