summaryrefslogtreecommitdiff
path: root/src/network/network_content.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-03 17:15:35 +0000
committerrubidium <rubidium@openttd.org>2010-02-03 17:15:35 +0000
commite437362c7babbdc4d4dff812e88b77bb521be6c5 (patch)
treeed76e575c516952e96951e2fedd17e61cd889987 /src/network/network_content.h
parent589aee0cee8fd72ff07fd2dc6043443e07097212 (diff)
downloadopenttd-e437362c7babbdc4d4dff812e88b77bb521be6c5.tar.xz
(svn r18992) -Codechange: move the file opening/closing out of the content download function
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r--src/network/network_content.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h
index ea2df4e39..0be0a80cf 100644
--- a/src/network/network_content.h
+++ b/src/network/network_content.h
@@ -88,6 +88,9 @@ protected:
void OnReceiveContentInfo(const ContentInfo *ci);
void OnDownloadProgress(const ContentInfo *ci, uint bytes);
void OnDownloadComplete(ContentID cid);
+
+ bool BeforeDownload();
+ void AfterDownload();
public:
/** The idle timeout; when to close the connection because it's idle. */
static const int IDLE_TIMEOUT = 60 * 1000;