LLAppViewer Class Reference

#include <llappviewer.h>

Inheritance diagram for LLAppViewer:

Inheritance graph
[legend]
Collaboration diagram for LLAppViewer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLAppViewer ()
virtual ~LLAppViewer ()
virtual bool init ()
virtual bool cleanup ()
virtual bool mainLoop ()
void forceQuit ()
void requestQuit ()
void userQuit ()
void earlyExit (const LLString &msg)
void forceExit (S32 arg)
void abortQuit ()
bool quitRequested ()
bool logoutRequestSent ()
void closeDebug ()
const LLOSInfogetOSInfo () const
virtual bool beingDebugged ()
S32 getCrashBehavior () const
void setCrashBehavior (S32 cb)
virtual void handleCrashReporting ()=0
virtual void handleSyncCrashTrace ()=0
const std::string & getSerialNumber ()
bool getPurgeCache () const
const LLStringgetSecondLifeTitle () const
const LLStringgetWindowTitle () const
void addLoginURI (const std::string &uri)
void setHelperURI (const std::string &uri)
const std::vector< std::string > & getLoginURIs () const
const std::string & getHelperURI () const
void resetURIs () const
void forceDisconnect (const LLString &msg)
void badNetworkHandler ()
bool hasSavedFinalSnapshot ()
void saveFinalSnapshot ()
void loadNameCache ()
void saveNameCache ()
bool isInProductionGrid ()
void removeMarkerFile (bool leave_logout_marker=false)
virtual void forceErrorLLError ()
virtual void forceErrorBreakpoint ()
virtual void forceErrorBadMemoryAccess ()
virtual void forceErrorInifiniteLoop ()
virtual void forceErrorSoftwareException ()
void loadSettingsFromDirectory (ELLPath path_index)
std::string getSettingsFileName (const std::string &file)
void startMainloopTimeout (F32 secs=-1.0f)
void stopMainloopTimeout ()

Static Public Member Functions

static LLAppViewerinstance ()
 Access to the LLAppViewer singleton.
static void handleViewerCrash ()
static void handleSyncViewerCrash ()
static LLTextureCachegetTextureCache ()
static LLWorkerThreadgetImageDecodeThread ()
static LLTextureFetchgetTextureFetch ()

Static Public Attributes

static const std::string sGlobalSettingsName = "Global"
static const std::string sPerAccountSettingsName = "PerAccount"
static const std::string sCrashSettingsName = "CrashSettings"

Protected Member Functions

virtual bool initWindow ()
virtual bool initLogging ()
virtual void initConsole ()
virtual bool initHardwareTest ()
virtual bool initParseCommandLine (LLCommandLineParser &clp)
virtual std::string generateSerialNumber ()=0

Private Member Functions

bool initThreads ()
bool initConfiguration ()
bool initCache ()
void purgeCache ()
void cleanupSavedSettings ()
void removeCacheFiles (const char *filemask)
void writeSystemInfo ()
bool anotherInstanceRunning ()
void initMarkerFile ()
void idle ()
void idleShutdown ()
void idleNetwork ()
void sendLogoutRequest ()
void disconnectViewer ()

Private Attributes

bool mSecondInstance
LLString mMarkerFileName
apr_file_t * mMarkerFile
LLString mLogoutMarkerFileName
apr_file_t * mLogoutMarkerFile
LLOSInfo mSysOSInfo
S32 mCrashBehavior
bool mReportedCrash
S32 mNumSessions
std::string mSerialNumber
bool mPurgeCache
bool mPurgeOnExit
bool mSavedFinalSnapshot
bool mQuitRequested
bool mLogoutRequestSent
S32 mYieldTime
LLSD mSettingsFileList
LLWatchdogTimeoutmMainloopTimeout

Static Private Attributes

static LLAppViewersInstance = NULL
static LLTextureCachesTextureCache = NULL
static LLWorkerThreadsImageDecodeThread = NULL
static LLTextureFetchsTextureFetch = NULL


Detailed Description

Definition at line 41 of file llappviewer.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::requestQuit (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::forceExit ( S32  arg  ) 

Definition at line 2566 of file llappviewer.cpp.

References removeMarkerFile().

Referenced by LLViewerWindow::LLViewerWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::abortQuit (  ) 

bool LLAppViewer::quitRequested (  )  [inline]

Definition at line 70 of file llappviewer.h.

References mQuitRequested.

bool LLAppViewer::logoutRequestSent (  )  [inline]

Definition at line 71 of file llappviewer.h.

References mLogoutRequestSent.

Referenced by idle(), idleShutdown(), and send_agent_update().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLOSInfo& LLAppViewer::getOSInfo (  )  const [inline]

Definition at line 75 of file llappviewer.h.

References mSysOSInfo.

Referenced by LLAppViewerWin32::disableWinErrorReporting(), send_stats(), and writeSystemInfo().

Here is the caller graph for this function:

virtual bool LLAppViewer::beingDebugged (  )  [inline, virtual]

Reimplemented in LLAppViewerLinux.

Definition at line 78 of file llappviewer.h.

Referenced by handleViewerCrash().

Here is the caller graph for this function:

S32 LLAppViewer::getCrashBehavior (  )  const [inline]

Definition at line 80 of file llappviewer.h.

References mCrashBehavior.

Referenced by LLAppViewerWin32::handleCrashReporting(), LLAppViewerLinux::handleCrashReporting(), and LLPanelGeneral::refresh().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLAppViewer::handleCrashReporting (  )  [pure virtual]

Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.

Referenced by handleViewerCrash().

Here is the caller graph for this function:

virtual void LLAppViewer::handleSyncCrashTrace (  )  [pure virtual]

Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.

Referenced by handleSyncViewerCrash().

Here is the caller graph for this function:

void LLAppViewer::handleViewerCrash (  )  [static]

void LLAppViewer::handleSyncViewerCrash (  )  [static]

Definition at line 2234 of file llappviewer.cpp.

References handleSyncCrashTrace(), and instance().

Referenced by badNetworkHandler(), exceptionTerminateHandler(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

static LLTextureFetch* LLAppViewer::getTextureFetch (  )  [inline, static]

const std::string& LLAppViewer::getSerialNumber (  )  [inline]

Definition at line 92 of file llappviewer.h.

References mSerialNumber.

Referenced by idle_startup().

Here is the caller graph for this function:

bool LLAppViewer::getPurgeCache (  )  const [inline]

Definition at line 94 of file llappviewer.h.

References mPurgeCache.

const LLString & LLAppViewer::getSecondLifeTitle (  )  const

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::setHelperURI ( const std::string &  uri  ) 

Definition at line 2874 of file llappviewer.cpp.

References gHelperURI.

Referenced by initConfiguration().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void LLAppViewer::forceDisconnect ( const LLString msg  ) 

void LLAppViewer::badNetworkHandler (  ) 

bool LLAppViewer::hasSavedFinalSnapshot (  )  [inline]

Definition at line 109 of file llappviewer.h.

References mSavedFinalSnapshot.

Referenced by idle().

Here is the caller graph for this function:

void LLAppViewer::saveFinalSnapshot (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::forceErrorLLError (  )  [virtual]

Definition at line 3683 of file llappviewer.cpp.

References llerrs.

Referenced by force_error_llerror(), and initWindow().

Here is the caller graph for this function:

void LLAppViewer::forceErrorBreakpoint (  )  [virtual]

Definition at line 3688 of file llappviewer.cpp.

Referenced by force_error_breakpoint().

Here is the caller graph for this function:

void LLAppViewer::forceErrorBadMemoryAccess (  )  [virtual]

Definition at line 3696 of file llappviewer.cpp.

References NULL, and S32.

Referenced by force_error_bad_memory_access().

Here is the caller graph for this function:

void LLAppViewer::forceErrorInifiniteLoop (  )  [virtual]

Definition at line 3703 of file llappviewer.cpp.

Referenced by force_error_infinite_loop().

Here is the caller graph for this function:

void LLAppViewer::forceErrorSoftwareException (  )  [virtual]

Definition at line 3712 of file llappviewer.cpp.

Referenced by force_error_software_exception().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::stopMainloopTimeout (  ) 

Definition at line 3729 of file llappviewer.cpp.

References mMainloopTimeout, and LLWatchdogTimeout::stop().

Referenced by send_agent_pause().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLAppViewer::initWindow (  )  [protected, virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLAppViewer::initConsole (  )  [inline, protected, virtual]

Reimplemented in LLAppViewerWin32.

Definition at line 149 of file llappviewer.h.

Referenced by initConfiguration(), and LLAppViewerWin32::initConsole().

Here is the caller graph for this function:

virtual bool LLAppViewer::initHardwareTest (  )  [inline, protected, virtual]

Reimplemented in LLAppViewerWin32.

Definition at line 150 of file llappviewer.h.

Referenced by init().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

virtual std::string LLAppViewer::generateSerialNumber (  )  [protected, pure virtual]

Implemented in LLAppViewerLinux, LLAppViewerMacOSX, and LLAppViewerWin32.

Referenced by init().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool LLAppViewer::initCache (  )  [private]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::cleanupSavedSettings (  )  [private]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::writeSystemInfo (  )  [private]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAppViewer::initMarkerFile (  )  [private]

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().

Here is the caller graph for this function:

void LLAppViewer::idleShutdown (  )  [private]

void LLAppViewer::idleNetwork (  )  [private]

void LLAppViewer::sendLogoutRequest (  )  [private]

void LLAppViewer::disconnectViewer (  )  [private]


Member Data Documentation

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]

Definition at line 133 of file llappviewer.h.

Referenced by initConfiguration().

const std::string LLAppViewer::sCrashSettingsName = "CrashSettings" [static]

Definition at line 134 of file llappviewer.h.

Referenced by initConfiguration().

LLAppViewer * LLAppViewer::sInstance = NULL [static, private]

Definition at line 183 of file llappviewer.h.

Referenced by instance(), and LLAppViewer().

Definition at line 185 of file llappviewer.h.

Referenced by initCache(), and initConfiguration().

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().

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().

Definition at line 194 of file llappviewer.h.

Referenced by getOSInfo().

Definition at line 195 of file llappviewer.h.

Referenced by getCrashBehavior(), and setCrashBehavior().

Definition at line 196 of file llappviewer.h.

Referenced by handleViewerCrash().

LLTextureCache * LLAppViewer::sTextureCache = NULL [static, private]

Definition at line 199 of file llappviewer.h.

Referenced by cleanup(), and getTextureCache().

LLWorkerThread * LLAppViewer::sImageDecodeThread = NULL [static, private]

Definition at line 200 of file llappviewer.h.

Referenced by cleanup(), and getImageDecodeThread().

LLTextureFetch * LLAppViewer::sTextureFetch = NULL [static, private]

Definition at line 201 of file llappviewer.h.

Referenced by cleanup(), and getTextureFetch().

Definition at line 203 of file llappviewer.h.

Referenced by init().

std::string LLAppViewer::mSerialNumber [private]

Definition at line 205 of file llappviewer.h.

Referenced by getSerialNumber(), and init().

bool LLAppViewer::mPurgeCache [private]

Definition at line 206 of file llappviewer.h.

Referenced by getPurgeCache(), and initCache().

bool LLAppViewer::mPurgeOnExit [private]

Definition at line 207 of file llappviewer.h.

Referenced by badNetworkHandler(), and cleanup().

Definition at line 209 of file llappviewer.h.

Referenced by hasSavedFinalSnapshot(), and saveFinalSnapshot().

Definition at line 211 of file llappviewer.h.

Referenced by abortQuit(), idle(), quitRequested(), and requestQuit().

Definition at line 212 of file llappviewer.h.

Referenced by logoutRequestSent(), and sendLogoutRequest().

Definition at line 213 of file llappviewer.h.

Referenced by initConfiguration(), and mainLoop().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:05 2008 for SecondLife by  doxygen 1.5.5