]> git.mxchange.org Git - flightgear.git/blob - src/Network/jpg-httpd.hxx
Update image-server logic.
[flightgear.git] / src / Network / jpg-httpd.hxx
1 // jpg-httpd.hxx -- FGFS jpg-http interface
2 //
3 // Written by Curtis Olson, started June 2001.
4 //
5 // Copyright (C) 2001  Curtis L. Olson - http://www.flightgear.org/~curt
6 //
7 // Jpeg Image Support added August 2001
8 //  by Norman Vine - nhv@cape.com
9 //
10 // This program is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License as
12 // published by the Free Software Foundation; either version 2 of the
13 // License, or (at your option) any later version.
14 //
15 // This program is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 // General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23 //
24 // $Id$
25
26 #ifndef _FG_JPEG_HTTPD_HXX
27 #define _FG_JPEG_HTTPD_HXX
28
29 #include <memory> // for auto_ptr
30 #include <string>
31
32 #include "protocol.hxx"
33
34 // forward decls
35 class HttpdThread;
36
37 class FGJpegHttpd : public FGProtocol
38 {
39     std::auto_ptr<HttpdThread> _imageServer;
40
41 public:
42     FGJpegHttpd( int p, int hz, const std::string& type );
43     ~FGJpegHttpd();
44
45     bool open();
46     bool process();
47     bool close();
48 };
49
50 #endif // _FG_JPEG_HTTPD_HXX