##// END OF EJS Templates
Really basic implementation of Downloader which might replace current...
Really basic implementation of Downloader which might replace current NetworkController It is currently really basic, it only does synchronous DLs with or without authentication. It is written to isolate as much as possible Qt Network classes. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1342:91cbf8a85daf
r1342:91cbf8a85daf
Show More
Response.h
25 lines | 453 B | text/x-c | CLexer
#ifndef RESPONSE_H
#define RESPONSE_H
#include <QByteArray>
#include <QString>
/**
* @brief The Response class holds a Network request response
*
*/
class Response
{
int _status_code;
QByteArray _data;
public:
Response(){}
Response(QByteArray data, int status_code)
:_status_code(status_code),_data(data)
{
}
int status_code(){return _status_code;}
QByteArray& data(){return _data;}
};
#endif // RESPONSE_H