LLPanelEstateCovenant Class Reference

#include <llfloaterregioninfo.h>

Inheritance diagram for LLPanelEstateCovenant:

Inheritance graph
[legend]
Collaboration diagram for LLPanelEstateCovenant:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLPanelEstateCovenant::e_asset_status EAssetStatus
 ASSET_ERROR
 ASSET_UNLOADED
 ASSET_LOADING
 ASSET_LOADED
enum  e_asset_status { ASSET_ERROR, ASSET_UNLOADED, ASSET_LOADING, ASSET_LOADED }

Public Member Functions

 LLPanelEstateCovenant ()
 ~LLPanelEstateCovenant ()
virtual BOOL postBuild ()
virtual void updateChild (LLUICtrl *child_ctrl)
virtual bool refreshFromRegion (LLViewerRegion *region)
virtual bool estateUpdate (LLMessageSystem *msg)
BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
void sendChangeCovenantID (const LLUUID &asset_id)
void loadInvItem (LLInventoryItem *itemp)
const LLUUIDgetCovenantID () const
void setCovenantID (const LLUUID &id)
const std::string & getEstateName () const
void setEstateName (const std::string &name)
const std::string & getOwnerName () const
void setOwnerName (const std::string &name)
void setCovenantTextEditor (const std::string &text)

Static Public Member Functions

static void confirmChangeCovenantCallback (S32 option, void *userdata)
static void resetCovenantID (void *userdata)
static void confirmResetCovenantCallback (S32 option, void *userdata)
static void onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void updateCovenantText (const std::string &string, const LLUUID &asset_id)
static void updateEstateName (const std::string &name)
static void updateLastModified (const std::string &text)
static void updateEstateOwnerName (const std::string &name)

Protected Member Functions

virtual BOOL sendUpdate ()

Protected Attributes

LLTextBoxmEstateNameText
LLTextBoxmEstateOwnerText
LLTextBoxmLastModifiedText
LLUUID mCovenantID
LLViewerTextEditormEditor
EAssetStatus mAssetStatus

Detailed Description

Definition at line 350 of file llfloaterregioninfo.h.


Member Typedef Documentation

typedef enum LLPanelEstateCovenant::e_asset_status LLPanelEstateCovenant::EAssetStatus


Member Enumeration Documentation

enum LLPanelEstateCovenant::e_asset_status

Enumerator:
ASSET_ERROR 
ASSET_UNLOADED 
ASSET_LOADING 
ASSET_LOADED 

Definition at line 391 of file llfloaterregioninfo.h.


Constructor & Destructor Documentation

LLPanelEstateCovenant::LLPanelEstateCovenant (  ) 

Definition at line 2417 of file llfloaterregioninfo.cpp.

LLPanelEstateCovenant::~LLPanelEstateCovenant (  )  [inline]

Definition at line 354 of file llfloaterregioninfo.h.


Member Function Documentation

void LLPanelEstateCovenant::confirmChangeCovenantCallback ( S32  option,
void userdata 
) [static]

Definition at line 2531 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant().

Referenced by handleDragAndDrop().

void LLPanelEstateCovenant::confirmResetCovenantCallback ( S32  option,
void userdata 
) [static]

Definition at line 2557 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant(), and NULL.

Referenced by resetCovenantID().

bool LLPanelEstateCovenant::estateUpdate ( LLMessageSystem msg  )  [virtual]

Reimplemented from LLPanelRegionInfo.

Definition at line 2469 of file llfloaterregioninfo.cpp.

References llendl, and llinfos.

const LLUUID& LLPanelEstateCovenant::getCovenantID (  )  const [inline]

Definition at line 383 of file llfloaterregioninfo.h.

References mCovenantID.

Referenced by sendChangeCovenantID().

const std::string & LLPanelEstateCovenant::getEstateName (  )  const

Definition at line 2704 of file llfloaterregioninfo.cpp.

References LLTextBox::getText(), and mEstateNameText.

const std::string & LLPanelEstateCovenant::getOwnerName (  )  const

Definition at line 2755 of file llfloaterregioninfo.cpp.

References LLTextBox::getText(), and mEstateOwnerText.

BOOL LLPanelEstateCovenant::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLView.

Definition at line 2497 of file llfloaterregioninfo.cpp.

References ACCEPT_NO, ACCEPT_YES_COPY_SINGLE, LLViewerWindow::alertXml(), LLAgent::canManageEstate(), confirmChangeCovenantCallback(), DAD_NOTECARD, gAgent, gViewerWindow, and TRUE.

void LLPanelEstateCovenant::loadInvItem ( LLInventoryItem itemp  ) 

Definition at line 2572 of file llfloaterregioninfo.cpp.

References ASSET_LOADED, ASSET_LOADING, gAgent, gAssetStorage, LLInventoryItem::getAssetUUID(), LLAgent::getID(), LLAssetStorage::getInvItemAsset(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLAgent::getRegionHost(), LLAgent::getSessionID(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), mAssetStatus, LLUUID::null, onLoadComplete(), sendChangeCovenantID(), setCovenantTextEditor(), and TRUE.

void LLPanelEstateCovenant::onLoadComplete ( LLVFS vfs,
const LLUUID asset_uuid,
LLAssetType::EType  type,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static]

Definition at line 2599 of file llfloaterregioninfo.cpp.

References LLViewerWindow::alertXml(), ASSET_LOADED, LLVFile::getSize(), gViewerStats, gViewerWindow, LLViewerStats::incStat(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_FILE_EMPTY, LL_ERR_INSUFFICIENT_PERMISSIONS, llendl, llerrs, llinfos, llwarns, NULL, LLVFile::read(), LLVFile::READ, S32, and LLViewerStats::ST_DOWNLOAD_FAILED.

Referenced by loadInvItem().

BOOL LLPanelEstateCovenant::postBuild (  )  [virtual]

Reimplemented from LLPanelRegionInfo.

Definition at line 2476 of file llfloaterregioninfo.cpp.

References LLAgent::canManageEstate(), gAgent, LLPanel::getChildByName(), LLPanelRegionInfo::initHelpBtn(), mEditor, mEstateNameText, mEstateOwnerText, mLastModifiedText, NULL, LLPanelRegionInfo::postBuild(), resetCovenantID(), LLButton::setClickedCallback(), LLView::setEnabled(), LLTextEditor::setHandleEditKeysDirectly(), and TRUE.

bool LLPanelEstateCovenant::refreshFromRegion ( LLViewerRegion region  )  [virtual]

Reimplemented from LLPanelRegionInfo.

Definition at line 2423 of file llfloaterregioninfo.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), LLPanel::childGetText(), gAgent, LLPanel::getChildByName(), LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getName(), LLViewerRegion::getRegionFlags(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::newMessage(), LLMessageSystem::nextBlockFast(), LLPanelRegionInfo::refreshFromRegion(), REGION_FLAGS_ALLOW_PARCEL_CHANGES, REGION_FLAGS_BLOCK_LAND_RESELL, LLMessageSystem::sendReliable(), and LLTextBox::setText().

void LLPanelEstateCovenant::resetCovenantID ( void userdata  )  [static]

Definition at line 2549 of file llfloaterregioninfo.cpp.

References LLViewerWindow::alertXml(), confirmResetCovenantCallback(), gViewerWindow, and NULL.

Referenced by postBuild().

void LLPanelEstateCovenant::sendChangeCovenantID ( const LLUUID asset_id  ) 

Definition at line 2675 of file llfloaterregioninfo.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), gAgent, getCovenantID(), LLAgent::getID(), LLFloaterRegionInfo::getLastInvoice(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, LLAgent::sendReliableMessage(), and setCovenantID().

Referenced by loadInvItem().

BOOL LLPanelEstateCovenant::sendUpdate (  )  [protected, virtual]

Reimplemented from LLPanelRegionInfo.

Definition at line 2699 of file llfloaterregioninfo.cpp.

References TRUE.

void LLPanelEstateCovenant::setCovenantID ( const LLUUID id  )  [inline]

Definition at line 384 of file llfloaterregioninfo.h.

References mCovenantID.

Referenced by sendChangeCovenantID(), and updateCovenantText().

void LLPanelEstateCovenant::setCovenantTextEditor ( const std::string &  text  ) 

Definition at line 2765 of file llfloaterregioninfo.cpp.

References mEditor, and LLTextEditor::setText().

Referenced by loadInvItem().

void LLPanelEstateCovenant::setEstateName ( const std::string &  name  ) 

Definition at line 2709 of file llfloaterregioninfo.cpp.

References mEstateNameText, and LLTextBox::setText().

void LLPanelEstateCovenant::setOwnerName ( const std::string &  name  ) 

Definition at line 2760 of file llfloaterregioninfo.cpp.

References mEstateOwnerText, and LLTextBox::setText().

void LLPanelEstateCovenant::updateChild ( LLUICtrl child_ctrl  )  [virtual]

Reimplemented from LLPanelRegionInfo.

Definition at line 2492 of file llfloaterregioninfo.cpp.

void LLPanelEstateCovenant::updateCovenantText ( const std::string &  string,
const LLUUID asset_id 
) [static]

Definition at line 2715 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant(), mEditor, setCovenantID(), and LLTextEditor::setText().

Referenced by onCovenantLoadComplete(), and process_covenant_reply().

void LLPanelEstateCovenant::updateEstateName ( const std::string &  name  )  [static]

Definition at line 2726 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant(), mEstateNameText, and LLTextBox::setText().

Referenced by process_covenant_reply().

void LLPanelEstateCovenant::updateEstateOwnerName ( const std::string &  name  )  [static]

Definition at line 2746 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant(), mEstateOwnerText, and LLTextBox::setText().

Referenced by callbackCacheEstateOwnerName().

void LLPanelEstateCovenant::updateLastModified ( const std::string &  text  )  [static]

Definition at line 2736 of file llfloaterregioninfo.cpp.

References LLFloaterRegionInfo::getPanelCovenant(), mLastModifiedText, and LLTextBox::setText().

Referenced by process_covenant_reply().


Member Data Documentation

EAssetStatus LLPanelEstateCovenant::mAssetStatus [protected]

Definition at line 407 of file llfloaterregioninfo.h.

Referenced by loadInvItem().

LLUUID LLPanelEstateCovenant::mCovenantID [protected]

Definition at line 405 of file llfloaterregioninfo.h.

Referenced by getCovenantID(), and setCovenantID().

LLViewerTextEditor* LLPanelEstateCovenant::mEditor [protected]

Definition at line 406 of file llfloaterregioninfo.h.

Referenced by postBuild(), setCovenantTextEditor(), and updateCovenantText().

LLTextBox* LLPanelEstateCovenant::mEstateNameText [protected]

Definition at line 401 of file llfloaterregioninfo.h.

Referenced by getEstateName(), postBuild(), setEstateName(), and updateEstateName().

LLTextBox* LLPanelEstateCovenant::mEstateOwnerText [protected]

Definition at line 402 of file llfloaterregioninfo.h.

Referenced by getOwnerName(), postBuild(), setOwnerName(), and updateEstateOwnerName().

LLTextBox* LLPanelEstateCovenant::mLastModifiedText [protected]

Definition at line 403 of file llfloaterregioninfo.h.

Referenced by postBuild(), and updateLastModified().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:36 2010 for Second Life Viewer by  doxygen 1.4.7