Skip to content
This repository
tree: a91c8758c4
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (39 sloc) 1.97 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
/************************************************************************/
/* */
/* This file is part of VDrift. */
/* */
/* VDrift 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 3 of the License, or */
/* (at your option) any later version. */
/* */
/* VDrift 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 VDrift. If not, see <http://www.gnu.org/licenses/>. */
/* */
/************************************************************************/

#ifndef _GAMEDOWNLOADER_H
#define _GAMEDOWNLOADER_H

#include <string>
#include <vector>

class GAME;
class HTTP;

// a functor class to allow classes below the game class' hierarchy to download items using
// the full game-class functionality
class GAME_DOWNLOADER
{
public:
GAME_DOWNLOADER(GAME & gameref, const HTTP & httpref) : game(gameref), http(httpref) {}

// the implementation for these is in game.cpp
bool operator()(const std::string & file);
bool operator()(const std::vector <std::string> & files);
const HTTP & GetHttp() const {return http;}

private:
GAME & game;
const HTTP & http;
};

#endif
Something went wrong with that request. Please try again.