CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlers
Using a dedicated callback object for this was an unnecessary overhead.
This commit is contained in:
parent
712410496e
commit
a1de322c18
20 changed files with 126 additions and 171 deletions
|
@ -33,6 +33,8 @@ DownloadFileHandler::DownloadFileHandler() {}
|
|||
|
||||
DownloadFileHandler::~DownloadFileHandler() {}
|
||||
|
||||
/// public
|
||||
|
||||
void DownloadFileHandler::handle(Client &client) {
|
||||
Common::String path = client.queryParameter("path");
|
||||
|
||||
|
@ -73,10 +75,4 @@ void DownloadFileHandler::handle(Client &client) {
|
|||
client.setHandler(handler);
|
||||
}
|
||||
|
||||
/// public
|
||||
|
||||
ClientHandlerCallback DownloadFileHandler::getHandler() {
|
||||
return new Common::Callback<DownloadFileHandler, Client &>(this, &DownloadFileHandler::handle);
|
||||
}
|
||||
|
||||
} // End of namespace Networking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue