mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07:44 +00:00
Start working on a Downloader app and backing classes in LibGUI.
LibGUI is slowly becoming LibKitchensink but I'm okay with this for now.
This commit is contained in:
parent
c7365a00f8
commit
8f30657390
21 changed files with 375 additions and 1 deletions
20
LibGUI/GHttpNetworkJob.h
Normal file
20
LibGUI/GHttpNetworkJob.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GNetworkJob.h>
|
||||
#include <LibGUI/GHttpRequest.h>
|
||||
|
||||
class GTCPSocket;
|
||||
|
||||
class GHttpNetworkJob final : public GNetworkJob {
|
||||
public:
|
||||
explicit GHttpNetworkJob(const GHttpRequest&);
|
||||
virtual ~GHttpNetworkJob() override;
|
||||
|
||||
virtual void start() override;
|
||||
|
||||
virtual const char* class_name() const override { return "GHttpNetworkJob"; }
|
||||
|
||||
private:
|
||||
GHttpRequest m_request;
|
||||
GTCPSocket* m_socket { nullptr };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue