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/newview/llviewermessage.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/newview/llviewermessage.h | 222 |
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 | // | ||
41 | class LLColor4; | ||
42 | class LLViewerObject; | ||
43 | class LLInventoryObject; | ||
44 | class LLInventoryItem; | ||
45 | class LLViewerRegion; | ||
46 | |||
47 | // | ||
48 | // Prototypes | ||
49 | // | ||
50 | |||
51 | BOOL can_afford_transaction(S32 cost); | ||
52 | void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group = FALSE, | ||
53 | S32 trx_type = TRANS_GIFT, const LLString& desc = LLString::null); | ||
54 | void busy_message (LLMessageSystem* msg, LLUUID from_id); | ||
55 | |||
56 | void process_logout_reply(LLMessageSystem* msg, void**); | ||
57 | void process_layer_data(LLMessageSystem *mesgsys, void **user_data); | ||
58 | void process_derez_ack(LLMessageSystem*, void**); | ||
59 | void process_places_reply(LLMessageSystem* msg, void** data); | ||
60 | void send_sound_trigger(const LLUUID& sound_id, F32 gain); | ||
61 | void process_improved_im(LLMessageSystem *msg, void **user_data); | ||
62 | void process_script_question(LLMessageSystem *msg, void **user_data); | ||
63 | void process_chat_from_simulator(LLMessageSystem *mesgsys, void **user_data); | ||
64 | |||
65 | //void process_agent_to_new_region(LLMessageSystem *mesgsys, void **user_data); | ||
66 | void send_agent_update(BOOL force_send, BOOL send_reliable = FALSE); | ||
67 | void process_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
68 | void process_compressed_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
69 | void process_cached_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
70 | void process_terse_object_update_improved(LLMessageSystem *mesgsys, void **user_data); | ||
71 | |||
72 | void send_simulator_throttle_settings(const LLHost &host); | ||
73 | void process_kill_object( LLMessageSystem *mesgsys, void **user_data); | ||
74 | void process_time_synch( LLMessageSystem *mesgsys, void **user_data); | ||
75 | void process_sound_trigger(LLMessageSystem *mesgsys, void **user_data); | ||
76 | void process_preload_sound( LLMessageSystem *mesgsys, void **user_data); | ||
77 | void process_attached_sound( LLMessageSystem *mesgsys, void **user_data); | ||
78 | void process_attached_sound_gain_change( LLMessageSystem *mesgsys, void **user_data); | ||
79 | //void process_attached_sound_cutoff_radius( LLMessageSystem *mesgsys, void **user_data); | ||
80 | void process_energy_statistics(LLMessageSystem *mesgsys, void **user_data); | ||
81 | void process_health_message(LLMessageSystem *mesgsys, void **user_data); | ||
82 | void process_sim_stats(LLMessageSystem *mesgsys, void **user_data); | ||
83 | void process_shooter_agent_hit(LLMessageSystem* msg, void** user_data); | ||
84 | void process_avatar_info_request(LLMessageSystem *mesgsys, void **user_data); | ||
85 | void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data); | ||
86 | void process_avatar_appearance(LLMessageSystem *mesgsys, void **user_data); | ||
87 | void process_camera_constraint(LLMessageSystem *mesgsys, void **user_data); | ||
88 | void process_avatar_sit_response(LLMessageSystem *mesgsys, void **user_data); | ||
89 | void process_set_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data); | ||
90 | void process_clear_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data); | ||
91 | void process_name_value(LLMessageSystem *mesgsys, void **user_data); | ||
92 | void process_remove_name_value(LLMessageSystem *mesgsys, void **user_data); | ||
93 | void process_kick_user(LLMessageSystem *msg, void** /*user_data*/); | ||
94 | //void process_avatar_init_complete(LLMessageSystem *msg, void** /*user_data*/); | ||
95 | |||
96 | void process_economy_data(LLMessageSystem *msg, void** /*user_data*/); | ||
97 | void process_money_balance_reply(LLMessageSystem* msg_system, void**); | ||
98 | void process_adjust_balance(LLMessageSystem* msg_system, void**); | ||
99 | |||
100 | void process_alert_message(LLMessageSystem* msg, void**); | ||
101 | void process_agent_alert_message(LLMessageSystem* msgsystem, void** user_data); | ||
102 | void process_alert_core(const char* buffer, BOOL modal); | ||
103 | |||
104 | // "Mean" or player-vs-player abuse | ||
105 | void handle_show_mean_events(void *); | ||
106 | void process_mean_collision_alert_message(LLMessageSystem* msg, void**); | ||
107 | |||
108 | void process_frozen_message(LLMessageSystem* msg, void**); | ||
109 | |||
110 | void process_derez_container(LLMessageSystem *msg, void**); | ||
111 | void container_inventory_arrived(LLViewerObject* object, | ||
112 | std::list<LLPointer<LLInventoryObject> >* inventory, //InventoryObjectList | ||
113 | S32 serial_num, | ||
114 | void* data); | ||
115 | |||
116 | // agent movement | ||
117 | void send_complete_agent_movement(const LLHost& sim_host); | ||
118 | void process_agent_movement_complete(LLMessageSystem* msg, void**); | ||
119 | void process_crossed_region(LLMessageSystem* msg, void**); | ||
120 | void process_teleport_start(LLMessageSystem* msg, void**); | ||
121 | void process_teleport_progress(LLMessageSystem* msg, void**); | ||
122 | void process_teleport_failed(LLMessageSystem *msg,void**); | ||
123 | void process_teleport_finish(LLMessageSystem *msg, void**); | ||
124 | |||
125 | //void process_user_sim_location_reply(LLMessageSystem *msg,void**); | ||
126 | void process_teleport_local(LLMessageSystem *msg,void**); | ||
127 | void process_user_sim_location_reply(LLMessageSystem *msg,void**); | ||
128 | |||
129 | void send_simple_im(const LLUUID& to_id, | ||
130 | const char* message, | ||
131 | EInstantMessage dialog = IM_NOTHING_SPECIAL, | ||
132 | const LLUUID& id = LLUUID::null); | ||
133 | |||
134 | void send_group_notice(const LLUUID& group_id, | ||
135 | const char* subject, | ||
136 | const char* message, | ||
137 | const LLInventoryItem* item); | ||
138 | |||
139 | void handle_lure(const LLUUID& invitee); | ||
140 | void handle_lure(LLDynamicArray<LLUUID>& ids); | ||
141 | |||
142 | // always from gAgent and | ||
143 | // routes through the gAgent's current simulator | ||
144 | void 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 | |||
154 | void 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) | ||
159 | const S32 TIME_STR_LENGTH = 30; | ||
160 | char* formatted_time(const time_t& the_time, char* buffer); | ||
161 | |||
162 | void 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); | ||
168 | void process_script_dialog(LLMessageSystem* msg, void**); | ||
169 | void process_load_url(LLMessageSystem* msg, void**); | ||
170 | void process_script_teleport_request(LLMessageSystem* msg, void**); | ||
171 | void process_covenant_reply(LLMessageSystem* msg, void**); | ||
172 | void onCovenantLoadComplete(LLVFS *vfs, | ||
173 | const LLUUID& asset_uuid, | ||
174 | LLAssetType::EType type, | ||
175 | void* user_data, S32 status); | ||
176 | void callbackCacheEstateOwnerName( | ||
177 | const LLUUID& id, | ||
178 | const char* first, | ||
179 | const char* last, | ||
180 | BOOL is_group, | ||
181 | void*); | ||
182 | |||
183 | // calling cards | ||
184 | void process_offer_callingcard(LLMessageSystem* msg, void**); | ||
185 | void process_accept_callingcard(LLMessageSystem* msg, void**); | ||
186 | void process_decline_callingcard(LLMessageSystem* msg, void**); | ||
187 | |||
188 | // Message system exception prototypes | ||
189 | void invalid_message_callback(LLMessageSystem*, void*, EMessageException); | ||
190 | |||
191 | void send_lure_911(void** user_data, S32 result); | ||
192 | |||
193 | void process_initiate_download(LLMessageSystem* msg, void**); | ||
194 | void inventory_offer_callback(S32 option, void* user_data); | ||
195 | |||
196 | struct 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 | |||
211 | void send_generic_message(const char* method, | ||
212 | const std::vector<std::string>& strings, | ||
213 | const LLUUID& invoice = LLUUID::null); | ||
214 | |||
215 | void process_generic_message(LLMessageSystem* msg, void**); | ||
216 | |||
217 | void process_feature_disabled_message(LLMessageSystem* msg, void**); | ||
218 | |||
219 | extern LLDispatcher gGenericDispatcher; | ||
220 | |||
221 | #endif | ||
222 | |||