bootstrap.cxx (b5088357) | bootstrap.cxx (8bd5297c) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 49 unchanged lines hidden (view full) --- 58#define BOOTSTRAP_ITEM_USERDIR "UserDataDir" 59 60#define BOOTSTRAP_DEFAULT_BASEINSTALL "$SYSBINDIR/.." 61 62#define BOOTSTRAP_DIRNAME_SHAREDIR "share" 63#define BOOTSTRAP_DIRNAME_USERDIR "user" 64 65#define VERSIONFILE_SECTION "Versions" | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 49 unchanged lines hidden (view full) --- 58#define BOOTSTRAP_ITEM_USERDIR "UserDataDir" 59 60#define BOOTSTRAP_DEFAULT_BASEINSTALL "$SYSBINDIR/.." 61 62#define BOOTSTRAP_DIRNAME_SHAREDIR "share" 63#define BOOTSTRAP_DIRNAME_USERDIR "user" 64 65#define VERSIONFILE_SECTION "Versions" |
66#define VERSIONFILE_ITEM_SCSREVISION "Revision" |
|
66 67#define SETUP_DATA_NAME SAL_CONFIGFILE("setup") 68#define SETUP_ITEM_ALLUSERS "ALLUSERS" 69// --------------------------------------------------------------------------------------- 70typedef char const * AsciiString; 71// --------------------------------------------------------------------------------------- 72 73namespace utl --- 593 unchanged lines hidden (view full) --- 667 if ( data().getVersionValue( csBuildIdItem, sBuildId, _sDefault ) != sal_True || 668 sBuildId.getLength() == 0 ) 669 // read buildid from bootstrap.ini (bootstraprc) 670 sBuildId = data().getBootstrapValue( csBuildIdItem, _sDefault ); 671 return sBuildId; 672} 673// --------------------------------------------------------------------------------------- 674 | 67 68#define SETUP_DATA_NAME SAL_CONFIGFILE("setup") 69#define SETUP_ITEM_ALLUSERS "ALLUSERS" 70// --------------------------------------------------------------------------------------- 71typedef char const * AsciiString; 72// --------------------------------------------------------------------------------------- 73 74namespace utl --- 593 unchanged lines hidden (view full) --- 668 if ( data().getVersionValue( csBuildIdItem, sBuildId, _sDefault ) != sal_True || 669 sBuildId.getLength() == 0 ) 670 // read buildid from bootstrap.ini (bootstraprc) 671 sBuildId = data().getBootstrapValue( csBuildIdItem, _sDefault ); 672 return sBuildId; 673} 674// --------------------------------------------------------------------------------------- 675 |
676OUString Bootstrap::getRevisionInfo() 677{ 678 OUString const _sDefault; 679 OUString const csRevisionItem(RTL_CONSTASCII_USTRINGPARAM(VERSIONFILE_ITEM_SCSREVISION)); 680 681 OUString sRevisionNumber; 682 // read buildid from version.ini (versionrc), if it doesn't exist or buildid is empty 683 if ( data().getVersionValue( csRevisionItem, sRevisionNumber, _sDefault ) != sal_True || 684 sRevisionNumber.getLength() == 0 ) 685 // read buildid from bootstrap.ini (bootstraprc) 686 sRevisionNumber = data().getBootstrapValue( csRevisionItem, _sDefault ); 687 return sRevisionNumber; 688} 689 690// --------------------------------------------------------------------------------------- 691 |
|
675OUString Bootstrap::getAllUsersValue(OUString const& _sDefault) 676{ 677 OUString const csAllUsersItem(RTL_CONSTASCII_USTRINGPARAM(SETUP_ITEM_ALLUSERS)); 678 679 rtl::Bootstrap aData( getExecutableDirectory() + OUString( RTL_CONSTASCII_USTRINGPARAM( "/"SETUP_DATA_NAME ) ) ); 680 OUString sResult; 681 aData.getFrom( csAllUsersItem, sResult, _sDefault ); 682 return sResult; --- 226 unchanged lines hidden --- | 692OUString Bootstrap::getAllUsersValue(OUString const& _sDefault) 693{ 694 OUString const csAllUsersItem(RTL_CONSTASCII_USTRINGPARAM(SETUP_ITEM_ALLUSERS)); 695 696 rtl::Bootstrap aData( getExecutableDirectory() + OUString( RTL_CONSTASCII_USTRINGPARAM( "/"SETUP_DATA_NAME ) ) ); 697 OUString sResult; 698 aData.getFrom( csAllUsersItem, sResult, _sDefault ); 699 return sResult; --- 226 unchanged lines hidden --- |