aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.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/newview/llviewermessage.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/newview/llviewermessage.h222
1 files changed, 222 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermessage.h b/linden/indra/newview/llviewermessage.h
new file mode 100644
index 0000000..258003e
--- /dev/null
+++ b/linden/indra/newview/llviewermessage.h
@@ -0,0 +1,222 @@
1/**
2 * @file llviewermessage.h
3 * @brief Message system callbacks for viewer.
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_LLVIEWERMESSAGE_H
29#define LL_LLVIEWERMESSAGE_H
30
31//#include "linked_lists.h"
32#include "llinstantmessage.h"
33#include "lltransactiontypes.h"
34#include "lluuid.h"
35#include "stdenums.h"
36#include "message.h"
37
38//
39// Forward declarations
40//
41class LLColor4;
42class LLViewerObject;
43class LLInventoryObject;
44class LLInventoryItem;
45class LLViewerRegion;
46
47//
48// Prototypes
49//
50
51BOOL can_afford_transaction(S32 cost);
52void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group = FALSE,
53 S32 trx_type = TRANS_GIFT, const LLString& desc = LLString::null);
54void busy_message (LLMessageSystem* msg, LLUUID from_id);
55
56void process_logout_reply(LLMessageSystem* msg, void**);
57void process_layer_data(LLMessageSystem *mesgsys, void **user_data);
58void process_derez_ack(LLMessageSystem*, void**);
59void process_places_reply(LLMessageSystem* msg, void** data);
60void send_sound_trigger(const LLUUID& sound_id, F32 gain);
61void process_improved_im(LLMessageSystem *msg, void **user_data);
62void process_script_question(LLMessageSystem *msg, void **user_data);
63void process_chat_from_simulator(LLMessageSystem *mesgsys, void **user_data);
64
65//void process_agent_to_new_region(LLMessageSystem *mesgsys, void **user_data);
66void send_agent_update(BOOL force_send, BOOL send_reliable = FALSE);
67void process_object_update(LLMessageSystem *mesgsys, void **user_data);
68void process_compressed_object_update(LLMessageSystem *mesgsys, void **user_data);
69void process_cached_object_update(LLMessageSystem *mesgsys, void **user_data);
70void process_terse_object_update_improved(LLMessageSystem *mesgsys, void **user_data);
71
72void send_simulator_throttle_settings(const LLHost &host);
73void process_kill_object( LLMessageSystem *mesgsys, void **user_data);
74void process_time_synch( LLMessageSystem *mesgsys, void **user_data);
75void process_sound_trigger(LLMessageSystem *mesgsys, void **user_data);
76void process_preload_sound( LLMessageSystem *mesgsys, void **user_data);
77void process_attached_sound( LLMessageSystem *mesgsys, void **user_data);
78void process_attached_sound_gain_change( LLMessageSystem *mesgsys, void **user_data);
79//void process_attached_sound_cutoff_radius( LLMessageSystem *mesgsys, void **user_data);
80void process_energy_statistics(LLMessageSystem *mesgsys, void **user_data);
81void process_health_message(LLMessageSystem *mesgsys, void **user_data);
82void process_sim_stats(LLMessageSystem *mesgsys, void **user_data);
83void process_shooter_agent_hit(LLMessageSystem* msg, void** user_data);
84void process_avatar_info_request(LLMessageSystem *mesgsys, void **user_data);
85void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data);
86void process_avatar_appearance(LLMessageSystem *mesgsys, void **user_data);
87void process_camera_constraint(LLMessageSystem *mesgsys, void **user_data);
88void process_avatar_sit_response(LLMessageSystem *mesgsys, void **user_data);
89void process_set_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data);
90void process_clear_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data);
91void process_name_value(LLMessageSystem *mesgsys, void **user_data);
92void process_remove_name_value(LLMessageSystem *mesgsys, void **user_data);
93void process_kick_user(LLMessageSystem *msg, void** /*user_data*/);
94//void process_avatar_init_complete(LLMessageSystem *msg, void** /*user_data*/);
95
96void process_economy_data(LLMessageSystem *msg, void** /*user_data*/);
97void process_money_balance_reply(LLMessageSystem* msg_system, void**);
98void process_adjust_balance(LLMessageSystem* msg_system, void**);
99
100void process_alert_message(LLMessageSystem* msg, void**);
101void process_agent_alert_message(LLMessageSystem* msgsystem, void** user_data);
102void process_alert_core(const char* buffer, BOOL modal);
103
104// "Mean" or player-vs-player abuse
105void handle_show_mean_events(void *);
106void process_mean_collision_alert_message(LLMessageSystem* msg, void**);
107
108void process_frozen_message(LLMessageSystem* msg, void**);
109
110void process_derez_container(LLMessageSystem *msg, void**);
111void container_inventory_arrived(LLViewerObject* object,
112 std::list<LLPointer<LLInventoryObject> >* inventory, //InventoryObjectList
113 S32 serial_num,
114 void* data);
115
116// agent movement
117void send_complete_agent_movement(const LLHost& sim_host);
118void process_agent_movement_complete(LLMessageSystem* msg, void**);
119void process_crossed_region(LLMessageSystem* msg, void**);
120void process_teleport_start(LLMessageSystem* msg, void**);
121void process_teleport_progress(LLMessageSystem* msg, void**);
122void process_teleport_failed(LLMessageSystem *msg,void**);
123void process_teleport_finish(LLMessageSystem *msg, void**);
124
125//void process_user_sim_location_reply(LLMessageSystem *msg,void**);
126void process_teleport_local(LLMessageSystem *msg,void**);
127void process_user_sim_location_reply(LLMessageSystem *msg,void**);
128
129void send_simple_im(const LLUUID& to_id,
130 const char* message,
131 EInstantMessage dialog = IM_NOTHING_SPECIAL,
132 const LLUUID& id = LLUUID::null);
133
134void send_group_notice(const LLUUID& group_id,
135 const char* subject,
136 const char* message,
137 const LLInventoryItem* item);
138
139void handle_lure(const LLUUID& invitee);
140void handle_lure(LLDynamicArray<LLUUID>& ids);
141
142// always from gAgent and
143// routes through the gAgent's current simulator
144void send_improved_im(const LLUUID& to_id,
145 const char* name,
146 const char* message,
147 U8 offline = IM_ONLINE,
148 EInstantMessage dialog = IM_NOTHING_SPECIAL,
149 const LLUUID& id = LLUUID::null,
150 U32 timestamp = NO_TIMESTAMP,
151 const U8* binary_bucket = (U8*)EMPTY_BINARY_BUCKET,
152 S32 binary_bucket_size = EMPTY_BINARY_BUCKET_SIZE);
153
154void process_user_info_reply(LLMessageSystem* msg, void**);
155
156// method to format the time. Buffer should be at least
157// TIME_STR_LENGTH long, and the function reutnrs buffer (for use in
158// sprintf and the like)
159const S32 TIME_STR_LENGTH = 30;
160char* formatted_time(const time_t& the_time, char* buffer);
161
162void send_places_query(const LLUUID& query_id,
163 const LLUUID& trans_id,
164 const char* query_text,
165 U32 query_flags,
166 S32 category,
167 const char* sim_name);
168void process_script_dialog(LLMessageSystem* msg, void**);
169void process_load_url(LLMessageSystem* msg, void**);
170void process_script_teleport_request(LLMessageSystem* msg, void**);
171void process_covenant_reply(LLMessageSystem* msg, void**);
172void onCovenantLoadComplete(LLVFS *vfs,
173 const LLUUID& asset_uuid,
174 LLAssetType::EType type,
175 void* user_data, S32 status);
176void callbackCacheEstateOwnerName(
177 const LLUUID& id,
178 const char* first,
179 const char* last,
180 BOOL is_group,
181 void*);
182
183// calling cards
184void process_offer_callingcard(LLMessageSystem* msg, void**);
185void process_accept_callingcard(LLMessageSystem* msg, void**);
186void process_decline_callingcard(LLMessageSystem* msg, void**);
187
188// Message system exception prototypes
189void invalid_message_callback(LLMessageSystem*, void*, EMessageException);
190
191void send_lure_911(void** user_data, S32 result);
192
193void process_initiate_download(LLMessageSystem* msg, void**);
194void inventory_offer_callback(S32 option, void* user_data);
195
196struct LLOfferInfo
197{
198 EInstantMessage mIM;
199 LLUUID mFromID;
200 BOOL mFromGroup;
201 BOOL mFromObject;
202 LLUUID mTransactionID;
203 LLUUID mFolderID;
204 LLUUID mObjectID;
205 LLAssetType::EType mType;
206 LLString mFromName;
207 LLString mDesc;
208 LLHost mHost;
209};
210
211void send_generic_message(const char* method,
212 const std::vector<std::string>& strings,
213 const LLUUID& invoice = LLUUID::null);
214
215void process_generic_message(LLMessageSystem* msg, void**);
216
217void process_feature_disabled_message(LLMessageSystem* msg, void**);
218
219extern LLDispatcher gGenericDispatcher;
220
221#endif
222