00001
00031 #ifndef LL_LLTRANSACTIONFLAGS_H
00032 #define LL_LLTRANSACTIONFLAGS_H
00033
00034 typedef U8 TransactionFlags;
00035
00036
00037 extern const TransactionFlags TRANSACTION_FLAGS_NONE;
00038 extern const TransactionFlags TRANSACTION_FLAG_SOURCE_GROUP;
00039 extern const TransactionFlags TRANSACTION_FLAG_DEST_GROUP;
00040 extern const TransactionFlags TRANSACTION_FLAG_OWNER_GROUP;
00041 extern const TransactionFlags TRANSACTION_FLAG_SIMULTANEOUS_CONTRIBUTION;
00042 extern const TransactionFlags TRANSACTION_FLAG_SIMULTANEOUS_CONTRIBUTION_REMOVAL;
00043
00044
00045 TransactionFlags pack_transaction_flags(BOOL is_source_group, BOOL is_dest_group);
00046 BOOL is_tf_source_group(TransactionFlags flags);
00047 BOOL is_tf_dest_group(TransactionFlags flags);
00048 BOOL is_tf_owner_group(TransactionFlags flags);
00049
00050
00051
00052 std::string build_transfer_message_to_source(
00053 S32 amount,
00054 const LLUUID& source_id,
00055 const LLUUID& dest_id,
00056 const std::string& dest_name,
00057 S32 transaction_type,
00058 const char* description);
00059
00060 std::string build_transfer_message_to_destination(
00061 S32 amount,
00062 const LLUUID& dest_id,
00063 const LLUUID& source_id,
00064 const std::string& source_name,
00065 S32 transaction_type,
00066 const char* description);
00067
00068 #endif // LL_LLTRANSACTIONFLAGS_H