Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /******************************************************************* |
---|---|
2 | * findconfigdatajob.h |
3 | * Copyright 2011 Matthias Fuchs <mat69@gmx.net> |
4 | * |
5 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License as |
7 | * published by the Free Software Foundation; either version 2 of |
8 | * the License, or (at your option) any later version. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | * |
18 | ******************************************************************/ |
19 | |
20 | #ifndef DRKONQI_FIND_VERSIONS_JOB_H |
21 | #define DRKONQI_FIND_VERSIONS_JOB_H |
22 | |
23 | #include <QtCore/QStringList> |
24 | |
25 | #include <KJob> |
26 | #include <KUrl> |
27 | |
28 | namespace KIO { |
29 | class StoredTransferJob; |
30 | } |
31 | |
32 | /** |
33 | * This job downloads config.cgi for a specified product, |
34 | * looking for the information you want to retrieve |
35 | */ |
36 | class FindConfigDataJob : public KJob |
37 | { |
38 | Q_OBJECT |
39 | public: |
40 | /** |
41 | * @param productName e.g. "plasma" |
42 | * @param bugtrackerBaseUrl e.g. "https://bugs.kde.org" |
43 | */ |
44 | explicit FindConfigDataJob(const QString &productName, const KUrl &bugtrackerBaseUrl, QObject *parent = 0); |
45 | virtual ~FindConfigDataJob(); |
46 | |
47 | virtual void start(); |
48 | virtual QString errorString() const; |
49 | |
50 | enum InformationType { |
51 | Version |
52 | }; |
53 | |
54 | /** |
55 | * Call this after the job finished to retrieve the |
56 | * specified data |
57 | */ |
58 | QStringList data(InformationType type); |
59 | |
60 | private slots: |
61 | void receivedData(KJob *job); |
62 | |
63 | private: |
64 | KIO::StoredTransferJob *m_job; |
65 | KUrl m_url; |
66 | QString m_data; |
67 | QString m_errorString; |
68 | }; |
69 | |
70 | #endif |
71 |
Warning: That file was not part of the compilation database. It may have many parsing errors.