aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llxfer_vfile.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llmessage/llxfer_vfile.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llxfer_vfile.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llxfer_vfile.h b/linden/indra/llmessage/llxfer_vfile.h
new file mode 100644
index 0000000..51b64db
--- /dev/null
+++ b/linden/indra/llmessage/llxfer_vfile.h
@@ -0,0 +1,93 @@
1/**
2 * @file llxfer_vfile.h
3 * @brief definition of LLXfer_VFile class for a single xfer_vfile.
4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 *
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLXFER_VFILE_H
29#define LL_LLXFER_VFILE_H
30
31#include <stdio.h>
32
33#include "llxfer.h"
34#include "llassetstorage.h"
35
36class LLVFS;
37class LLVFile;
38
39class LLXfer_VFile : public LLXfer
40{
41 protected:
42 LLUUID mLocalID;
43 LLUUID mRemoteID;
44 LLUUID mTempID;
45 LLAssetType::EType mType;
46
47 LLVFile *mVFile;
48
49 LLVFS *mVFS;
50
51 char mName[MAX_STRING]; /* Flawfinder : ignore */
52
53 public:
54 LLXfer_VFile ();
55 LLXfer_VFile (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type);
56 virtual ~LLXfer_VFile();
57
58 virtual void init(LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type);
59 virtual void free();
60
61 virtual S32 initializeRequest(U64 xfer_id,
62 LLVFS *vfs,
63 const LLUUID &local_id,
64 const LLUUID &remote_id,
65 const LLAssetType::EType type,
66 const LLHost &remote_host,
67 void (*callback)(void **,S32),
68 void **user_data);
69 virtual S32 startDownload();
70
71 virtual S32 processEOF();
72
73 virtual S32 startSend (U64 xfer_id, const LLHost &remote_host);
74
75 virtual S32 suck(S32 start_position);
76 virtual S32 flush();
77
78 virtual BOOL matchesLocalFile(const LLUUID &id, LLAssetType::EType type);
79 virtual BOOL matchesRemoteFile(const LLUUID &id, LLAssetType::EType type);
80
81 virtual void setXferSize(S32 xfer_size);
82 virtual S32 getMaxBufferSize();
83
84 virtual U32 getXferTypeTag();
85
86 virtual const char *getName();
87};
88
89#endif
90
91
92
93