6#ifndef ATLASGAMEMANAGER_ATLASREMOTE_HPP
7#define ATLASGAMEMANAGER_ATLASREMOTE_HPP
9#include <QNetworkReply>
29 void markComplete(
const std::uint64_t update_time,
const bool yes =
true );
32 std::vector< std::pair< std::uint64_t, std::uint64_t > >
getUpdatesList()
const;
Manages all remote connections to the Atlas remote server.
Definition AtlasRemote.hpp:20
void markComplete(const std::uint64_t update_time, const bool yes=true)
Definition AtlasRemote.cpp:396
QThread m_thread
Definition AtlasRemote.hpp:23
void downloadManifest()
Definition AtlasRemote.cpp:76
void handleManifestError(QNetworkReply::NetworkError error, QNetworkReply *reply)
Definition AtlasRemote.cpp:409
void handleJsonResponse(QNetworkReply *reply)
Handles manifest requests from the server.
Definition AtlasRemote.cpp:157
std::uint64_t getNextUpdateTime() const
Returns the next update to process. Returns 0 if no updates to process.
Definition AtlasRemote.cpp:245
void check()
Causes the remote to go through a full check. Asking for new updates and processing them.
Definition AtlasRemote.cpp:71
void triggerCheckRemote()
Definition AtlasRemote.cpp:66
QNetworkAccessManager m_manager
Definition AtlasRemote.hpp:24
void triggerParseFor(const std::uint64_t timestamp)
void checkRemoteSignal()
Emitted when the remote should be checked.
void handleDownloadError(QNetworkReply::NetworkError error, QNetworkReply *reply)
Definition AtlasRemote.cpp:489
std::vector< std::pair< std::uint64_t, std::uint64_t > > getUpdatesList() const
Returns a list of all updates.
Definition AtlasRemote.cpp:235
void triggerDownloadFor(const std::uint64_t timestamp)
Asks the remote to download the timestamp file.
AtlasRemote()
Definition AtlasRemote.cpp:55
void processUpdateFile(const std::uint64_t update_time)
Updates the local DB with the updates available.
Definition AtlasRemote.cpp:299
void downloadUpdate(const std::uint64_t update_time)
Definition AtlasRemote.cpp:135
void handleDownloader(QNetworkReply *reply)
Handles download responses from the remote.
Definition AtlasRemote.cpp:100
void processPendingUpdates()
Definition AtlasRemote.cpp:375
AtlasRemote & atlasRemote()
Definition AtlasRemote.cpp:48
void shutdownRemoteHandler()
Definition AtlasRemote.cpp:43
void initRemoteHandler()
Definition AtlasRemote.cpp:36