1
0
Fork 0
flightgear/src/Network/http/ScreenshotUriHandler.hxx

41 lines
1.4 KiB
C++
Raw Normal View History

2014-03-03 21:59:16 +01:00
// ScreenshotUriHandler.hxx -- Provide screenshots via http
2001-08-21 21:19:42 +00:00
//
2014-03-03 21:59:16 +01:00
// Written by Torsten Dreyer, started April 2014.
2001-08-21 21:19:42 +00:00
//
2014-03-03 21:59:16 +01:00
// Copyright (C) 2014 Torsten Dreyer
2001-08-21 21:19:42 +00:00
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
2006-02-21 01:16:04 +00:00
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2001-08-21 21:19:42 +00:00
2014-03-03 21:59:16 +01:00
#ifndef __FG_SCREENSHOT_URI_HANDLER_HXX
#define __FG_SCREENSHOT_URI_HANDLER_HXX
2001-08-21 21:19:42 +00:00
2014-03-03 21:59:16 +01:00
#include "urihandler.hxx"
2001-08-21 21:19:42 +00:00
2014-03-03 21:59:16 +01:00
namespace flightgear {
namespace http {
2001-08-21 21:19:42 +00:00
2014-03-03 21:59:16 +01:00
class ScreenshotUriHandler : public URIHandler {
public:
ScreenshotUriHandler( const char * uri = "/screenshot/" );
~ScreenshotUriHandler();
virtual bool handleGetRequest( const HTTPRequest & request, HTTPResponse & response, Connection * connection );
virtual bool poll( Connection * connection );
2001-08-21 21:19:42 +00:00
};
2014-03-03 21:59:16 +01:00
} // namespace http
} // namespace flightgear
#endif //#define __FG_SCREENSHOT_URI_HANDLER_HXX