llinstantmessage.cpp File Reference

Constants and functions used in IM. More...

#include "linden_common.h"
#include "lldbstrings.h"
#include "llinstantmessage.h"
#include "llhost.h"
#include "lluuid.h"
#include "llsd.h"
#include "llsdserialize.h"
#include "llsdutil.h"
#include "llmemory.h"
#include "message.h"

Include dependency graph for llinstantmessage.cpp:

Go to the source code of this file.

Functions

void pack_instant_message (LLMessageSystem *msg, const LLUUID &from_id, BOOL from_group, const LLUUID &session_id, const LLUUID &to_id, const char *name, const char *message, U8 offline, EInstantMessage dialog, const LLUUID &id, U32 parent_estate_id, const LLUUID &region_id, const LLVector3 &position, U32 timestamp, const U8 *binary_bucket, S32 binary_bucket_size)
void pack_instant_message_block (LLMessageSystem *msg, const LLUUID &from_id, BOOL from_group, const LLUUID &session_id, const LLUUID &to_id, const char *name, const char *message, U8 offline, EInstantMessage dialog, const LLUUID &id, U32 parent_estate_id, const LLUUID &region_id, const LLVector3 &position, U32 timestamp, const U8 *binary_bucket, S32 binary_bucket_size)
LLSD im_info_to_llsd (LLPointer< LLIMInfo > im_info)
LLPointer< LLIMInfollsd_to_im_info (const LLSD &im_info_sd)

Variables

const U8 IM_ONLINE = 0
const U8 IM_OFFLINE = 1
const S32 VOTE_YES = 1
const S32 VOTE_NO = 0
const S32 VOTE_ABSTAIN = -1
const S32 VOTE_MAJORITY = 0
const S32 VOTE_SUPER_MAJORITY = 1
const S32 VOTE_UNANIMOUS = 2
const char EMPTY_BINARY_BUCKET [] = ""
const S32 EMPTY_BINARY_BUCKET_SIZE = 1
const U32 NO_TIMESTAMP = 0
const char SYSTEM_FROM [] = "Second Life"
const S32 IM_TTL = 1


Detailed Description

Constants and functions used in IM.

Author:
Phoenix
Date:
2005-08-29
LicenseInfo
firstyear=2005&license=viewergpl

Copyright (c) 2005-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llinstantmessage.cpp.


Function Documentation

LLSD im_info_to_llsd ( LLPointer< LLIMInfo im_info  ) 

Definition at line 317 of file llinstantmessage.cpp.

References ll_sd_from_vector3(), params, and S32.

LLPointer<LLIMInfo> llsd_to_im_info ( const LLSD im_info_sd  ) 

Definition at line 349 of file llinstantmessage.cpp.

References ll_vector3_from_sd().

void pack_instant_message ( LLMessageSystem msg,
const LLUUID from_id,
BOOL  from_group,
const LLUUID session_id,
const LLUUID to_id,
const char *  name,
const char *  message,
U8  offline,
EInstantMessage  dialog,
const LLUUID id,
U32  parent_estate_id,
const LLUUID region_id,
const LLVector3 position,
U32  timestamp,
const U8 binary_bucket,
S32  binary_bucket_size 
)

Definition at line 160 of file llinstantmessage.cpp.

References _PREHASH_ImprovedInstantMessage, lldebugs, llendl, LLMessageSystem::newMessageFast(), and pack_instant_message_block().

Referenced by busy_message(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), deliver_message(), LLFloaterIMPanel::onClose(), process_improved_im(), send_improved_im(), and LLFloaterIMPanel::sendTypingState().

void pack_instant_message_block ( LLMessageSystem msg,
const LLUUID from_id,
BOOL  from_group,
const LLUUID session_id,
const LLUUID to_id,
const char *  name,
const char *  message,
U8  offline,
EInstantMessage  dialog,
const LLUUID id,
U32  parent_estate_id,
const LLUUID region_id,
const LLVector3 position,
U32  timestamp,
const U8 binary_bucket,
S32  binary_bucket_size 
)

Definition at line 199 of file llinstantmessage.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BinaryBucket, _PREHASH_Dialog, _PREHASH_FromAgentName, _PREHASH_FromGroup, _PREHASH_ID, _PREHASH_Message, _PREHASH_MessageBlock, _PREHASH_Offline, _PREHASH_ParentEstateID, _PREHASH_Position, _PREHASH_RegionID, _PREHASH_SessionID, _PREHASH_Timestamp, _PREHASH_ToAgentID, LLMessageSystem::addBinaryDataFast(), LLMessageSystem::addBOOLFast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3Fast(), EMPTY_BINARY_BUCKET, EMPTY_BINARY_BUCKET_SIZE, llendl, llmax(), llmin(), llwarns, MTUBYTES, LLMessageSystem::nextBlockFast(), NULL, and S32.

Referenced by pack_instant_message(), and LLIMInfo::packMessageBlock().


Variable Documentation

const char EMPTY_BINARY_BUCKET[] = ""

Definition at line 59 of file llinstantmessage.cpp.

Referenced by inventory_offer_callback(), pack_instant_message_block(), send_group_notice(), send_simple_im(), and send_start_session_messages().

const S32 EMPTY_BINARY_BUCKET_SIZE = 1

Definition at line 60 of file llinstantmessage.cpp.

Referenced by inventory_offer_callback(), pack_instant_message_block(), send_group_notice(), send_simple_im(), and send_start_session_messages().

const U8 IM_OFFLINE = 1

Definition at line 49 of file llinstantmessage.cpp.

Referenced by deliver_message(), LLViewerChatterBoxInvitation::post(), and process_improved_im().

const U8 IM_ONLINE = 0

Definition at line 48 of file llinstantmessage.cpp.

Referenced by busy_message(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), deliver_message(), inventory_offer_callback(), join_group_callback(), LLFloaterIMPanel::onClose(), process_improved_im(), LLPanelFriends::requestFriendship(), send_group_notice(), send_simple_im(), LLFloaterIMPanel::sendTypingState(), and session_starter_helper().

const S32 IM_TTL = 1

Definition at line 63 of file llinstantmessage.cpp.

const U32 NO_TIMESTAMP = 0

Definition at line 61 of file llinstantmessage.cpp.

Referenced by LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), inventory_offer_callback(), send_group_notice(), send_simple_im(), and session_starter_helper().

const char SYSTEM_FROM[] = "Second Life"

Definition at line 62 of file llinstantmessage.cpp.

Referenced by LLIMMgr::addSystemMessage(), busy_message(), LLVoiceChannelGroup::handleError(), and process_improved_im().

const S32 VOTE_ABSTAIN = -1

Definition at line 53 of file llinstantmessage.cpp.

const S32 VOTE_MAJORITY = 0

Definition at line 55 of file llinstantmessage.cpp.

const S32 VOTE_NO = 0

Definition at line 52 of file llinstantmessage.cpp.

const S32 VOTE_SUPER_MAJORITY = 1

Definition at line 56 of file llinstantmessage.cpp.

const S32 VOTE_UNANIMOUS = 2

Definition at line 57 of file llinstantmessage.cpp.

const S32 VOTE_YES = 1

Definition at line 51 of file llinstantmessage.cpp.


Generated on Thu Jul 1 06:10:29 2010 for Second Life Viewer by  doxygen 1.4.7