20#ifndef INCLUDED_UNOTOOLS_BOOTSTRAP_HXX
21#define INCLUDED_UNOTOOLS_BOOTSTRAP_HXX
24#include <rtl/ustring.hxx>
41 static OUString getProductKey();
44 static OUString getProductKey(OUString
const& _sDefault);
47 static OUString getBuildIdData(OUString
const& _sDefault);
50 static void reloadData();
63 static PathStatus locateBaseInstallation(OUString& _rURL);
66 static PathStatus locateUserInstallation(OUString& _rURL);
69 static PathStatus locateUserData(OUString& _rURL);
73 static PathStatus locateBootstrapFile(OUString& _rURL);
75 static PathStatus locateVersionFile(OUString& _rURL);
99 INVALID_BOOTSTRAP_DATA
105 static Status checkBootstrapStatus(OUString& _rDiagnosticMessage, FailureCode& _rErrCode);
114 static const Impl& data();
provides configuration information needed for application startup.
FailureCode
error code for detailed diagnostics of bootstrap failures
@ MISSING_BOOTSTRAP_FILE
the shared installation directory could not be located
@ MISSING_VERSION_FILE_ENTRY
the version locator INI file could not be found or read
@ INVALID_BOOTSTRAP_FILE_ENTRY
the bootstrap INI is missing a required entry
@ MISSING_USER_DIRECTORY
the version locator INI entry is not a valid directory URL
@ INVALID_VERSION_FILE_ENTRY
the version locator INI has no entry for this version
@ MISSING_BOOTSTRAP_FILE_ENTRY
the bootstrap INI file could not be found or read
@ MISSING_VERSION_FILE
the bootstrap INI contains invalid data
@ MISSING_INSTALL_DIRECTORY
bootstrap was successful
Status
high-level status of bootstrap success
@ INVALID_USER_INSTALL
${userurl} does not exist; or version-file cannot be found or is invalid
@ MISSING_USER_INSTALL
user-dir and share-dir do exist, product key found or can be defaulted to exe-name
OUString const & getProcessWorkingDir()