Annotation of /linden_release/linden/indra/llinventory/lltransactionflags.h
Parent Directory
|
Revision Log
Revision 57 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file lltransactionflags.h | ||
| 3 : | * | ||
| 4 : | * $LicenseInfo:firstyear=2003&license=viewergpl$ | ||
| 5 : | * | ||
| 6 : | * Copyright (c) 2003-2008, Linden Research, Inc. | ||
| 7 : | * | ||
| 8 : | * Second Life Viewer Source Code | ||
| 9 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 10 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 11 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 12 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 13 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 14 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 15 : | * | ||
| 16 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 17 : | * it is applied to this Source Code. View the full text of the exception | ||
| 18 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 19 : | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 20 : | * | ||
| 21 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 22 : | * that you have read and understood your obligations described above, | ||
| 23 : | * and agree to abide by those obligations. | ||
| 24 : | * | ||
| 25 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 26 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 27 : | * COMPLETENESS OR PERFORMANCE. | ||
| 28 : | * $/LicenseInfo$ | ||
| 29 : | */ | ||
| 30 : | |||
| 31 : | #ifndef LL_LLTRANSACTIONFLAGS_H | ||
| 32 : | #define LL_LLTRANSACTIONFLAGS_H | ||
| 33 : | |||
| 34 : | class LLUUID; | ||
| 35 : | |||
| 36 : | typedef U8 TransactionFlags; | ||
| 37 : | |||
| 38 : | // defined in common/llinventory/lltransactionflags.cpp | ||
| 39 : | extern const TransactionFlags TRANSACTION_FLAGS_NONE; | ||
| 40 : | extern const TransactionFlags TRANSACTION_FLAG_SOURCE_GROUP; | ||
| 41 : | extern const TransactionFlags TRANSACTION_FLAG_DEST_GROUP; | ||
| 42 : | extern const TransactionFlags TRANSACTION_FLAG_OWNER_GROUP; | ||
| 43 : | extern const TransactionFlags TRANSACTION_FLAG_SIMULTANEOUS_CONTRIBUTION; | ||
| 44 : | extern const TransactionFlags TRANSACTION_FLAG_SIMULTANEOUS_CONTRIBUTION_REMOVAL; | ||
| 45 : | |||
| 46 : | // very simple helper functions | ||
| 47 : | TransactionFlags pack_transaction_flags(BOOL is_source_group, BOOL is_dest_group); | ||
| 48 : | BOOL is_tf_source_group(TransactionFlags flags); | ||
| 49 : | BOOL is_tf_dest_group(TransactionFlags flags); | ||
| 50 : | BOOL is_tf_owner_group(TransactionFlags flags); | ||
| 51 : | |||
| 52 : | // stupid helper functions which should be replaced with some kind of | ||
| 53 : | // internationalizeable message. | ||
| 54 : | std::string build_transfer_message_to_source( | ||
| 55 : | S32 amount, | ||
| 56 : | const LLUUID& source_id, | ||
| 57 : | const LLUUID& dest_id, | ||
| 58 : | const std::string& dest_name, | ||
| 59 : | S32 transaction_type, | ||
| 60 : | const std::string& description); | ||
| 61 : | |||
| 62 : | std::string build_transfer_message_to_destination( | ||
| 63 : | S32 amount, | ||
| 64 : | const LLUUID& dest_id, | ||
| 65 : | const LLUUID& source_id, | ||
| 66 : | const std::string& source_name, | ||
| 67 : | S32 transaction_type, | ||
| 68 : | const std::string& description); | ||
| 69 : | |||
| 70 : | #endif // LL_LLTRANSACTIONFLAGS_H |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

