diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llmessage/llxfer_mem.h | |
parent | README.txt (diff) | |
download | meta-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_mem.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llxfer_mem.h b/linden/indra/llmessage/llxfer_mem.h new file mode 100644 index 0000000..bda7893 --- /dev/null +++ b/linden/indra/llmessage/llxfer_mem.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /** | ||
2 | * @file llxfer_mem.h | ||
3 | * @brief definition of LLXfer_Mem class for a single xfer | ||
4 | * | ||
5 | * Copyright (c) 2001-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_MEM_H | ||
29 | #define LL_LLXFER_MEM_H | ||
30 | |||
31 | #include <stdio.h> | ||
32 | |||
33 | #include "message.h" | ||
34 | #include "lltimer.h" | ||
35 | #include "llxfer.h" | ||
36 | #include "lldir.h" | ||
37 | |||
38 | class LLXfer_Mem : public LLXfer | ||
39 | { | ||
40 | private: | ||
41 | protected: | ||
42 | void (*mCallback)(void *, S32, void **,S32); | ||
43 | char mRemoteFilename[LL_MAX_PATH]; /* Flawfinder : ignore */ | ||
44 | ELLPath mRemotePath; | ||
45 | BOOL mDeleteRemoteOnCompletion; | ||
46 | |||
47 | public: | ||
48 | |||
49 | private: | ||
50 | protected: | ||
51 | public: | ||
52 | LLXfer_Mem (); | ||
53 | virtual ~LLXfer_Mem(); | ||
54 | |||
55 | virtual void init(); | ||
56 | virtual void free(); | ||
57 | |||
58 | virtual S32 startSend (U64 xfer_id, const LLHost &remote_host); | ||
59 | virtual U64 registerXfer(U64 xfer_id, const void *datap, const S32 length); | ||
60 | virtual void setXferSize (S32 data_size); | ||
61 | |||
62 | virtual S32 initializeRequest(U64 xfer_id, | ||
63 | const std::string& remote_filename, | ||
64 | ELLPath remote_path, | ||
65 | const LLHost& remote_host, | ||
66 | BOOL delete_remote_on_completion, | ||
67 | void (*callback)(void*,S32,void**,S32), | ||
68 | void** user_data); | ||
69 | virtual S32 startDownload(); | ||
70 | |||
71 | virtual S32 processEOF(); | ||
72 | |||
73 | virtual U32 getXferTypeTag(); | ||
74 | }; | ||
75 | |||
76 | #endif | ||
77 | |||
78 | |||
79 | |||
80 | |||