Cdroid/apps/curldownload/main.cc

16 lines
366 B
C++
Executable File

#include <cdroid.h>
#include <string>
#include <cdlog.h>
#include <iostream>
#include <curl/curl.h>
#include <curldownload.h>
int main(int argc,const char*argv[]){
App app(argc,argv);
Window*w=new Window(0,0,-1,-1);
CurlDownloader dld;
CurlDownloader::ConnectionData cnn("https://www.baidu.com/");
dld.addConnection(&cnn);
return app.exec();
}