3 This file is part of libmsphttp
4 Copyright © 2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
8 #ifndef MSP_HTTP_CLIENT_H_
9 #define MSP_HTTP_CLIENT_H_
12 #include <sigc++/signal.h>
13 #include <msp/io/eventdispatcher.h>
14 #include <msp/net/streamsocket.h>
25 Net::StreamSocket *sock;
26 IO::EventDispatcher *event_disp;
32 sigc::signal<void, const Response &> signal_response_complete;
33 sigc::signal<void, int> signal_socket_error;
36 Client(const Client &);
37 Client &operator=(const Client &);
42 void use_event_dispatcher(IO::EventDispatcher *);
43 void start_request(const Request &);
44 void get_url(const std::string &);
48 const Request *get_request() const { return request; }
49 const Response *get_response() const { return response; }
51 void connect_finished(int);
52 void data_available();