#include <llappviewer.h>
Definition at line 41 of file llappviewer.h.
LLAppViewer::LLAppViewer | ( | ) |
Definition at line 578 of file llappviewer.cpp.
References llendl, llerrs, mMainloopTimeout, NULL, and sInstance.
LLAppViewer::~LLAppViewer | ( | ) | [virtual] |
Definition at line 602 of file llappviewer.cpp.
References mMainloopTimeout, and removeMarkerFile().
static LLAppViewer* LLAppViewer::instance | ( | ) | [inline, static] |
Access to the LLAppViewer singleton.
The LLAppViewer singleton is created in main()/WinMain(). So don't use it in pre-entry (static initialization) code.
Reimplemented from LLApp.
Definition at line 53 of file llappviewer.h.
References sInstance.
Referenced by AEQuitHandler(), badNetworkHandler(), LLPanelGeneral::cancel(), check_offer_throttle(), LLViewerImageList::decodeAllImages(), LLSurface::decompressDCTPatch(), LLFloaterLagMeter::determineClient(), display(), LLViewerImageList::doPrefetchImages(), LLProgressView::draw(), enable_save_into_inventory(), enable_take(), LLAgent::endAnimationUpdateUI(), finish_disconnect(), finish_early_exit(), finish_forced_disconnect(), finish_quit(), force_error_bad_memory_access(), force_error_breakpoint(), force_error_infinite_loop(), force_error_llerror(), force_error_software_exception(), LLFloaterReporter::gatherReport(), handle_disconnect_viewer(), LLViewerWindow::handleCloseRequest(), LLAppViewerLinux::handleCrashReporting(), LLFileQuit::handleEvent(), LLToolsEnableTakeCopy::handleEvent(), LLObjectEnableDelete::handleEvent(), LLProgressView::handleKeyHere(), LLPanelGroup::handleNotifyCallback(), LLViewerWindow::handleQuit(), LLScriptEdCore::handleSaveChangesDialog(), LLPreviewNotecard::handleSaveChangesDialog(), LLPreviewGesture::handleSaveChangesDialog(), handleSyncViewerCrash(), handleViewerCrash(), idle(), idle_startup(), init_client_menu(), init_menus(), LLAppViewerWin32::initHardwareTest(), initWindow(), invalid_message_callback(), LLFloaterAbout::LLFloaterAbout(), LLViewerWindow::LLViewerWindow(), LLPanelLogin::loadLoginPage(), login_callback(), LLProgressView::onCancelButtonClicked(), LLLoginHandler::parse(), LLViewerObject::permCopy(), LLViewerObject::permModify(), LLViewerObject::permMove(), LLViewerObject::permOwnerModify(), LLViewerObject::permTransfer(), LLViewerObject::permYouOwner(), LLPanelGeneral::postBuild(), process_agent_movement_complete(), process_kick_user(), process_logout_reply(), LLPanelGeneral::refresh(), LLWorld::removeRegion(), LLPanelClassified::saveCallback(), send_agent_pause(), send_agent_resume(), send_agent_update(), send_stats(), set_crash_behavior(), set_god_level(), LLViewerWindow::setMenuBackgroundColor(), LLViewerWindow::setNormalControlsVisible(), LLFloaterBuyLandUI::startTransaction(), LLCurrencyUIManager::Impl::startTransaction(), update_dialog_callback(), and LLAgentPilot::updateTarget().
bool LLAppViewer::init | ( | void | ) | [virtual] |
Implements LLApp.
Reimplemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.
Definition at line 611 of file llappviewer.cpp.
References LLViewerWindow::alertXml(), bind_keyboard_functions(), LLControlGroup::controlExists(), CRASH_SETTINGS_FILE, CreateLCDDebugWindows(), FALSE, gColors, gCrashSettings, gCurrentVersion, gDirUtilp, generateSerialNumber(), LLControlGroup::getBOOL(), LLTimer::getElapsedTimeF32(), LLImageJ2C::getEngineInfo(), LLDir::getExpandedFilename(), LLGLManager::getGLInfo(), LLSingleton< LLViewerJoystick >::getInstance(), LLSingleton< LLFeatureManager >::getInstance(), LLSingleton< LLUICtrlFactory >::getInstance(), LLSingleton< LLUIImageList >::getInstance(), LLCPUInfo::getMhz(), LLUUID::getNodeID(), LLMemoryInfo::getPhysicalMemoryClamped(), LLControlGroup::getS32(), LLControlGroup::getString(), LLAlertDialog::getTemplateMessage(), gFrameCount, gGLManager, gLcdScreen, gMACAddress, gNoRender, GPU_CLASS_UNKNOWN, gSavedSettings, gSimFrames, gSimLastTime, gSysCPU, gViewerKeyboard, gViewerWindow, LLViewerJoystick::init(), LLDir::initAppDirs(), initCache(), LLWeb::initClass(), LLUI::initClass(), LLCurl::initClass(), initConfiguration(), initHardwareTest(), initLogging(), initThreads(), initWindow(), LL_DEBUGS, LL_ENDL, LL_ERRS, LL_PATH_APP_SETTINGS, LL_PATH_USER_SETTINGS, LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, llformat(), LLViewerKeyboard::loadBindings(), LLControlGroup::loadFromFile(), LLControlGroup::loadFromFileLegacy(), LLGLManager::mHasRequirements, mNumSessions, mSerialNumber, NULL, OSMB_OK, OSMessageBox(), LLMIMETypes::parseMIMETypes(), LLGroupMgr::parseRoleActions(), LLAgent::parseTeleportMessages(), LLGLManager::printGLInfoString(), S32, LLError::setPrintLocation(), LLControlGroup::setS32(), LLControlGroup::setString(), settings_modify(), settings_setup_listeners(), settings_to_globals(), LLUICtrlFactory::setupPaths(), LLUI::sGLScaleFactor, TYPE_COL4U, ui_audio_callback(), LLViewerJointMesh::updateVectorize(), and writeSystemInfo().
Referenced by LLAppViewerWin32::init(), LLAppViewerMacOSX::init(), LLAppViewerLinux::init(), and main().
bool LLAppViewer::cleanup | ( | ) | [virtual] |
Implements LLApp.
Reimplemented in LLAppViewerWin32.
Definition at line 1108 of file llappviewer.cpp.
References LLVFS::audit(), LLMuteList::cache(), LLWatchdog::cleanup(), LLControlGroup::cleanup(), LLVolumeMgr::cleanup(), LLNotifyBox::cleanup(), LLTransferManager::cleanup(), cleanup_menus(), LLCurl::cleanupClass(), LLLFSThread::cleanupClass(), LLVFSThread::cleanupClass(), LLThreadSafeRefCount::cleanupClass(), LLVFile::cleanupClass(), LLUI::cleanupClass(), LLWorldMapView::cleanupClass(), LLFollowCamMgr::cleanupClass(), LLPostProcess::cleanupClass(), LLWLParamManager::cleanupClass(), LLWaterParamManager::cleanupClass(), LLViewerParcelMgr::cleanupGlobals(), LLSelectMgr::cleanupGlobals(), LLHUDObject::cleanupHUDObjects(), LLTracker::cleanupInstance(), cleanupSavedSettings(), LLViewerObject::cleanupVOClasses(), LLPrimitive::cleanupVolumeManager(), LLKeyframeDataCache::clear(), closeDebug(), LLImageJ2C::closeDSO(), CRASH_SETTINGS_FILE, LLDir::deleteFilesInDir(), disconnectViewer(), display_cleanup(), end_messaging_system(), FALSE, LLPolyMesh::freeAllMeshes(), gAgent, gAssetStorage, gAudiop, gCacheName, gColors, gCrashSettings, gDirUtilp, LLDir::getDirDelimiter(), LLTimer::getElapsedTimeF64(), LLDir::getExpandedFilename(), LLAgent::getID(), getImageDecodeThread(), LLSingleton< LLWatchdog >::getInstance(), LLMuteList::getInstance(), LLSingleton< LLWorldMap >::getInstance(), LLSingleton< LLHUDManager >::getInstance(), LLControlGroup::getString(), getTextureCache(), getTextureFetch(), LLPrimitive::getVolumeManager(), gImageList, gKeyboard, gLcdScreen, gSavedPerAccountSettings, gSavedSettings, gTransferManager, gVFS, gViewerWindow, LL_MAX_PATH, LL_PATH_CACHE, LL_PATH_USER_SETTINGS, llendflush, llendl, llinfos, llwarns, LLWeb::loadURLExternal(), LLError::logToFixedBuffer(), mPurgeOnExit, ms_sleep(), NULL, release_start_screen(), removeCacheFiles(), removeMarkerFile(), LLTimer::reset(), LLWorldMap::reset(), S32, LLURLHistory::saveFile(), LLControlGroup::saveToFile(), LLControlGroup::setU32(), LLMortician::setZealous(), LLViewerImageList::shutdown(), LLQueuedThread::shutdown(), LLAudioEngine::shutdown(), LLHUDManager::shutdownClass(), sImageDecodeThread, sTextureCache, sTextureFetch, LLVoiceClient::terminate(), time_corrected(), TRUE, LLTextureFetch::update(), LLWorkerThread::update(), LLTextureCache::update(), LLLFSThread::updateClass(), and LLVFSThread::updateClass().
Referenced by LLAppViewerWin32::cleanup(), and main().
bool LLAppViewer::mainLoop | ( | ) | [virtual] |
Implements LLApp.
Definition at line 889 of file llappviewer.cpp.
References LLPumpIO::callback(), LLWinDebug::checkExceptionHandler(), disconnectViewer(), display(), FALSE, LLFocusMgr::focusLocked(), LLFastTimer::FTM_FRAME, LLFastTimer::FTM_IDLE, LLFastTimer::FTM_MESSAGES, LLFastTimer::FTM_PUMP, LLFastTimer::FTM_SLEEP, gAPRPoolp, gAres, LLWindow::gatherInput(), gDirUtilp, gDoDisconnect, LLViewerWindow::getActive(), LLFocusMgr::getAppHasFocus(), LLControlGroup::getBOOL(), LLDir::getCAFile(), LLTimer::getElapsedTimeF32(), LLTimer::getElapsedTimeF64(), getImageDecodeThread(), LLSingleton< LLViewerJoystick >::getInstance(), LLWindow::getMinimized(), LLControlGroup::getS32(), LLViewerWindow::getShowProgress(), LLStartUp::getStartupState(), getTextureCache(), getTextureFetch(), LLWindow::getVisible(), gFocusMgr, gFrameCount, gFrameTimeSeconds, gKeyboard, gLcdScreen, gNoRender, gPeriodicSlowFrame, gRandomizeFramerate, gSavedSettings, gViewerWindow, idle(), LLVoiceClient::init(), LLVoiceChannel::initClass(), LLApp::isExiting(), llclamp(), llendflush, llendl, llinfos, llmin(), llwarns, mMainloopTimeout, ms_sleep(), LLMemType::MTYPE_MAIN, LLViewerWindow::mWindow, mYieldTime, LLThread::pause(), LLWatchdogTimeout::ping(), LLAres::process(), LLPumpIO::pump(), LLTimer::reset(), LLFastTimer::reset(), S32, saveFinalSnapshot(), LLViewerJoystick::scanJoystick(), LLKeyboard::scanKeyboard(), LLCurl::setCAFile(), LLViewerJoystick::setNeedsReset(), LLHTTPClient::setPump(), LLWatchdogTimeout::setTimeout(), STATE_STARTED, LLWatchdogTimeout::stop(), LLTextureFetch::update(), LLWorkerThread::update(), LLTextureCache::update(), LLFloaterSnapshot::update(), LLLFSThread::updateClass(), LLVFSThread::updateClass(), and LLLCD::UpdateDisplay().
Referenced by main(), and WINMAIN().
void LLAppViewer::forceQuit | ( | ) |
Definition at line 2501 of file llappviewer.cpp.
References LLApp::setQuitting().
Referenced by finish_disconnect(), finish_early_exit(), finish_forced_disconnect(), LLViewerWindow::handleQuit(), idle(), idle_startup(), idleShutdown(), process_logout_reply(), requestQuit(), update_dialog_callback(), and LLAgentPilot::updateTarget().
void LLAppViewer::requestQuit | ( | ) |
Definition at line 2506 of file llappviewer.cpp.
References LLFloaterView::closeAllChildren(), LLHUDManager::createViewerEffect(), forceQuit(), gAgent, LLAgent::getEffectColor(), LLSingleton< LLHUDManager >::getInstance(), LLAgent::getPositionGlobal(), LLAgent::getRegion(), LLStartUp::getStartupState(), gFloaterView, LLHUDObject::LL_HUD_EFFECT_POINT, llinfos, mQuitRequested, LLTimer::reset(), send_stats(), LLHUDManager::sendEffects(), LLHUDEffect::setColor(), LLHUDObject::setPositionGlobal(), STATE_STARTED, and TRUE.
Referenced by finish_quit(), and LLProgressView::onCancelButtonClicked().
void LLAppViewer::userQuit | ( | ) |
Definition at line 2546 of file llappviewer.cpp.
References LLViewerWindow::alertXml(), finish_quit(), gViewerWindow, and NULL.
Referenced by AEQuitHandler(), LLViewerWindow::handleCloseRequest(), LLFileQuit::handleEvent(), LLProgressView::handleKeyHere(), and login_callback().
void LLAppViewer::earlyExit | ( | const LLString & | msg | ) |
Definition at line 2556 of file llappviewer.cpp.
References finish_early_exit(), gDoDisconnect, llwarns, NULL, LLAlertDialog::showCritical(), and TRUE.
Referenced by idle_startup().
void LLAppViewer::forceExit | ( | S32 | arg | ) |
Definition at line 2566 of file llappviewer.cpp.
References removeMarkerFile().
Referenced by LLViewerWindow::LLViewerWindow().
void LLAppViewer::abortQuit | ( | ) |
Definition at line 2574 of file llappviewer.cpp.
References llinfos, and mQuitRequested.
Referenced by LLPanelGroup::handleNotifyCallback(), LLScriptEdCore::handleSaveChangesDialog(), LLPreviewNotecard::handleSaveChangesDialog(), LLPreviewGesture::handleSaveChangesDialog(), and LLPanelClassified::saveCallback().
bool LLAppViewer::quitRequested | ( | ) | [inline] |
bool LLAppViewer::logoutRequestSent | ( | ) | [inline] |
Definition at line 71 of file llappviewer.h.
References mLogoutRequestSent.
Referenced by idle(), idleShutdown(), and send_agent_update().
void LLAppViewer::closeDebug | ( | ) |
Definition at line 2121 of file llappviewer.cpp.
References gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_LOGS, llinfos, and LLSDSerialize::toPrettyXML().
Referenced by cleanup(), and handleViewerCrash().
const LLOSInfo& LLAppViewer::getOSInfo | ( | ) | const [inline] |
Definition at line 75 of file llappviewer.h.
References mSysOSInfo.
Referenced by LLAppViewerWin32::disableWinErrorReporting(), send_stats(), and writeSystemInfo().
virtual bool LLAppViewer::beingDebugged | ( | ) | [inline, virtual] |
Reimplemented in LLAppViewerLinux.
Definition at line 78 of file llappviewer.h.
Referenced by handleViewerCrash().
S32 LLAppViewer::getCrashBehavior | ( | ) | const [inline] |
Definition at line 80 of file llappviewer.h.
References mCrashBehavior.
Referenced by LLAppViewerWin32::handleCrashReporting(), LLAppViewerLinux::handleCrashReporting(), and LLPanelGeneral::refresh().
void LLAppViewer::setCrashBehavior | ( | S32 | cb | ) |
Definition at line 2362 of file llappviewer.cpp.
References CRASH_BEHAVIOR_SETTING, gCrashSettings, mCrashBehavior, and LLControlGroup::setS32().
Referenced by LLPanelGeneral::cancel(), and set_crash_behavior().
virtual void LLAppViewer::handleCrashReporting | ( | ) | [pure virtual] |
Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.
Referenced by handleViewerCrash().
virtual void LLAppViewer::handleSyncCrashTrace | ( | ) | [pure virtual] |
Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.
Referenced by handleSyncViewerCrash().
void LLAppViewer::handleViewerCrash | ( | ) | [static] |
Definition at line 2241 of file llappviewer.cpp.
References beingDebugged(), closeDebug(), ERROR_MARKER_FILE_NAME, gAgent, gDirUtilp, LLViewerParcelMgr::getAgentParcel(), LLDir::getCAFile(), LLMessageSystem::getCircuitInfo(), LLDir::getCurPath(), LLDir::getExecutablePathAndName(), LLDir::getExpandedFilename(), LLHost::getHostName(), LLWorld::getInfo(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getMediaURL(), LLParcel::getMusicURL(), LLViewerRegion::getName(), LLAgent::getRegion(), LLAgent::getRegionHost(), LLControlGroup::getString(), gLLErrorActivated, gLogoutInProgress, gMessageSystem, gSavedSettings, handleCrashReporting(), instance(), LAST_EXEC_LLERROR_CRASH, LAST_EXEC_LOGOUT_CRASH, LAST_EXEC_OTHER_CRASH, ll_apr_file_open(), LL_APR_W, LL_ENDL, LL_INFOS, LL_PATH_LOGS, LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_WARNS, LLERROR_MARKER_FILE_NAME, llinfos, llofstream, LLError::logToFile(), mReportedCrash, removeMarkerFile(), LLMessageSystem::stopLogging(), LLMessageSystem::summarizeLogs(), and TRUE.
Referenced by badNetworkHandler(), exceptionTerminateHandler(), main(), and WINMAIN().
void LLAppViewer::handleSyncViewerCrash | ( | ) | [static] |
Definition at line 2234 of file llappviewer.cpp.
References handleSyncCrashTrace(), and instance().
Referenced by badNetworkHandler(), exceptionTerminateHandler(), and main().
static LLTextureCache* LLAppViewer::getTextureCache | ( | ) | [inline, static] |
Definition at line 88 of file llappviewer.h.
References sTextureCache.
Referenced by cleanup(), LLViewerImageList::decodeAllImages(), LLGLTexMemBar::draw(), initCache(), initThreads(), mainLoop(), purgeCache(), LLViewerWindow::stopGL(), and update_texture_fetch().
static LLWorkerThread* LLAppViewer::getImageDecodeThread | ( | ) | [inline, static] |
Definition at line 89 of file llappviewer.h.
References sImageDecodeThread.
Referenced by cleanup(), LLViewerImageList::decodeAllImages(), initThreads(), mainLoop(), LLViewerWindow::stopGL(), and update_texture_fetch().
static LLTextureFetch* LLAppViewer::getTextureFetch | ( | ) | [inline, static] |
Definition at line 90 of file llappviewer.h.
References sTextureFetch.
Referenced by LLViewerImage::calcDecodePriority(), cleanup(), LLViewerImageList::decodeAllImages(), LLGLTexMemBar::draw(), LLTextureBar::draw(), LLTextureView::handleMouseDown(), LLTextureBar::handleMouseDown(), mainLoop(), LLViewerImageList::receiveImageHeader(), LLViewerImageList::receiveImagePacket(), LLViewerImage::setIsMissingAsset(), LLViewerWindow::stopGL(), update_texture_fetch(), LLViewerImage::updateFetch(), and LLViewerImage::~LLViewerImage().
const std::string& LLAppViewer::getSerialNumber | ( | ) | [inline] |
Definition at line 92 of file llappviewer.h.
References mSerialNumber.
Referenced by idle_startup().
bool LLAppViewer::getPurgeCache | ( | ) | const [inline] |
const LLString & LLAppViewer::getSecondLifeTitle | ( | ) | const |
Definition at line 2814 of file llappviewer.cpp.
Referenced by badNetworkHandler(), check_offer_throttle(), LLProgressView::draw(), LLAppViewerLinux::handleCrashReporting(), idle_startup(), LLAppViewerWin32::initHardwareTest(), LLFloaterAbout::LLFloaterAbout(), and update_dialog_callback().
const LLString & LLAppViewer::getWindowTitle | ( | ) | const |
Definition at line 2819 of file llappviewer.cpp.
void LLAppViewer::addLoginURI | ( | const std::string & | uri | ) |
Definition at line 2851 of file llappviewer.cpp.
References getLoginURIs(), gGridChoice, gGridInfo, gLoginURIs, GRID_INFO_COUNT, GRID_INFO_OTHER, and i.
Referenced by initConfiguration().
void LLAppViewer::setHelperURI | ( | const std::string & | uri | ) |
Definition at line 2874 of file llappviewer.cpp.
References gHelperURI.
Referenced by initConfiguration().
const std::vector< std::string > & LLAppViewer::getLoginURIs | ( | ) | const |
Definition at line 2831 of file llappviewer.cpp.
References gGridChoice, gGridInfo, and gLoginURIs.
Referenced by addLoginURI(), idle_startup(), and isInProductionGrid().
const std::string & LLAppViewer::getHelperURI | ( | ) | const |
Definition at line 2841 of file llappviewer.cpp.
References gGridChoice, gGridInfo, gHelperURI, and LLGridData::mHelperURI.
Referenced by LLFloaterBuyLandUI::startTransaction(), and LLCurrencyUIManager::Impl::startTransaction().
void LLAppViewer::resetURIs | ( | ) | const |
Definition at line 2824 of file llappviewer.cpp.
References gHelperURI, and gLoginURIs.
Referenced by idle_startup(), LLPanelLogin::loadLoginPage(), and LLLoginHandler::parse().
void LLAppViewer::forceDisconnect | ( | const LLString & | msg | ) |
Definition at line 2895 of file llappviewer.cpp.
References LLViewerWindow::alertXml(), finish_disconnect(), finish_forced_disconnect(), gDoDisconnect, LLStartUp::getStartupState(), gViewerWindow, STATE_STARTED, LLAgent::sTeleportErrorMessages, and TRUE.
Referenced by badNetworkHandler(), handle_disconnect_viewer(), process_agent_movement_complete(), process_kick_user(), and LLWorld::removeRegion().
void LLAppViewer::badNetworkHandler | ( | ) |
Definition at line 2927 of file llappviewer.cpp.
References LLMessageSystem::dumpPacketToLog(), forceDisconnect(), LLWinDebug::generateCrashStacks(), getSecondLifeTitle(), gMessageSystem, handleSyncViewerCrash(), handleViewerCrash(), instance(), mPurgeOnExit, NULL, and TRUE.
Referenced by LLSurface::decompressDCTPatch(), and invalid_message_callback().
bool LLAppViewer::hasSavedFinalSnapshot | ( | ) | [inline] |
Definition at line 109 of file llappviewer.h.
References mSavedFinalSnapshot.
Referenced by idle().
void LLAppViewer::saveFinalSnapshot | ( | ) |
Definition at line 2961 of file llappviewer.cpp.
References LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLAgent::changeCameraToThirdPerson(), FALSE, gAgent, gDirUtilp, LLDir::getDirDelimiter(), LLDir::getLindenUserDir(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gNoRender, gSavedSettings, gViewerWindow, idle(), mSavedFinalSnapshot, LLViewerWindow::saveSnapshot(), SCREEN_LAST_FILENAME, LLControlGroup::setBOOL(), LLViewerWindow::setCursor(), LLControlGroup::setVector3d(), TRUE, and UI_CURSOR_WAIT.
Referenced by idleShutdown(), and mainLoop().
void LLAppViewer::loadNameCache | ( | ) |
Definition at line 2981 of file llappviewer.cpp.
References LLFile::fopen(), gCacheName, gDirUtilp, LLDir::getExpandedFilename(), LLCacheName::importFile(), LL_PATH_CACHE, and llifstream.
Referenced by idle_startup().
void LLAppViewer::saveNameCache | ( | ) |
Definition at line 3003 of file llappviewer.cpp.
References LLCacheName::exportFile(), gCacheName, gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_CACHE, and llofstream.
Referenced by disconnectViewer().
bool LLAppViewer::isInProductionGrid | ( | ) |
Definition at line 3016 of file llappviewer.cpp.
References getLoginURIs(), gGridInfo, and GRID_INFO_AGNI.
Referenced by enable_save_into_inventory(), enable_take(), LLObjectEnableDelete::handleEvent(), and LLViewerWindow::setNormalControlsVisible().
void LLAppViewer::removeMarkerFile | ( | bool | leave_logout_marker = false |
) |
Definition at line 2486 of file llappviewer.cpp.
References ll_apr_file_remove(), LL_DEBUGS, LL_ENDL, mLogoutMarkerFile, mLogoutMarkerFileName, mMarkerFile, mMarkerFileName, and NULL.
Referenced by cleanup(), forceExit(), handleViewerCrash(), initConfiguration(), update_dialog_callback(), and ~LLAppViewer().
void LLAppViewer::forceErrorLLError | ( | ) | [virtual] |
Definition at line 3683 of file llappviewer.cpp.
References llerrs.
Referenced by force_error_llerror(), and initWindow().
void LLAppViewer::forceErrorBreakpoint | ( | ) | [virtual] |
Definition at line 3688 of file llappviewer.cpp.
Referenced by force_error_breakpoint().
void LLAppViewer::forceErrorBadMemoryAccess | ( | ) | [virtual] |
Definition at line 3696 of file llappviewer.cpp.
Referenced by force_error_bad_memory_access().
void LLAppViewer::forceErrorInifiniteLoop | ( | ) | [virtual] |
Definition at line 3703 of file llappviewer.cpp.
Referenced by force_error_infinite_loop().
void LLAppViewer::forceErrorSoftwareException | ( | ) | [virtual] |
Definition at line 3712 of file llappviewer.cpp.
Referenced by force_error_software_exception().
void LLAppViewer::loadSettingsFromDirectory | ( | ELLPath | path_index | ) |
Definition at line 1458 of file llappviewer.cpp.
References LLSD::asString(), LLSD::beginMap(), LLSD::endMap(), gDirUtilp, LLDir::getExpandedFilename(), gSettings, LL_PATH_USER_SETTINGS, llendl, llinfos, llwarns, mSettingsFileList, and sGlobalSettingsName.
Referenced by idle_startup(), and initConfiguration().
std::string LLAppViewer::getSettingsFileName | ( | const std::string & | file | ) |
Definition at line 1502 of file llappviewer.cpp.
References LLSD::asString(), LLSD::has(), and mSettingsFileList.
Referenced by idle_startup(), and initConfiguration().
void LLAppViewer::startMainloopTimeout | ( | F32 | secs = -1.0f |
) |
Definition at line 3718 of file llappviewer.cpp.
References LLControlGroup::getF32(), gSavedSettings, mMainloopTimeout, LLWatchdogTimeout::setTimeout(), and LLWatchdogTimeout::start().
Referenced by idle_startup(), and send_agent_resume().
void LLAppViewer::stopMainloopTimeout | ( | ) |
Definition at line 3729 of file llappviewer.cpp.
References mMainloopTimeout, and LLWatchdogTimeout::stop().
Referenced by send_agent_pause().
bool LLAppViewer::initWindow | ( | ) | [protected, virtual] |
Definition at line 2044 of file llappviewer.cpp.
References FALSE, forceErrorLLError(), gCrashOnStartup, LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLControlGroup::getS32(), LLControlGroup::getString(), LLViewerWindow::getWindow(), gNoRender, gPipeline, gSavedSettings, gViewerWindow, LLSplashScreen::hide(), LLPipeline::init(), LLViewerWindow::initBase(), LLViewerWindow::initGLDefaults(), instance(), LL_ENDL, LL_INFOS, LLWindow::maximize(), LLViewerWindow::mWindow, LLAlertDialog::parseAlerts(), LLNotifyBox::parseNotify(), LLTrans::parseStrings(), LLControlGroup::saveToFile(), LLControlGroup::setBOOL(), LLViewerWindow::setCursor(), LLWindow::setNativeAspectRatio(), LLWindow::show(), stop_glerror, LLUI::sWindow, LLViewerWindow::toggleFullscreen(), TRUE, and UI_CURSOR_WAIT.
Referenced by init().
bool LLAppViewer::initLogging | ( | ) | [protected, virtual] |
Reimplemented in LLAppViewerLinux.
Definition at line 1431 of file llappviewer.cpp.
References errorCallback(), gDirUtilp, LLDir::getExpandedFilename(), LLError::initForApplication(), LL_PATH_APP_SETTINGS, LL_PATH_LOGS, LLError::logToFile(), LLFile::remove(), LLFile::rename(), and LLError::setFatalFunction().
Referenced by init(), and LLAppViewerLinux::initLogging().
virtual void LLAppViewer::initConsole | ( | ) | [inline, protected, virtual] |
Reimplemented in LLAppViewerWin32.
Definition at line 149 of file llappviewer.h.
Referenced by initConfiguration(), and LLAppViewerWin32::initConsole().
virtual bool LLAppViewer::initHardwareTest | ( | ) | [inline, protected, virtual] |
Reimplemented in LLAppViewerWin32.
Definition at line 150 of file llappviewer.h.
Referenced by init().
virtual bool LLAppViewer::initParseCommandLine | ( | LLCommandLineParser & | clp | ) | [inline, protected, virtual] |
Reimplemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.
Definition at line 152 of file llappviewer.h.
Referenced by initConfiguration().
virtual std::string LLAppViewer::generateSerialNumber | ( | ) | [protected, pure virtual] |
Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.
Referenced by init().
bool LLAppViewer::initThreads | ( | ) | [private] |
Definition at line 1395 of file llappviewer.cpp.
References getImageDecodeThread(), LLSingleton< LLWatchdog >::getInstance(), getTextureCache(), LLWatchdog::init(), LLImageWorker::initClass(), LLLFSThread::initClass(), LLVFSThread::initClass(), and LLImageJ2C::openDSO().
Referenced by init().
bool LLAppViewer::initConfiguration | ( | ) | [private] |
Definition at line 1511 of file llappviewer.cpp.
References LLXmlTree::addAttributeString(), LLFirstUse::addConfigVariable(), addLoginURI(), anotherInstanceRunning(), LLSD::asString(), LLControlGroupCLP::configure(), FALSE, LLApp::fork(), gCrashOnStartup, gCrashSettings, gDirUtilp, LLDir::getAppRODataDir(), LLControlGroup::getBOOL(), LLXmlTreeNode::getChildByName(), LLXmlTreeNode::getContents(), LLControlGroup::getControl(), LLDir::getDirDelimiter(), LLCommandLineParser::getErrorMessage(), LLDir::getExpandedFilename(), LLXmlTreeNode::getFastAttributeBOOL(), LLWindow::getFontListSans(), LLSingleton< LLUICtrlFactory >::getInstance(), LLControlGroup::getLLSD(), LLCommandLineParser::getOption(), LLXmlTree::getRoot(), LLControlGroup::getS32(), getSettingsFileName(), LLDir::getSkinDir(), LLControlGroup::getString(), LLURLSimString::getURL(), LLControlVariable::getValue(), gHideLinks, gLastExecEvent, gLastRunVersion, gSavedPerAccountSettings, gSavedSettings, gSettings, gStartTime, gSysCPU, LLCPUInfo::hasAltivec(), LLCommandLineParser::hasOption(), init_apple_menu(), initConsole(), initGridChoice(), initMarkerFile(), initParseCommandLine(), LLURLDispatcher::isSLURL(), LLURLDispatcher::isSLURLCommand(), LAST_EXEC_FROZE, LL_CHANNEL, LL_PATH_APP_SETTINGS, LL_PATH_TOP_SKIN, LL_PATH_USER_SETTINGS, llendl, llerrs, llinfos, llwarns, LLControlGroup::loadFromFile(), loadSettingsFromDirectory(), mSecondInstance, mSettingsFileList, mYieldTime, LLCommandLineParser::notify(), LLStringBase< char >::null, NULL, OSBTN_YES, OSMB_OK, OSMB_YESNO, OSMessageBox(), LLURLSimString::parse(), LLAlertDialog::parseAlerts(), LLXmlTree::parseFile(), removeMarkerFile(), S32, sCrashSettingsName, send_url_to_other_instance(), LLControlGroup::setBOOL(), setHelperURI(), LLDir::setSkinFolder(), LLURLSimString::setString(), LLControlGroup::setString(), LLControlVariable::setValue(), LLPrimitive::setVolumeManager(), sGlobalSettingsName, LLSplashScreen::show(), sPerAccountSettingsName, LLStartUp::sSLURLCommand, totalTime(), TRUE, LLStringBase< char >::truncate(), and LLSplashScreen::update().
Referenced by init().
bool LLAppViewer::initCache | ( | ) | [private] |
Definition at line 2580 of file llappviewer.cpp.
References LLDir::deleteFilesInDir(), gDirUtilp, LLControlGroup::getBOOL(), LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LLDir::getNextFileInDir(), LLControlGroup::getS32(), LLControlGroup::getString(), getTextureCache(), LLControlGroup::getU32(), LLVFS::getValidState(), gSavedSettings, gVFS, LLTextureCache::initCache(), LLVFile::initClass(), LLVFS::isValid(), LL_DEBUGS, LL_ENDL, LL_INFOS, LL_MAX_PATH, LL_PATH_APP_SETTINGS, LL_PATH_CACHE, LL_WARNS, llmin(), mPurgeCache, mSecondInstance, NULL, purgeCache(), LLFile::remove(), LLFile::rename(), S32, LLControlGroup::setBOOL(), LLDir::setCacheDir(), LLControlGroup::setS32(), LLControlGroup::setString(), LLControlGroup::setU32(), LLFile::stat(), LLSplashScreen::update(), VFS_DATA_FILE_BASE, VFS_INDEX_FILE_BASE, and VFSVALID_BAD_CORRUPT.
Referenced by init().
void LLAppViewer::purgeCache | ( | ) | [private] |
Definition at line 2806 of file llappviewer.cpp.
References LLDir::deleteFilesInDir(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), getTextureCache(), LL_INFOS, LL_PATH_CACHE, and LLTextureCache::purgeCache().
Referenced by initCache().
void LLAppViewer::cleanupSavedSettings | ( | ) | [private] |
Definition at line 2130 of file llappviewer.cpp.
References FALSE, gAgent, gAllowIdleAFK, gAllowTapTapHoldRun, gDebugView, gDebugWindowProc, LLWindow::getFullscreen(), LLWindow::getMaximized(), LLWindow::getPosition(), LLView::getVisible(), gHandleKeysAsync, gMapScale, gMiniMapScale, gNoRender, gSavedSettings, gShowObjectUpdates, gViewerWindow, LLDebugView::mDebugConsolep, LLAgent::mDrawDistance, LLDebugView::mFloaterStatsp, LLAgent::mInitialized, LLViewerWindow::mWindow, LLCoord::mX, LLCoord::mY, LLControlGroup::setBOOL(), LLControlGroup::setF32(), LLControlGroup::setS32(), LLHoverView::sShowHoverTips, and TRUE.
Referenced by cleanup().
void LLAppViewer::removeCacheFiles | ( | const char * | filemask | ) | [private] |
Definition at line 2188 of file llappviewer.cpp.
References LLDir::deleteFilesInDir(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LL_MAX_PATH, and LL_PATH_CACHE.
Referenced by cleanup().
void LLAppViewer::writeSystemInfo | ( | ) | [private] |
Definition at line 2195 of file llappviewer.cpp.
References LLCPUInfo::getCPUString(), LLCPUInfo::getFamily(), LLCPUInfo::getMhz(), getOSInfo(), LLOSInfo::getOSStringSimple(), LLMemoryInfo::getPhysicalMemoryKB(), LLControlGroup::getString(), gSavedSettings, gSysCPU, LLCPUInfo::hasAltivec(), LLCPUInfo::hasSSE(), LLCPUInfo::hasSSE2(), LL_ENDL, LL_INFOS, LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, llformat(), and LLError::logFileName().
Referenced by init().
bool LLAppViewer::anotherInstanceRunning | ( | ) | [private] |
Definition at line 2368 of file llappviewer.cpp.
References FALSE, gDirUtilp, LLDir::getExpandedFilename(), ll_apr_file_open(), LL_APR_RB, LL_APR_WB, LL_DEBUGS, LL_ENDL, LL_INFOS, LL_PATH_LOGS, MARKER_FILE_NAME, NULL, and TRUE.
Referenced by initConfiguration(), and initMarkerFile().
void LLAppViewer::initMarkerFile | ( | ) | [private] |
Definition at line 2402 of file llappviewer.cpp.
References anotherInstanceRunning(), ERROR_MARKER_FILE_NAME, gDirUtilp, LLDir::getExpandedFilename(), gLastExecEvent, LAST_EXEC_FROZE, LAST_EXEC_LLERROR_CRASH, LAST_EXEC_LOGOUT_CRASH, LAST_EXEC_LOGOUT_FROZE, LAST_EXEC_OTHER_CRASH, ll_apr_file_open(), ll_apr_file_remove(), LL_APR_RB, LL_APR_W, LL_DEBUGS, LL_ENDL, LL_INFOS, LL_PATH_LOGS, LLERROR_MARKER_FILE_NAME, llinfos, LOGOUT_MARKER_FILE_NAME, MARKER_FILE_NAME, mMarkerFile, mMarkerFileName, and NULL.
Referenced by initConfiguration().
void LLAppViewer::idle | ( | ) | [private] |
Definition at line 3047 of file llappviewer.cpp.
References LLFrameStats::addFrameData(), LLFrameStats::AGENT_MISC, AGENT_UPDATES_PER_SECOND, LLFrameStats::AUDIO, audio_update_listener(), audio_update_volume(), audio_update_wind(), LLAgent::autoPilot(), LLCallbackList::callFunctions(), LLFrameStats::CLEAN_DEAD, LLViewerObjectList::cleanDeadObjects(), LLDrawable::cleanupDeadDrawables(), LLHUDManager::cleanupEffects(), LLAgent::controlFlagsDirty(), LLSelectMgr::deselectAllIfTooFar(), forceQuit(), LLFastTimer::FTM_AUDIO_UPDATE, LLFastTimer::FTM_CLEANUP, LLFastTimer::FTM_LOD_UPDATE, LLFastTimer::FTM_NETWORK, LLFastTimer::FTM_OBJECTLIST_UPDATE, LLFastTimer::FTM_REGION_UPDATE, LLFastTimer::FTM_WORLD_UPDATE, gAgent, gAgentPilot, gAudiop, gDisconnected, LLWind::getAverage(), LLControlGroup::getBOOL(), LLAgent::getControlFlags(), LLViewerWindow::getCurrentMouse(), LLCloudLayer::getDensityRegion(), LLTimer::getElapsedTimeAndResetF32(), LLFrameTimer::getElapsedTimeF32(), LLTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLViewerJoystick >::getInstance(), LLSingleton< LLHUDManager >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLSingleton< LLWorld >::getInstance(), LLAgent::getPositionGlobal(), LLStartUp::getStartupState(), LLWind::getVelocity(), gEventNotifier, gFPSClamped, gFrameCount, gFrameDTClamped, gFrameStats, gGestureManager, gIdleCallbacks, gNoRender, gObjectList, gPipeline, gSavedSettings, gSky, gViewerWindow, gVLManager, gWindVec, LLViewerWindow::handlePerFrameHover(), hasSavedFinalSnapshot(), LLAudioEngine::idle(), idle_afk_check(), LLFrameStats::IDLE_NETWORK, idle_startup(), idleNetwork(), idleShutdown(), instance(), llclamp(), llinfos, logoutRequestSent(), LLViewerRegion::mCloudLayer, LLViewerObjectList::mNumDeadObjectUpdates, LLViewerObjectList::mNumUnknownKills, LLViewerObjectList::mNumUnknownUpdates, LLViewerJoystick::moveFlycam(), LLViewerJoystick::moveObjects(), LLAgent::moveYaw(), mQuitRequested, LLViewerRegion::mWind, LLCoord::mX, LLCoord::mY, LLFrameStats::OBJECT_UPDATE, LLSky::propagateHeavenlyBodies(), request_initial_instant_messages(), LLFrameTimer::reset(), reset_statistics(), LLWorld::resolveRegionGlobal(), SEC_TO_MICROSEC, send_agent_update(), send_stats(), SEND_STATS_PERIOD, LLHUDManager::sendEffects(), LLSky::setCloudDensityAtAgent(), LLWorld::setSpaceTimeUSec(), LLVector3::setVec(), LLSky::setWind(), LLFrameStats::start(), STATE_STARTED, stop_glerror, TRUE, LLVLManager::unpackData(), LLViewerObjectList::update(), LLGestureManager::update(), LLEventNotifier::update(), LLFrameStats::UPDATE_EFFECTS, LLFrameStats::UPDATE_MOVE, LLFrameStats::UPDATE_PARTICLES, update_statistics(), LLAgent::updateAgentPosition(), LLViewerObjectList::updateApparentAngles(), LLAgent::updateCamera(), LLMortician::updateClass(), LLEventTimer::updateClass(), LLWorld::updateClouds(), LLSelectMgr::updateEffects(), LLFrameTimer::updateFrameTime(), LLCriticalDamp::updateInterpolants(), LLPipeline::updateMove(), LLWorld::updateParticles(), LLWorld::updateRegions(), LLAgentPilot::updateTarget(), and LLWorld::updateVisibilities().
Referenced by mainLoop(), and saveFinalSnapshot().
void LLAppViewer::idleShutdown | ( | ) | [private] |
Definition at line 3417 of file llappviewer.cpp.
References LLModalDialog::activeCount(), LLFloaterView::allChildrenClosed(), LLIMMgr::disconnectAllSessions(), forceQuit(), gAssetStorage, LLTimer::getElapsedTimeF32(), LLAssetStorage::getNumPendingUploads(), gFloaterView, gIMMgr, gLogoutMaxTime, gViewerWindow, llmax(), logoutRequestSent(), MAX_STRING, S32, saveFinalSnapshot(), sendLogoutRequest(), LLViewerWindow::setProgressPercent(), LLViewerWindow::setProgressString(), LLViewerWindow::setShowProgress(), and TRUE.
Referenced by idle().
void LLAppViewer::idleNetwork | ( | ) | [private] |
Definition at line 3531 of file llappviewer.cpp.
References LLStat::addValue(), CHECK_MESSAGES_DEFAULT_MAX_TIME, LLMessageSystem::checkAllMessages(), LLAssetStorage::checkForTimeouts(), FALSE, LLFastTimer::FTM_IDLE_NETWORK, gAgent, gAssetStorage, gCacheName, gDoDisconnect, LLControlGroup::getBOOL(), LLTimer::getElapsedTimeF32(), gFrameCount, gMessageSystem, gObjectList, gPacketsIn, gPrintMessagesThisFrame, gSavedSettings, gViewerThrottle, gXferManager, llinfos, MESSAGE_MAX_PER_FRAME, LLViewerObjectList::mNumNewObjects, LLViewerObjectList::mNumNewObjectsStat, LLMessageSystem::processAcks(), LLCacheName::processPending(), LLAgent::resetControlFlags(), LLXferManager::retransmitUnackedPackets(), S32, stop_glerror, and LLViewerThrottle::updateDynamicThrottle().
Referenced by idle().
void LLAppViewer::sendLogoutRequest | ( | ) | [private] |
Definition at line 3487 of file llappviewer.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_LogoutRequest, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, gDirUtilp, LLDir::getExpandedFilename(), LLAgent::getID(), LLAgent::getSessionID(), gLogoutInProgress, gLogoutMaxTime, gMessageSystem, gVoiceClient, LLVoiceClient::leaveChannel(), ll_apr_file_open(), LL_APR_W, LL_PATH_LOGS, llinfos, llwarns, LOGOUT_MARKER_FILE_NAME, LOGOUT_REQUEST_TIME, mLogoutMarkerFile, mLogoutMarkerFileName, mLogoutRequestSent, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLTimer::reset(), LLAgent::sendReliableMessage(), and TRUE.
Referenced by idleShutdown().
void LLAppViewer::disconnectViewer | ( | ) | [private] |
Definition at line 3624 of file llappviewer.cpp.
References LLInventoryModel::cache(), LLAgent::cleanup(), LLInventoryView::cleanup(), cleanup_xfer_manager(), LLSelectMgr::deselectAll(), LLWorld::destroyClass(), LLFrameStats::dump(), gAgent, gDisconnected, LLAgent::getFlying(), LLAgent::getID(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLAgent::getInventoryRootID(), gFloaterView, gFrameStats, gInventory, gNoRender, gSavedSettings, llinfos, LLUUID::notNull(), LLFloaterView::restoreAll(), saveNameCache(), LLControlGroup::setBOOL(), and TRUE.
Referenced by cleanup(), and mainLoop().
const std::string LLAppViewer::sGlobalSettingsName = "Global" [static] |
Definition at line 132 of file llappviewer.h.
Referenced by initConfiguration(), and loadSettingsFromDirectory().
const std::string LLAppViewer::sPerAccountSettingsName = "PerAccount" [static] |
const std::string LLAppViewer::sCrashSettingsName = "CrashSettings" [static] |
LLAppViewer * LLAppViewer::sInstance = NULL [static, private] |
bool LLAppViewer::mSecondInstance [private] |
LLString LLAppViewer::mMarkerFileName [private] |
Definition at line 187 of file llappviewer.h.
Referenced by initMarkerFile(), and removeMarkerFile().
apr_file_t* LLAppViewer::mMarkerFile [private] |
Definition at line 188 of file llappviewer.h.
Referenced by initMarkerFile(), and removeMarkerFile().
LLString LLAppViewer::mLogoutMarkerFileName [private] |
Definition at line 190 of file llappviewer.h.
Referenced by removeMarkerFile(), and sendLogoutRequest().
apr_file_t* LLAppViewer::mLogoutMarkerFile [private] |
Definition at line 191 of file llappviewer.h.
Referenced by removeMarkerFile(), and sendLogoutRequest().
LLOSInfo LLAppViewer::mSysOSInfo [private] |
S32 LLAppViewer::mCrashBehavior [private] |
Definition at line 195 of file llappviewer.h.
Referenced by getCrashBehavior(), and setCrashBehavior().
bool LLAppViewer::mReportedCrash [private] |
LLTextureCache * LLAppViewer::sTextureCache = NULL [static, private] |
LLWorkerThread * LLAppViewer::sImageDecodeThread = NULL [static, private] |
LLTextureFetch * LLAppViewer::sTextureFetch = NULL [static, private] |
S32 LLAppViewer::mNumSessions [private] |
std::string LLAppViewer::mSerialNumber [private] |
bool LLAppViewer::mPurgeCache [private] |
bool LLAppViewer::mPurgeOnExit [private] |
bool LLAppViewer::mSavedFinalSnapshot [private] |
Definition at line 209 of file llappviewer.h.
Referenced by hasSavedFinalSnapshot(), and saveFinalSnapshot().
bool LLAppViewer::mQuitRequested [private] |
Definition at line 211 of file llappviewer.h.
Referenced by abortQuit(), idle(), quitRequested(), and requestQuit().
bool LLAppViewer::mLogoutRequestSent [private] |
Definition at line 212 of file llappviewer.h.
Referenced by logoutRequestSent(), and sendLogoutRequest().
S32 LLAppViewer::mYieldTime [private] |
LLSD LLAppViewer::mSettingsFileList [private] |
Definition at line 214 of file llappviewer.h.
Referenced by getSettingsFileName(), initConfiguration(), and loadSettingsFromDirectory().
LLWatchdogTimeout* LLAppViewer::mMainloopTimeout [private] |
Definition at line 216 of file llappviewer.h.
Referenced by LLAppViewer(), mainLoop(), startMainloopTimeout(), stopMainloopTimeout(), and ~LLAppViewer().