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 |
Definition at line 49 of file llprefsim.cpp.
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.
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().
Definition at line 304 of file llprefsim.cpp.
References LLDirPicker::instance().
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 & | ||||
) |
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().
std::string LLPrefsIMImpl::mDirectoryVisibility [protected] |
bool LLPrefsIMImpl::mGotPersonalInfo [protected] |
Definition at line 82 of file llprefsim.cpp.
Referenced by apply(), postBuild(), and setPersonalInfo().
LLString LLPrefsIMImpl::mIMBusyResponse [protected] |
BOOL LLPrefsIMImpl::mIMInChatHistory [protected] |
BOOL LLPrefsIMImpl::mIMLogTimestamp [protected] |
BOOL LLPrefsIMImpl::mLogChat [protected] |
BOOL LLPrefsIMImpl::mLogChatTimestamp [protected] |
BOOL LLPrefsIMImpl::mLogIMChat [protected] |
BOOL LLPrefsIMImpl::mLogInstantMessages [protected] |
LLString LLPrefsIMImpl::mLogPath [protected] |
BOOL LLPrefsIMImpl::mLogShowHistory [protected] |
BOOL LLPrefsIMImpl::mLogTimestampDate [protected] |
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] |