LibreOffice Module unotools (master) 1
|
provides configuration information needed for application startup. More...
#include <bootstrap.hxx>
Classes | |
class | Impl |
Public Types | |
enum | PathStatus { PATH_EXISTS , PATH_VALID , DATA_INVALID , DATA_MISSING , DATA_UNKNOWN } |
enum | Status { DATA_OK , MISSING_USER_INSTALL , INVALID_USER_INSTALL , INVALID_BASE_INSTALL } |
high-level status of bootstrap success More... | |
enum | FailureCode { NO_FAILURE , MISSING_INSTALL_DIRECTORY , MISSING_BOOTSTRAP_FILE , MISSING_BOOTSTRAP_FILE_ENTRY , INVALID_BOOTSTRAP_FILE_ENTRY , MISSING_VERSION_FILE , MISSING_VERSION_FILE_ENTRY , INVALID_VERSION_FILE_ENTRY , MISSING_USER_DIRECTORY , INVALID_BOOTSTRAP_DATA } |
error code for detailed diagnostics of bootstrap failures More... | |
Static Public Member Functions | |
static OUString | getProductKey () |
retrieve the product key; defaults to executable name (without extension) More... | |
static OUString | getProductKey (OUString const &_sDefault) |
retrieve the product key; uses the given default, if not found More... | |
static OUString | getBuildIdData (OUString const &_sDefault) |
retrieve the BUILDID information item; uses the given default, if not found More... | |
static void | reloadData () |
reload cached data More... | |
static PathStatus | locateBaseInstallation (OUString &_rURL) |
get a file URL to the common base installation [${insturl}] More... | |
static PathStatus | locateUserInstallation (OUString &_rURL) |
get a file URL to the user installation [${userurl}] More... | |
static PathStatus | locateUserData (OUString &_rURL) |
get a file URL to the user data directory [default is ${userurl}/user] More... | |
static PathStatus | locateBootstrapFile (OUString &_rURL) |
get a file URL to the bootstrap INI file used [e.g. ${insturl}/program/bootraprc] More... | |
static PathStatus | locateVersionFile (OUString &_rURL) |
get a file URL to the version locator INI file used [e.g. ${SYSUSERCONFIG}/sversion.ini] More... | |
static Status | checkBootstrapStatus (OUString &_rDiagnosticMessage, FailureCode &_rErrCode) |
Evaluates the status of the installation and returns a diagnostic message and error code corresponding to this status. More... | |
static bool | getProcessWorkingDir (OUString &rUrl) |
get the working directory of the process More... | |
static const Impl & | data () |
Public Attributes | |
class UNOTOOLS_DLLPRIVATE | Impl |
provides configuration information needed for application startup.
This class handles the startup information for the office application. It encapsulates knowledge of how to retrieve such information and how to diagnose failures to retrieve required data.
Definition at line 35 of file bootstrap.hxx.
error code for detailed diagnostics of bootstrap failures
Definition at line 88 of file bootstrap.hxx.
Enumerator | |
---|---|
PATH_EXISTS | |
PATH_VALID | |
DATA_INVALID | |
DATA_MISSING | |
DATA_UNKNOWN |
Definition at line 53 of file bootstrap.hxx.
high-level status of bootstrap success
Definition at line 79 of file bootstrap.hxx.
|
static |
Evaluates the status of the installation and returns a diagnostic message and error code corresponding to this status.
Definition at line 612 of file bootstrap.cxx.
References aData, data(), DATA_OK, utl::describeError(), NO_FAILURE, and result.
|
static |
Definition at line 121 of file bootstrap.cxx.
Referenced by checkBootstrapStatus(), getProductKey(), locateBaseInstallation(), locateBootstrapFile(), locateUserData(), locateUserInstallation(), and locateVersionFile().
|
static |
retrieve the BUILDID information item; uses the given default, if not found
Definition at line 548 of file bootstrap.cxx.
References aData, BOOTSTRAP_ITEM_BUILDID, Translate::get(), and SAL_CONFIGFILE.
Referenced by utl::DocInfoHelper::GetGeneratorString().
|
static |
get the working directory of the process
Definition at line 126 of file bootstrap.cxx.
Referenced by utl::implEnsureAbsolute().
|
static |
retrieve the product key; defaults to executable name (without extension)
Definition at line 536 of file bootstrap.cxx.
References BOOTSTRAP_ITEM_PRODUCT_KEY, data(), utl::Bootstrap::Impl::getBootstrapValue(), and utl::getExecutableBaseName().
|
static |
retrieve the product key; uses the given default, if not found
Definition at line 543 of file bootstrap.cxx.
References BOOTSTRAP_ITEM_PRODUCT_KEY, data(), and utl::Bootstrap::Impl::getBootstrapValue().
|
static |
get a file URL to the common base installation [${insturl}]
Definition at line 564 of file bootstrap.cxx.
References utl::Bootstrap::Impl::aBaseInstall_, data(), utl::Bootstrap::Impl::PathData::path, and utl::Bootstrap::Impl::PathData::status.
|
static |
get a file URL to the bootstrap INI file used [e.g. ${insturl}/program/bootraprc]
Definition at line 596 of file bootstrap.cxx.
References utl::Bootstrap::Impl::aBootstrapINI_, data(), utl::Bootstrap::Impl::PathData::path, and utl::Bootstrap::Impl::PathData::status.
|
static |
get a file URL to the user data directory [default is ${userurl}/user]
Definition at line 580 of file bootstrap.cxx.
References aData, BOOTSTRAP_DIRNAME_USERDIR, BOOTSTRAP_ITEM_USERDIR, utl::checkStatusAndNormalizeURL(), data(), and utl::getDerivedPath().
|
static |
get a file URL to the user installation [${userurl}]
Definition at line 572 of file bootstrap.cxx.
References utl::Bootstrap::Impl::aUserInstall_, data(), utl::Bootstrap::Impl::PathData::path, and utl::Bootstrap::Impl::PathData::status.
|
static |
get a file URL to the version locator INI file used [e.g. ${SYSUSERCONFIG}/sversion.ini]
Definition at line 604 of file bootstrap.cxx.
References utl::Bootstrap::Impl::aVersionINI_, data(), utl::Bootstrap::Impl::PathData::path, and utl::Bootstrap::Impl::PathData::status.
|
static |
reload cached data
Definition at line 150 of file bootstrap.cxx.
Definition at line 113 of file bootstrap.hxx.