source: calamares/trunk/fuentes/src/modules/tracking/TrackingJobs.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.6 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2017, Adriaan de Groot <groot@kde..org>
4 *
5 *   Calamares is free software: you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, either version 3 of the License, or
8 *   (at your option) any later version.
9 *
10 *   Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef TRACKINGJOBS
20#define TRACKINGJOBS
21
22#include "Job.h"
23
24class QNetworkAccessManager;
25class QNetworkReply;
26class QSemaphore;
27
28class TrackingInstallJob : public Calamares::Job
29{
30    Q_OBJECT
31public:
32    TrackingInstallJob( const QString& url );
33    ~TrackingInstallJob() override;
34
35    QString prettyName() const override;
36    QString prettyDescription() const override;
37    QString prettyStatusMessage() const override;
38    Calamares::JobResult exec() override;
39
40public slots:
41    void dataIsHere( QNetworkReply* );
42
43private:
44    const QString m_url;
45
46    QNetworkAccessManager* m_networkManager;
47};
48
49class TrackingMachineNeonJob : public Calamares::Job
50{
51    Q_OBJECT
52public:
53    QString prettyName() const override;
54    QString prettyDescription() const override;
55    QString prettyStatusMessage() const override;
56    Calamares::JobResult exec() override;
57};
58
59
60#endif
Note: See TracBrowser for help on using the repository browser.