swift
githubpackagesreader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2020 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_CORE_GITHUBPACKAGESREADER_H
7 #define SWIFT_CORE_GITHUBPACKAGESREADER_H
8 
9 #include <QObject>
10 
11 #include "misc/db/updateinfo.h"
12 
13 namespace swift::core
14 {
18  class CGitHubPackagesReader : public QObject
19  {
20  Q_OBJECT
21 
22  public:
24  CGitHubPackagesReader(QObject *parent = nullptr);
25 
27  void readUpdateInfo();
28 
31 
32  signals:
34  void updateInfoAvailable(bool available);
35 
36  private:
38  };
39 } // namespace swift::core
40 
41 #endif // SWIFT_CORE_GITHUBPACKAGESREADER_H
Read available updates from GitHub Packages REST API.
void readUpdateInfo()
Read updates from GitHub Packages.
swift::misc::db::CUpdateInfo getUpdateInfo() const
Get updates cached from previous read.
CGitHubPackagesReader(QObject *parent=nullptr)
Constructor.
void updateInfoAvailable(bool available)
Updates have been received from GitHub Packages.
Update info, i.e. artifacts and distributions.
Definition: updateinfo.h:24
Backend services of the swift project, like dealing with the network or the simulators.
Definition: actionbind.cpp:7