LLPrefsIMImpl Class Reference

Inheritance diagram for LLPrefsIMImpl:

Inheritance graph
[legend]
Collaboration diagram for LLPrefsIMImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPrefsIMImpl ()
 ~LLPrefsIMImpl ()
BOOL postBuild ()
void apply ()
void refresh ()
void cancel ()
void setPersonalInfo (const std::string &visibility, bool im_via_email, const std::string &email)
void enableHistory ()

Static Public Member Functions

static void onClickLogPath (void *user_data)
static void onCommitLogging (LLUICtrl *ctrl, void *user_data)

Protected Attributes

BOOL mIMInChatHistory
BOOL mLogInstantMessages
BOOL mLogChat
BOOL mLogShowHistory
BOOL mShowTimestamps
BOOL mIMLogTimestamp
BOOL mLogChatTimestamp
BOOL mLogIMChat
BOOL mLogTimestampDate
LLString mIMBusyResponse
LLString mLogPath
bool mGotPersonalInfo
bool mOriginalIMViaEmail
bool mOriginalHideOnlineStatus
std::string mDirectoryVisibility

Detailed Description

Definition at line 49 of file llprefsim.cpp.


Constructor & Destructor Documentation

LLPrefsIMImpl::LLPrefsIMImpl (  ) 

Definition at line 91 of file llprefsim.cpp.

References LLUICtrlFactory::buildPanel(), and gUICtrlFactory.

LLPrefsIMImpl::~LLPrefsIMImpl (  )  [inline]

Definition at line 53 of file llprefsim.cpp.


Member Function Documentation

void LLPrefsIMImpl::apply (  ) 

Definition at line 188 of file llprefsim.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_IMViaEMail, _PREHASH_SessionID, _PREHASH_UpdateUserInfo, _PREHASH_UserData, LLMessageSystem::addBOOLFast(), LLMessageSystem::addString(), LLMessageSystem::addUUIDFast(), LLSD::asBoolean(), LLPanel::childGetText(), LLPanel::childGetValue(), gAgent, gDirUtilp, LLAgent::getID(), LLDir::getPerAccountChatLogsDir(), LLAgent::getSessionID(), LLControlGroup::getString(), LLUICtrlFactory::getTextEditorByName(), LLTextEditor::getWText(), gMessageSystem, gSavedPerAccountSettings, gSavedSettings, mDirectoryVisibility, mGotPersonalInfo, LLFile::mkdir(), mOriginalHideOnlineStatus, mOriginalIMViaEmail, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLStringBase< T >::replaceChar(), LLStringBase< T >::replaceTabsWithSpaces(), LLAgent::sendReliableMessage(), LLControlGroup::setBOOL(), LLDir::setChatLogsDir(), LLDir::setPerAccountChatLogsDir(), LLControlGroup::setString(), VISIBILITY_DEFAULT(), VISIBILITY_HIDDEN(), and wstring_to_utf8str().

Referenced by LLPrefsIM::apply().

void LLPrefsIMImpl::cancel (  ) 

Definition at line 112 of file llprefsim.cpp.

References gSavedPerAccountSettings, gSavedSettings, mIMBusyResponse, mIMInChatHistory, mIMLogTimestamp, mLogChat, mLogChatTimestamp, mLogIMChat, mLogInstantMessages, mLogPath, mLogShowHistory, mLogTimestampDate, mShowTimestamps, LLControlGroup::setBOOL(), and LLControlGroup::setString().

Referenced by LLPrefsIM::cancel().

void LLPrefsIMImpl::enableHistory (  ) 

Definition at line 173 of file llprefsim.cpp.

References LLPanel::childDisable(), LLPanel::childEnable(), and LLPanel::childGetValue().

Referenced by setPersonalInfo().

void LLPrefsIMImpl::onClickLogPath ( void user_data  )  [static]

Definition at line 304 of file llprefsim.cpp.

References LLDirPicker::instance().

Referenced by postBuild().

void LLPrefsIMImpl::onCommitLogging ( LLUICtrl ctrl,
void user_data 
) [static]

Definition at line 321 of file llprefsim.cpp.

Referenced by postBuild().

BOOL LLPrefsIMImpl::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 127 of file llprefsim.cpp.

References LLPanel::checkRequirements(), LLPanel::childDisable(), LLPanel::childGetText(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetLabelArg(), LLPanel::childSetText(), LLPanel::childSetValue(), FALSE, mGotPersonalInfo, mIMLogTimestamp, mLogChat, mLogChatTimestamp, mLogIMChat, mLogInstantMessages, mLogPath, mLogShowHistory, mLogTimestampDate, mOriginalHideOnlineStatus, mOriginalIMViaEmail, onClickLogPath(), onCommitLogging(), refresh(), LLPanel::requires(), and TRUE.

void LLPrefsIMImpl::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 97 of file llprefsim.cpp.

References LLControlGroup::getBOOL(), LLControlGroup::getString(), gSavedPerAccountSettings, gSavedSettings, mIMBusyResponse, mIMInChatHistory, mIMLogTimestamp, mLogChat, mLogChatTimestamp, mLogIMChat, mLogInstantMessages, mLogPath, mLogShowHistory, mLogTimestampDate, and mShowTimestamps.

Referenced by postBuild().

void LLPrefsIMImpl::setPersonalInfo ( const std::string &  visibility,
bool  im_via_email,
const std::string &  email 
)

Definition at line 248 of file llprefsim.cpp.

References LLPanel::childEnable(), LLPanel::childSetLabelArg(), LLPanel::childSetText(), LLPanel::childSetValue(), enableHistory(), LLControlGroup::getString(), gSavedPerAccountSettings, mDirectoryVisibility, mGotPersonalInfo, mOriginalHideOnlineStatus, mOriginalIMViaEmail, LLStringBase< T >::replaceChar(), utf8str_to_wstring(), VISIBILITY_DEFAULT(), VISIBILITY_HIDDEN(), and wstring_to_utf8str().

Referenced by LLPrefsIM::setPersonalInfo().


Member Data Documentation

std::string LLPrefsIMImpl::mDirectoryVisibility [protected]

Definition at line 87 of file llprefsim.cpp.

Referenced by apply(), and setPersonalInfo().

bool LLPrefsIMImpl::mGotPersonalInfo [protected]

Definition at line 82 of file llprefsim.cpp.

Referenced by apply(), postBuild(), and setPersonalInfo().

LLString LLPrefsIMImpl::mIMBusyResponse [protected]

Definition at line 79 of file llprefsim.cpp.

Referenced by cancel(), and refresh().

BOOL LLPrefsIMImpl::mIMInChatHistory [protected]

Definition at line 69 of file llprefsim.cpp.

Referenced by cancel(), and refresh().

BOOL LLPrefsIMImpl::mIMLogTimestamp [protected]

Definition at line 74 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogChat [protected]

Definition at line 71 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogChatTimestamp [protected]

Definition at line 75 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogIMChat [protected]

Definition at line 76 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogInstantMessages [protected]

Definition at line 70 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

LLString LLPrefsIMImpl::mLogPath [protected]

Definition at line 80 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogShowHistory [protected]

Definition at line 72 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

BOOL LLPrefsIMImpl::mLogTimestampDate [protected]

Definition at line 77 of file llprefsim.cpp.

Referenced by cancel(), postBuild(), and refresh().

bool LLPrefsIMImpl::mOriginalHideOnlineStatus [protected]

Definition at line 86 of file llprefsim.cpp.

Referenced by apply(), postBuild(), and setPersonalInfo().

bool LLPrefsIMImpl::mOriginalIMViaEmail [protected]

Definition at line 83 of file llprefsim.cpp.

Referenced by apply(), postBuild(), and setPersonalInfo().

BOOL LLPrefsIMImpl::mShowTimestamps [protected]

Definition at line 73 of file llprefsim.cpp.

Referenced by cancel(), and refresh().


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