Allow compiling without the network module

This commit is contained in:
GriffinR
2025-08-07 15:02:02 -04:00
parent 6f4f393a88
commit e6a20c76bb
7 changed files with 34 additions and 3 deletions

View File

@@ -26,10 +26,14 @@
});
*/
#if __has_include(<QNetworkAccessManager>)
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QDateTime>
#endif
#ifdef QT_NETWORK_LIB
class NetworkReplyData : public QObject
{
@@ -84,4 +88,6 @@ private:
const QNetworkRequest getRequest(const QUrl &url);
};
#endif // QT_NETWORK_LIB
#endif // NETWORK_H