Changeset View
Changeset View
Standalone View
Standalone View
src/core/job.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 83 | public: | |||
---|---|---|---|---|---|
95 | * @param account Account to use to authenticate the requests send by this job | 95 | * @param account Account to use to authenticate the requests send by this job | ||
96 | * @param parent | 96 | * @param parent | ||
97 | * @see Job::Account, Job::setAccount | 97 | * @see Job::Account, Job::setAccount | ||
98 | */ | 98 | */ | ||
99 | explicit Job(const AccountPtr &account, QObject* parent = nullptr); | 99 | explicit Job(const AccountPtr &account, QObject* parent = nullptr); | ||
100 | 100 | | |||
101 | struct StandardParams { | 101 | struct StandardParams { | ||
102 | static const QString PrettyPrint; | 102 | static const QString PrettyPrint; | ||
103 | static const QString Fields; | ||||
103 | }; | 104 | }; | ||
104 | 105 | | |||
105 | /** | 106 | /** | ||
106 | * @brief Destructor | 107 | * @brief Destructor | ||
107 | */ | 108 | */ | ||
108 | ~Job() override; | 109 | ~Job() override; | ||
109 | 110 | | |||
110 | /** | 111 | /** | ||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
198 | /** | 199 | /** | ||
199 | * @brief Returns prettyPrint query parameter. | 200 | * @brief Returns prettyPrint query parameter. | ||
200 | * | 201 | * | ||
201 | * @return prettyPrint query parameter | 202 | * @return prettyPrint query parameter | ||
202 | */ | 203 | */ | ||
203 | bool prettyPrint() const; | 204 | bool prettyPrint() const; | ||
204 | 205 | | |||
205 | /** | 206 | /** | ||
207 | * @brief Set subset of fields to include in the response. | ||||
208 | * | ||||
209 | * Use for better performance. | ||||
210 | * | ||||
211 | * @param fields List of fields | ||||
212 | */ | ||||
213 | void setFields(const QStringList &fields); | ||||
214 | | ||||
215 | static QString buildSubfields(const QString &field, const QStringList &fields); | ||||
216 | | ||||
217 | /** | ||||
218 | * @brief Returns fields selector. | ||||
219 | * | ||||
220 | * @return List of fields | ||||
221 | */ | ||||
222 | QStringList fields() const; | ||||
223 | | ||||
224 | /** | ||||
206 | * @brief Restarts this job | 225 | * @brief Restarts this job | ||
207 | * | 226 | * | ||
208 | * When a job finishes, it's possible to run it again, without having | 227 | * When a job finishes, it's possible to run it again, without having | ||
209 | * to create a new job. | 228 | * to create a new job. | ||
210 | * | 229 | * | ||
211 | * The job will throw away all results retrieved in previous run and retrieve | 230 | * The job will throw away all results retrieved in previous run and retrieve | ||
212 | * everything again. | 231 | * everything again. | ||
213 | * | 232 | * | ||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |