mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +00:00
Applications: Remove unused/unfinished "Downloader" program
This commit is contained in:
parent
8f9a522c37
commit
5d8324f133
4 changed files with 0 additions and 40 deletions
|
@ -1,8 +0,0 @@
|
|||
include ../../Makefile.common
|
||||
|
||||
OBJS = \
|
||||
main.o
|
||||
|
||||
APP = Downloader
|
||||
|
||||
include ../Makefile.common
|
|
@ -1,29 +0,0 @@
|
|||
#include <LibCore/CHttpRequest.h>
|
||||
#include <LibCore/CHttpResponse.h>
|
||||
#include <LibCore/CNetworkJob.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
GApplication app(argc, argv);
|
||||
|
||||
CHttpRequest request;
|
||||
request.set_url("http://www.google.com/");
|
||||
|
||||
auto job = request.schedule();
|
||||
job->on_finish = [&job](bool success) {
|
||||
if (!success) {
|
||||
dbgprintf("on_finish: request failed :(\n");
|
||||
return;
|
||||
}
|
||||
auto& response = static_cast<const CHttpResponse&>(*job->response());
|
||||
printf("%s{%p}: on_receive: code=%d\n", job->class_name(), job.ptr(), response.code());
|
||||
//printf("payload:\n");
|
||||
//printf("%s", response.payload().data());
|
||||
printf("payload was %d bytes\n", response.payload().size());
|
||||
};
|
||||
|
||||
printf("Entering main loop...\n");
|
||||
return app.exec();
|
||||
}
|
|
@ -72,7 +72,6 @@ echo "done"
|
|||
|
||||
printf "installing applications... "
|
||||
cp ../Applications/About/About mnt/bin/About
|
||||
cp ../Applications/Downloader/Downloader mnt/bin/Downloader
|
||||
cp ../Applications/FileManager/FileManager mnt/bin/FileManager
|
||||
cp ../Applications/FontEditor/FontEditor mnt/bin/FontEditor
|
||||
cp ../Applications/IRCClient/IRCClient mnt/bin/IRCClient
|
||||
|
@ -112,7 +111,6 @@ cp ../Shell/Shell mnt/bin/Shell
|
|||
echo "done"
|
||||
|
||||
printf "installing shortcuts... "
|
||||
ln -s Downloader mnt/bin/dl
|
||||
ln -s FileManager mnt/bin/fm
|
||||
ln -s HelloWorld mnt/bin/hw
|
||||
ln -s HelloWorld2 mnt/bin/hw2
|
||||
|
|
|
@ -47,7 +47,6 @@ build_targets="$build_targets ../Applications/About"
|
|||
build_targets="$build_targets ../Applications/Calculator"
|
||||
build_targets="$build_targets ../Applications/ChanViewer"
|
||||
build_targets="$build_targets ../Applications/DisplayProperties"
|
||||
build_targets="$build_targets ../Applications/Downloader"
|
||||
build_targets="$build_targets ../Applications/FileManager"
|
||||
build_targets="$build_targets ../Applications/FontEditor"
|
||||
build_targets="$build_targets ../Applications/IRCClient"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue