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 sigc::signal<void, const Response &> signal_response_complete;
26 sigc::signal<void, int> signal_socket_error;
29 Net::StreamSocket *sock;
30 IO::EventDispatcher *event_disp;
35 Client(const Client &);
36 Client &operator=(const Client &);
41 void use_event_dispatcher(IO::EventDispatcher *);
42 void start_request(const Request &);
43 const Response *get_url(const std::string &);
47 const Request *get_request() const { return request; }
48 const Response *get_response() const { return response; }
50 void connect_finished(int);
51 void data_available();