mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
ProtocolServer: Put everything in the ProtocolServer namespace
This commit is contained in:
parent
2949c3e5e1
commit
a4902e0eec
21 changed files with 158 additions and 56 deletions
|
@ -26,12 +26,14 @@
|
|||
|
||||
#include <AK/Badge.h>
|
||||
#include <ProtocolServer/Download.h>
|
||||
#include <ProtocolServer/PSClientConnection.h>
|
||||
#include <ProtocolServer/ClientConnection.h>
|
||||
|
||||
namespace ProtocolServer {
|
||||
|
||||
// FIXME: What about rollover?
|
||||
static i32 s_next_id = 1;
|
||||
|
||||
Download::Download(PSClientConnection& client)
|
||||
Download::Download(ClientConnection& client)
|
||||
: m_client(client)
|
||||
, m_id(s_next_id++)
|
||||
{
|
||||
|
@ -68,3 +70,5 @@ void Download::did_progress(Optional<u32> total_size, u32 downloaded_size)
|
|||
m_downloaded_size = downloaded_size;
|
||||
m_client.did_progress_download({}, *this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue