src/network/newgrf_download.h
author Tero Marttila <terom@fixme.fi>
Tue, 22 Jul 2008 22:55:50 +0300
changeset 11182 22f2cfb1f1f0
parent 11181 403550141f43
permissions -rw-r--r--
change the value of NETWORK_NEWGRF_MASTER_API
11174
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
/* $Id$ */
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
/** @file newgrf_download.h Functions to download NewGRFs. */
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     5
#ifndef NEWGRF_DOWNLOAD_H
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     6
#define NEWGRF_DOWNLOAD_H
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     8
#include "../newgrf_config.h"
11181
403550141f43 fix the error reporting for DOWNLOAD_AVAILABLE, and change NewGRFDownload to take a NetworkGameInfo instead of the GRFConfig** - it updates the compatible/not compatible state.
Tero Marttila <terom@fixme.fi>
parents: 11178
diff changeset
     9
#include "core/game.h"
11174
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    10
11178
aa617a8b4f34 a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents: 11174
diff changeset
    11
// URL to the Master NewGRF database API
11182
22f2cfb1f1f0 change the value of NETWORK_NEWGRF_MASTER_API
Tero Marttila <terom@fixme.fi>
parents: 11181
diff changeset
    12
#define NETWORK_NEWGRF_MASTER_API "http://skrblz.fixme.fi:8182/openttd-api/%s"
11178
aa617a8b4f34 a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents: 11174
diff changeset
    13
aa617a8b4f34 a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents: 11174
diff changeset
    14
// our HTTP User-Agent :)
aa617a8b4f34 a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents: 11174
diff changeset
    15
#define NETWORK_HTTP_USER_AGENT "OpenTTD (%s)"
aa617a8b4f34 a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents: 11174
diff changeset
    16
11174
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    17
/* In newgrf_download.cpp */
11181
403550141f43 fix the error reporting for DOWNLOAD_AVAILABLE, and change NewGRFDownload to take a NetworkGameInfo instead of the GRFConfig** - it updates the compatible/not compatible state.
Tero Marttila <terom@fixme.fi>
parents: 11178
diff changeset
    18
void ShowNewGRFDownload(struct NetworkGameInfo *info);
11174
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    19
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    20
#endif /* NEWGRF_DOWNLOAD_H */
b29402c54ffe create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    21