add a getBuildVersion helper
This commit is contained in:
@@ -61,6 +61,9 @@ namespace utl
|
||||
/// retrieve the BUILDID information item; uses the given default, if not found
|
||||
static rtl::OUString getBuildIdData(rtl::OUString const& _sDefault);
|
||||
|
||||
/// retrieve the BuildVersion information item; uses the given default, if not found
|
||||
static rtl::OUString getBuildVersion(rtl::OUOUString const& _sDefault);
|
||||
|
||||
/// reload cached data
|
||||
static void reloadData();
|
||||
|
||||
|
@@ -54,6 +54,7 @@
|
||||
#define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource"
|
||||
#define BOOTSTRAP_ITEM_VERSIONFILE "Location"
|
||||
#define BOOTSTRAP_ITEM_BUILDID "buildid"
|
||||
#define BOOTSTRAP_ITEM_BUILDVERSION "BuildVersion"
|
||||
|
||||
#define BOOTSTRAP_ITEM_BASEINSTALLATION "BRAND_BASE_DIR"
|
||||
#define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation"
|
||||
@@ -642,6 +643,17 @@ OUString Bootstrap::getProductSource(OUString const& _sDefault)
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------
|
||||
|
||||
OUString Bootstrap::getBuildVersion(OUString const& _sDefault)
|
||||
{
|
||||
OUString const csBuildVersionItem(BOOTSTRAP_ITEM_BUILDVERSION);
|
||||
|
||||
OUString sBuildVersion;
|
||||
// read ProductSource from version.ini (versionrc)
|
||||
data().getVersionValue( csBuildVersionItem, sBuildVersion, _sDefault );
|
||||
return sBuildVersion;
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------
|
||||
|
||||
OUString Bootstrap::getBuildIdData(OUString const& _sDefault)
|
||||
{
|
||||
OUString const csBuildIdItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_BUILDID));
|
||||
|
Reference in New Issue
Block a user