LibreOffice Module sfx2 (master) 1
Static Public Member Functions | Static Private Member Functions | List of all members
sfx2::SafeMode Class Reference

#include <safemode.hxx>

Static Public Member Functions

static bool putFlag ()
 Write a flag file to the user profile indicating that the next launch should be in safe mode. More...
 
static bool hasFlag ()
 Check the existence of the safe mode flag file. More...
 
static bool removeFlag ()
 Remove the flag file for the safe mode. More...
 
static bool putRestartFlag ()
 Write a flag to the user profile indicating that we are currently restarting from safe mode - that means we don't want to enter safe mode again. More...
 
static bool hasRestartFlag ()
 Check the existence of the restart flag file. More...
 
static bool removeRestartFlag ()
 Remove the restart flag file. More...
 

Static Private Member Functions

static OUString getFilePath (const OUString &sFilename)
 Returns the path of the safe mode flag file. More...
 

Detailed Description

Definition at line 19 of file safemode.hxx.

Member Function Documentation

◆ getFilePath()

OUString sfx2::SafeMode::getFilePath ( const OUString &  sFilename)
staticprivate

Returns the path of the safe mode flag file.

Definition at line 68 of file safemode.cxx.

References SAL_CONFIGFILE.

Referenced by hasFlag(), hasRestartFlag(), putFlag(), putRestartFlag(), removeFlag(), and removeRestartFlag().

◆ hasFlag()

bool sfx2::SafeMode::hasFlag ( )
static

Check the existence of the safe mode flag file.

Returns
Whether the flag file for the safe mode exists

Definition at line 31 of file safemode.cxx.

References File, and getFilePath().

◆ hasRestartFlag()

bool sfx2::SafeMode::hasRestartFlag ( )
static

Check the existence of the restart flag file.

Returns
Whether the restart flag file exists

Definition at line 53 of file safemode.cxx.

References File, and getFilePath().

◆ putFlag()

bool sfx2::SafeMode::putFlag ( )
static

Write a flag file to the user profile indicating that the next launch should be in safe mode.

Returns
Whether the file could be written successfully

Definition at line 21 of file safemode.cxx.

References File, and getFilePath().

◆ putRestartFlag()

bool sfx2::SafeMode::putRestartFlag ( )
static

Write a flag to the user profile indicating that we are currently restarting from safe mode - that means we don't want to enter safe mode again.

Returns
Whether the file could be written successfully

Definition at line 43 of file safemode.cxx.

References File, and getFilePath().

◆ removeFlag()

bool sfx2::SafeMode::removeFlag ( )
static

Remove the flag file for the safe mode.

Returns
Whether the flag file could be removed successfully

Definition at line 41 of file safemode.cxx.

References getFilePath().

◆ removeRestartFlag()

bool sfx2::SafeMode::removeRestartFlag ( )
static

Remove the restart flag file.

Returns
Whether the flag file could be removed successfully

Definition at line 63 of file safemode.cxx.

References getFilePath().


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