Annotation of /trunk/indra/newview/llviewermessage.h
Parent Directory
|
Revision Log
Revision 137 - (view) (download)
| 1 : | mjm | 135 | /** |
| 2 : | * @file llviewermessage.h | ||
| 3 : | * @brief Message system callbacks for viewer. | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2002&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | mjm | 137 | * Copyright (c) 2002-2010, Linden Research, Inc. |
| 8 : | mjm | 135 | * |
| 9 : | * Second Life Viewer Source Code | ||
| 10 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 11 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 12 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 13 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 14 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 15 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 16 : | * | ||
| 17 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 18 : | * it is applied to this Source Code. View the full text of the exception | ||
| 19 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 20 : | * online at | ||
| 21 : | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 22 : | * | ||
| 23 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 24 : | * that you have read and understood your obligations described above, | ||
| 25 : | * and agree to abide by those obligations. | ||
| 26 : | * | ||
| 27 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 28 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 29 : | * COMPLETENESS OR PERFORMANCE. | ||
| 30 : | * $/LicenseInfo$ | ||
| 31 : | */ | ||
| 32 : | |||
| 33 : | #ifndef LL_LLVIEWERMESSAGE_H | ||
| 34 : | #define LL_LLVIEWERMESSAGE_H | ||
| 35 : | |||
| 36 : | #include "llinstantmessage.h" | ||
| 37 : | #include "lltransactiontypes.h" | ||
| 38 : | #include "lluuid.h" | ||
| 39 : | #include "stdenums.h" | ||
| 40 : | |||
| 41 : | // | ||
| 42 : | // Forward declarations | ||
| 43 : | // | ||
| 44 : | class LLColor4; | ||
| 45 : | class LLViewerObject; | ||
| 46 : | class LLInventoryObject; | ||
| 47 : | class LLInventoryItem; | ||
| 48 : | class LLMessageSystem; | ||
| 49 : | class LLViewerRegion; | ||
| 50 : | |||
| 51 : | // | ||
| 52 : | // Prototypes | ||
| 53 : | // | ||
| 54 : | |||
| 55 : | enum InventoryOfferResponse | ||
| 56 : | { | ||
| 57 : | IOR_ACCEPT, | ||
| 58 : | IOR_DECLINE, | ||
| 59 : | IOR_MUTE, | ||
| 60 : | IOR_BUSY | ||
| 61 : | }; | ||
| 62 : | |||
| 63 : | BOOL can_afford_transaction(S32 cost); | ||
| 64 : | void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group = FALSE, | ||
| 65 : | S32 trx_type = TRANS_GIFT, const std::string& desc = LLStringUtil::null); | ||
| 66 : | void busy_message (LLMessageSystem* msg, LLUUID from_id); | ||
| 67 : | |||
| 68 : | void process_logout_reply(LLMessageSystem* msg, void**); | ||
| 69 : | void process_layer_data(LLMessageSystem *mesgsys, void **user_data); | ||
| 70 : | void process_derez_ack(LLMessageSystem*, void**); | ||
| 71 : | void process_places_reply(LLMessageSystem* msg, void** data); | ||
| 72 : | void send_sound_trigger(const LLUUID& sound_id, F32 gain); | ||
| 73 : | void process_improved_im(LLMessageSystem *msg, void **user_data); | ||
| 74 : | void process_script_question(LLMessageSystem *msg, void **user_data); | ||
| 75 : | void process_chat_from_simulator(LLMessageSystem *mesgsys, void **user_data); | ||
| 76 : | |||
| 77 : | //void process_agent_to_new_region(LLMessageSystem *mesgsys, void **user_data); | ||
| 78 : | void send_agent_update(BOOL force_send, BOOL send_reliable = FALSE); | ||
| 79 : | void process_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
| 80 : | void process_compressed_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
| 81 : | void process_cached_object_update(LLMessageSystem *mesgsys, void **user_data); | ||
| 82 : | void process_terse_object_update_improved(LLMessageSystem *mesgsys, void **user_data); | ||
| 83 : | |||
| 84 : | void send_simulator_throttle_settings(const LLHost &host); | ||
| 85 : | void process_kill_object( LLMessageSystem *mesgsys, void **user_data); | ||
| 86 : | void process_time_synch( LLMessageSystem *mesgsys, void **user_data); | ||
| 87 : | void process_sound_trigger(LLMessageSystem *mesgsys, void **user_data); | ||
| 88 : | void process_preload_sound( LLMessageSystem *mesgsys, void **user_data); | ||
| 89 : | void process_attached_sound( LLMessageSystem *mesgsys, void **user_data); | ||
| 90 : | void process_attached_sound_gain_change( LLMessageSystem *mesgsys, void **user_data); | ||
| 91 : | void process_energy_statistics(LLMessageSystem *mesgsys, void **user_data); | ||
| 92 : | void process_health_message(LLMessageSystem *mesgsys, void **user_data); | ||
| 93 : | void process_sim_stats(LLMessageSystem *mesgsys, void **user_data); | ||
| 94 : | void process_shooter_agent_hit(LLMessageSystem* msg, void** user_data); | ||
| 95 : | void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data); | ||
| 96 : | void process_avatar_appearance(LLMessageSystem *mesgsys, void **user_data); | ||
| 97 : | void process_camera_constraint(LLMessageSystem *mesgsys, void **user_data); | ||
| 98 : | void process_avatar_sit_response(LLMessageSystem *mesgsys, void **user_data); | ||
| 99 : | void process_set_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data); | ||
| 100 : | void process_clear_follow_cam_properties(LLMessageSystem *mesgsys, void **user_data); | ||
| 101 : | void process_name_value(LLMessageSystem *mesgsys, void **user_data); | ||
| 102 : | void process_remove_name_value(LLMessageSystem *mesgsys, void **user_data); | ||
| 103 : | void process_kick_user(LLMessageSystem *msg, void** /*user_data*/); | ||
| 104 : | //void process_avatar_init_complete(LLMessageSystem *msg, void** /*user_data*/); | ||
| 105 : | |||
| 106 : | void process_economy_data(LLMessageSystem *msg, void** /*user_data*/); | ||
| 107 : | void process_money_balance_reply(LLMessageSystem* msg_system, void**); | ||
| 108 : | void process_adjust_balance(LLMessageSystem* msg_system, void**); | ||
| 109 : | |||
| 110 : | bool attempt_standard_notification(LLMessageSystem* msg); | ||
| 111 : | void process_alert_message(LLMessageSystem* msg, void**); | ||
| 112 : | void process_agent_alert_message(LLMessageSystem* msgsystem, void** user_data); | ||
| 113 : | void process_alert_core(const std::string& message, BOOL modal); | ||
| 114 : | |||
| 115 : | // "Mean" or player-vs-player abuse | ||
| 116 : | typedef std::list<LLMeanCollisionData*> mean_collision_list_t; | ||
| 117 : | extern mean_collision_list_t gMeanCollisionList; | ||
| 118 : | |||
| 119 : | void handle_show_mean_events(void *); | ||
| 120 : | void process_mean_collision_alert_message(LLMessageSystem* msg, void**); | ||
| 121 : | |||
| 122 : | void process_frozen_message(LLMessageSystem* msg, void**); | ||
| 123 : | |||
| 124 : | void process_derez_container(LLMessageSystem *msg, void**); | ||
| 125 : | void container_inventory_arrived(LLViewerObject* object, | ||
| 126 : | std::list<LLPointer<LLInventoryObject> >* inventory, //InventoryObjectList | ||
| 127 : | S32 serial_num, | ||
| 128 : | void* data); | ||
| 129 : | |||
| 130 : | // agent movement | ||
| 131 : | void send_complete_agent_movement(const LLHost& sim_host); | ||
| 132 : | void process_agent_movement_complete(LLMessageSystem* msg, void**); | ||
| 133 : | void process_crossed_region(LLMessageSystem* msg, void**); | ||
| 134 : | void process_teleport_start(LLMessageSystem* msg, void**); | ||
| 135 : | void process_teleport_progress(LLMessageSystem* msg, void**); | ||
| 136 : | void process_teleport_failed(LLMessageSystem *msg,void**); | ||
| 137 : | void process_teleport_finish(LLMessageSystem *msg, void**); | ||
| 138 : | |||
| 139 : | //void process_user_sim_location_reply(LLMessageSystem *msg,void**); | ||
| 140 : | void process_teleport_local(LLMessageSystem *msg,void**); | ||
| 141 : | void process_user_sim_location_reply(LLMessageSystem *msg,void**); | ||
| 142 : | |||
| 143 : | void send_simple_im(const LLUUID& to_id, | ||
| 144 : | const std::string& message, | ||
| 145 : | EInstantMessage dialog = IM_NOTHING_SPECIAL, | ||
| 146 : | const LLUUID& id = LLUUID::null); | ||
| 147 : | |||
| 148 : | void send_group_notice(const LLUUID& group_id, | ||
| 149 : | const std::string& subject, | ||
| 150 : | const std::string& message, | ||
| 151 : | const LLInventoryItem* item); | ||
| 152 : | |||
| 153 : | void handle_lure(const LLUUID& invitee); | ||
| 154 : | void handle_lure(LLDynamicArray<LLUUID>& ids); | ||
| 155 : | |||
| 156 : | // always from gAgent and | ||
| 157 : | // routes through the gAgent's current simulator | ||
| 158 : | void send_improved_im(const LLUUID& to_id, | ||
| 159 : | const std::string& name, | ||
| 160 : | const std::string& message, | ||
| 161 : | U8 offline = IM_ONLINE, | ||
| 162 : | EInstantMessage dialog = IM_NOTHING_SPECIAL, | ||
| 163 : | const LLUUID& id = LLUUID::null, | ||
| 164 : | U32 timestamp = NO_TIMESTAMP, | ||
| 165 : | const U8* binary_bucket = (U8*)EMPTY_BINARY_BUCKET, | ||
| 166 : | S32 binary_bucket_size = EMPTY_BINARY_BUCKET_SIZE); | ||
| 167 : | |||
| 168 : | void process_user_info_reply(LLMessageSystem* msg, void**); | ||
| 169 : | |||
| 170 : | // method to format the time. | ||
| 171 : | std::string formatted_time(const time_t& the_time); | ||
| 172 : | |||
| 173 : | void send_places_query(const LLUUID& query_id, | ||
| 174 : | const LLUUID& trans_id, | ||
| 175 : | const std::string& query_text, | ||
| 176 : | U32 query_flags, | ||
| 177 : | S32 category, | ||
| 178 : | const std::string& sim_name); | ||
| 179 : | void process_script_dialog(LLMessageSystem* msg, void**); | ||
| 180 : | void process_load_url(LLMessageSystem* msg, void**); | ||
| 181 : | void process_script_teleport_request(LLMessageSystem* msg, void**); | ||
| 182 : | void process_covenant_reply(LLMessageSystem* msg, void**); | ||
| 183 : | void onCovenantLoadComplete(LLVFS *vfs, | ||
| 184 : | const LLUUID& asset_uuid, | ||
| 185 : | LLAssetType::EType type, | ||
| 186 : | void* user_data, S32 status, LLExtStat ext_status); | ||
| 187 : | |||
| 188 : | // calling cards | ||
| 189 : | void process_offer_callingcard(LLMessageSystem* msg, void**); | ||
| 190 : | void process_accept_callingcard(LLMessageSystem* msg, void**); | ||
| 191 : | void process_decline_callingcard(LLMessageSystem* msg, void**); | ||
| 192 : | |||
| 193 : | // Message system exception prototypes | ||
| 194 : | void invalid_message_callback(LLMessageSystem*, void*, EMessageException); | ||
| 195 : | |||
| 196 : | void process_initiate_download(LLMessageSystem* msg, void**); | ||
| 197 : | void start_new_inventory_observer(); | ||
| 198 : | |||
| 199 : | struct LLOfferInfo | ||
| 200 : | { | ||
| 201 : | LLOfferInfo() {}; | ||
| 202 : | LLOfferInfo(const LLSD& sd); | ||
| 203 : | |||
| 204 : | void forceResponse(InventoryOfferResponse response); | ||
| 205 : | |||
| 206 : | EInstantMessage mIM; | ||
| 207 : | LLUUID mFromID; | ||
| 208 : | BOOL mFromGroup; | ||
| 209 : | BOOL mFromObject; | ||
| 210 : | LLUUID mTransactionID; | ||
| 211 : | LLUUID mFolderID; | ||
| 212 : | LLUUID mObjectID; | ||
| 213 : | LLAssetType::EType mType; | ||
| 214 : | std::string mFromName; | ||
| 215 : | std::string mDesc; | ||
| 216 : | LLHost mHost; | ||
| 217 : | |||
| 218 : | LLSD asLLSD(); | ||
| 219 : | bool inventory_offer_callback(const LLSD& notification, const LLSD& response); | ||
| 220 : | |||
| 221 : | }; | ||
| 222 : | |||
| 223 : | void process_feature_disabled_message(LLMessageSystem* msg, void**); | ||
| 224 : | |||
| 225 : | #endif | ||
| 226 : | |||
| 227 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

