LibreOffice Module desktop (master) 1
|
Namespaces | |
namespace | Dependencies |
Dependency handling. | |
Classes | |
class | DescriptionInfoset |
Access to the content of an XML description element. More... | |
class | PersistentMap |
class | ProgressLevel |
struct | SimpleLicenseAttributes |
struct | StrTitle |
struct | UpdateInfo |
Typedefs | |
typedef std::unordered_map< OString, OString > | t_string2string_map |
typedef std::map< OUString, UpdateInfo > | UpdateInfoMap |
Enumerations | |
enum | UPDATE_SOURCE { UPDATE_SOURCE_NONE , UPDATE_SOURCE_SHARED , UPDATE_SOURCE_BUNDLED , UPDATE_SOURCE_ONLINE } |
enum | Order { LESS , EQUAL , GREATER } |
Functions | |
static OString | encodeString (const OString &rStr) |
static OString | decodeString (const char *pEncChars, int nLen) |
void | xml_parse (Reference< xml::sax::XDocumentHandler > const &xDocHandler, ::ucbhelper::Content &ucb_content, Reference< XComponentContext > const &xContext) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC DescriptionInfoset | getDescriptionInfoset (std::u16string_view sExtensionFolderURL) |
creates a DescriptionInfoset object. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString | generateIdentifier (::std::optional< OUString > const &optional, std::u16string_view fileName) |
Generates an identifier from an optional identifier. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString | getIdentifier (css::uno::Reference< css::deployment::XPackage > const &package) |
Gets the identifier of a package. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString | generateLegacyIdentifier (std::u16string_view fileName) |
Generates a legacy identifier based on a file name. More... | |
void | progressUpdate (OUString const &status, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | interactContinuation (css::uno::Any const &request, css::uno::Type const &continuation, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool *pcont, bool *pabort) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString const & | getPlatformString () |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | platform_fits (std::u16string_view platform_string) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | hasValidPlatform (css::uno::Sequence< OUString > const &platformStrings) |
determines if the current platform corresponds to one of the platform strings. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC const LanguageTag & | getOfficeLanguageTag () |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | create_ucb_content (::ucbhelper::Content *ucb_content, OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | create_folder (::ucbhelper::Content *ucb_content, OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | erase_path (OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC std::vector< sal_Int8 > | readFile (::ucbhelper::Content &ucb_content) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | readLine (OUString *res, std::u16string_view startingWith, ::ucbhelper::Content &ucb_content, rtl_TextEncoding textenc) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool | readProperties (std::vector< std::pair< OUString, OUString > > &out_result, ::ucbhelper::Content &ucb_content) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString | getExtensionDefaultUpdateURL () |
returns the default update URL (for the update information) which is used when an extension does not provide its own URL. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UPDATE_SOURCE | isUpdateUserExtension (bool bReadOnlyShared, OUString const &userVersion, OUString const &sharedVersion, OUString const &bundledVersion, std::u16string_view onlineVersion) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UPDATE_SOURCE | isUpdateSharedExtension (bool bReadOnlyShared, OUString const &sharedVersion, OUString const &bundledVersion, std::u16string_view onlineVersion) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::deployment::XPackage > | getExtensionWithHighestVersion (css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > const &seqExtensionsWithSameId) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UpdateInfoMap | getOnlineUpdateInfos (css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::deployment::XExtensionManager > const &xExtMgr, css::uno::Reference< css::deployment::XUpdateInformationProvider > const &updateInformation, std::vector< css::uno::Reference< css::deployment::XPackage > > const *extensionList, std::vector< std::pair< css::uno::Reference< css::deployment::XPackage >, css::uno::Any > > &out_errors) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString | getHighestVersion (OUString const &sharedVersion, OUString const &bundledVersion, OUString const &onlineVersion) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC Order | compareVersions (std::u16string_view version1, std::u16string_view version2) |
void | xml_parse (css::uno::Reference< css::xml::sax::XDocumentHandler > const &xDocHandler, ::ucbhelper::Content &ucb_content, css::uno::Reference< css::uno::XComponentContext > const &xContext) |
bool | interactContinuation (Any const &request, Type const &continuation, Reference< XCommandEnvironment > const &xCmdEnv, bool *pcont, bool *pabort) |
OUString | makeURL (std::u16string_view baseURL, OUString const &relPath) |
appends a relative path to a url. More... | |
OUString | makeURLAppendSysPathSegment (std::u16string_view baseURL, OUString const &relPath) |
appends a relative path to a url. More... | |
OUString | expandUnoRcTerm (OUString const &term_) |
OUString | makeRcTerm (OUString const &url) |
OUString | expandUnoRcUrl (OUString const &url) |
bool | office_is_running () |
oslProcess | raiseProcess (OUString const &appURL, Sequence< OUString > const &args) |
OUString | generateRandomPipeId () |
Reference< XInterface > | resolveUnoURL (OUString const &connectString, Reference< XComponentContext > const &xLocalContext, AbortChannel const *abortChannel) |
static void | writeConsoleWithStream (std::u16string_view sText, FILE *stream) |
void | writeConsole (std::u16string_view sText) |
writes the argument string to the console. More... | |
void | writeConsoleError (std::u16string_view sText) |
writes the argument to the console using the error stream. More... | |
OUString | readConsole () |
reads from the console. More... | |
void | TRACE (OUString const &sText) |
print the text to the console in a debug build. More... | |
void | syncRepositories (bool force, Reference< ucb::XCommandEnvironment > const &xCmdEnv) |
void | disposeBridges (Reference< css::uno::XComponentContext > const &ctx) |
bool | create_ucb_content (::ucbhelper::Content *ret_ucbContent, OUString const &url, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc) |
bool | create_folder (::ucbhelper::Content *ret_ucb_content, OUString const &url_, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc) |
bool | erase_path (OUString const &url, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc) |
Reference< deployment::XPackage > | getExtensionWithHighestVersion (Sequence< Reference< deployment::XPackage > > const &seqExt) |
UpdateInfoMap | getOnlineUpdateInfos (Reference< uno::XComponentContext > const &xContext, Reference< deployment::XExtensionManager > const &xExtMgr, Reference< deployment::XUpdateInformationProvider > const &updateInformation, std::vector< Reference< deployment::XPackage > > const *extensionList, std::vector< std::pair< Reference< deployment::XPackage >, uno::Any > > &out_errors) |
void | try_dispose (css::uno::Reference< css::uno::XInterface > const &x) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::uno::XInterface > | resolveUnoURL (OUString const &connectString, css::uno::Reference< css::uno::XComponentContext > const &xLocalContext, AbortChannel const *abortChannel=nullptr) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC oslProcess | raiseProcess (OUString const &appURL, css::uno::Sequence< OUString > const &args) |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void | syncRepositories (bool force, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
registers or revokes shared or bundled extensions which have been recently added or removed. More... | |
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void | disposeBridges (css::uno::Reference< css::uno::XComponentContext > const &ctx) |
workaround: for some reason the bridge threads which communicate with the uno.exe process are not released on time More... | |
Variables | |
const char | PmapMagic [4] = {'P','m','p','1'} |
const char | CR = 0x0d |
const char | LF = 0x0a |
typedef std::unordered_map<OString, OString> dp_misc::t_string2string_map |
Definition at line 28 of file dp_persmap.h.
typedef std::map< OUString, UpdateInfo > dp_misc::UpdateInfoMap |
Definition at line 100 of file dp_update.hxx.
enum dp_misc::Order |
Enumerator | |
---|---|
LESS | |
EQUAL | |
GREATER |
Definition at line 30 of file dp_version.hxx.
Enumerator | |
---|---|
UPDATE_SOURCE_NONE | |
UPDATE_SOURCE_SHARED | |
UPDATE_SOURCE_BUNDLED | |
UPDATE_SOURCE_ONLINE |
Definition at line 42 of file dp_update.hxx.
dp_misc::Order dp_misc::compareVersions | ( | std::u16string_view | version1, |
std::u16string_view | version2 | ||
) |
Definition at line 42 of file dp_version.cxx.
Referenced by getExtensionWithHighestVersion().
bool dp_misc::create_folder | ( | ::ucbhelper::Content * | ret_ucb_content, |
OUString const & | url_, | ||
Reference< XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc | ||
) |
Definition at line 80 of file dp_ucb.cxx.
References Any, create_folder(), create_ucb_content(), Exception, expandUnoRcUrl(), dp_misc::StrTitle::getTitleSequence(), ucbhelper::Content::insertNewContent(), ucbhelper::Content::isFolder(), ucbhelper::Content::queryCreatableContentsInfo(), and url_.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::create_folder | ( | ::ucbhelper::Content * | ucb_content, |
OUString const & | url, | ||
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc = true |
||
) |
Referenced by dp_manager::PackageManagerImpl::addPackage(), create_folder(), dp_registry::backend::PackageRegistryBackend::createFolder(), dp_gui::UpdateInstallDialog::Thread::download(), dp_gui::UpdateInstallDialog::Thread::downloadExtensions(), dp_manager::PackageManagerImpl::initActivationLayer(), dp_manager::PackageManagerImpl::initRegistryBackends(), and dp_manager::PackageManagerImpl::insertToActivationLayer().
bool dp_misc::create_ucb_content | ( | ::ucbhelper::Content * | ret_ucbContent, |
OUString const & | url, | ||
Reference< XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc | ||
) |
Definition at line 43 of file dp_ucb.cxx.
References Exception, comphelper::getProcessComponentContext(), ucbhelper::Content::isFolder(), and ucbhelper::Content::setCommandEnvironment().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::create_ucb_content | ( | ::ucbhelper::Content * | ucb_content, |
OUString const & | url, | ||
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc = true |
||
) |
Referenced by dp_manager::PackageManagerImpl::addPackage(), create_folder(), dp_gui::UpdateInstallDialog::Thread::download(), erase_path(), dp_manager::PackageManagerImpl::initActivationLayer(), dp_manager::PackageManagerImpl::synchronizeAddedExtensions(), and dp_manager::PackageManagerImpl::synchronizeRemovedExtensions().
|
static |
Definition at line 109 of file dp_persmap.cxx.
Referenced by dp_misc::PersistentMap::readAll().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::disposeBridges | ( | css::uno::Reference< css::uno::XComponentContext > const & | ctx | ) |
workaround: for some reason the bridge threads which communicate with the uno.exe process are not released on time
void dp_misc::disposeBridges | ( | Reference< css::uno::XComponentContext > const & | ctx | ) |
Definition at line 530 of file dp_misc.cxx.
References comp, dp_registry::backend::bundle::create(), and ctx.
Referenced by unopkg_main().
|
static |
Definition at line 72 of file dp_persmap.cxx.
Referenced by dp_misc::PersistentMap::flush().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::erase_path | ( | OUString const & | url, |
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc = true |
||
) |
Referenced by dp_manager::PackageManagerImpl::deletePackageFromCache(), dp_registry::backend::PackageRegistryBackend::deleteTempFolder(), dp_manager::PackageManagerImpl::initActivationLayer(), dp_manager::PackageManagerImpl::reinstallDeployedPackages(), and dp_gui::UpdateInstallDialog::Thread::removeTempDownloads().
bool dp_misc::erase_path | ( | OUString const & | url, |
Reference< XCommandEnvironment > const & | xCmdEnv, | ||
bool | throw_exc | ||
) |
Definition at line 163 of file dp_ucb.cxx.
References Any, create_ucb_content(), Exception, and ucbhelper::Content::executeCommand().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::expandUnoRcTerm | ( | OUString const & | term_ | ) |
Definition at line 294 of file dp_misc.cxx.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::expandUnoRcUrl | ( | OUString const & | url | ) |
Definition at line 315 of file dp_misc.cxx.
Referenced by create_folder(), and dp_manager::PackageManagerImpl::initActivationLayer().
OUString dp_misc::generateIdentifier | ( | ::std::optional< OUString > const & | optional, |
std::u16string_view | fileName | ||
) |
Generates an identifier from an optional identifier.
optional | an optional identifier |
fileName | a file name |
Definition at line 34 of file dp_identifier.cxx.
References generateLegacyIdentifier().
OUString dp_misc::generateLegacyIdentifier | ( | std::u16string_view | fileName | ) |
Generates a legacy identifier based on a file name.
fileName | a file name |
Definition at line 50 of file dp_identifier.cxx.
Referenced by generateIdentifier(), dp_manager::ActivePackages::getEntries(), and getIdentifier().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::generateRandomPipeId | ( | ) |
Definition at line 410 of file dp_misc.cxx.
DescriptionInfoset dp_misc::getDescriptionInfoset | ( | std::u16string_view | sExtensionFolderURL | ) |
creates a DescriptionInfoset object.
The argument sExtensionFolderURL is a file URL to extension folder containing the description.xml.
Definition at line 296 of file dp_descriptioninfoset.cxx.
References cppu::getCaughtException(), and comphelper::getProcessComponentContext().
Referenced by dp_manager::ExtensionManager::doChecksForAddExtension(), dp_manager::PackageManagerImpl::insertToActivationLayer(), dp_manager::PackageManagerImpl::synchronizeAddedExtensions(), and dp_manager::PackageManagerImpl::synchronizeRemovedExtensions().
OUString dp_misc::getExtensionDefaultUpdateURL | ( | ) |
returns the default update URL (for the update information) which is used when an extension does not provide its own URL.
Definition at line 222 of file dp_update.cxx.
References SAL_CONFIGFILE.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::deployment::XPackage > dp_misc::getExtensionWithHighestVersion | ( | css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > const & | seqExtensionsWithSameId | ) |
Reference< deployment::XPackage > dp_misc::getExtensionWithHighestVersion | ( | Sequence< Reference< deployment::XPackage > > const & | seqExt | ) |
Definition at line 307 of file dp_update.cxx.
References compareVersions(), GREATER, and i.
OUString dp_misc::getHighestVersion | ( | OUString const & | sharedVersion, |
OUString const & | bundledVersion, | ||
OUString const & | onlineVersion | ||
) |
Definition at line 390 of file dp_update.cxx.
References index.
OUString dp_misc::getIdentifier | ( | css::uno::Reference< css::deployment::XPackage > const & | package | ) |
Gets the identifier of a package.
package | a non-null package |
css::uno::RuntimeException |
Definition at line 41 of file dp_identifier.cxx.
References generateLegacyIdentifier().
Referenced by dp_gui::ExtensionCmdQueue::Thread::_removeExtension(), dp_manager::ExtensionManager::addExtension(), dp_manager::ExtensionManager::addExtensionsToMap(), dp_manager::PackageManagerImpl::addPackage(), dp_manager::PackageManagerImpl::checkPrerequisites(), dp_manager::ExtensionManager::checkPrerequisitesAndEnable(), dp_manager::ExtensionManager::disableExtension(), dp_manager::ExtensionManager::doChecksForAddExtension(), dp_manager::ExtensionManager::enableExtension(), dp_gui::UpdateDialog::Thread::execute(), getOnlineUpdateInfos(), dp_gui::UpdateDialog::isIgnoredUpdate(), dp_manager::PackageManagerImpl::isInstalled(), dp_gui::UpdateDialog::notifyMenubar(), unopkg::printf_unaccepted_licenses(), dp_manager::ExtensionManager::reinstallDeployedExtensions(), dp_manager::ExtensionManager::removeExtension(), dp_manager::PackageManagerImpl::synchronizeAddedExtensions(), unopkg_main(), and dp_gui::ExtMgrDialog::updatePackage().
const LanguageTag & dp_misc::getOfficeLanguageTag | ( | ) |
Definition at line 29 of file dp_resource.cxx.
References utl::ConfigManager::getUILocale().
Referenced by dp_misc::DescriptionInfoset::getLocalizedChild().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UpdateInfoMap dp_misc::getOnlineUpdateInfos | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
css::uno::Reference< css::deployment::XExtensionManager > const & | xExtMgr, | ||
css::uno::Reference< css::deployment::XUpdateInformationProvider > const & | updateInformation, | ||
std::vector< css::uno::Reference< css::deployment::XPackage > > const * | extensionList, | ||
std::vector< std::pair< css::uno::Reference< css::deployment::XPackage >, css::uno::Any > > & | out_errors | ||
) |
Referenced by dp_gui::UpdateDialog::Thread::execute().
UpdateInfoMap dp_misc::getOnlineUpdateInfos | ( | Reference< uno::XComponentContext > const & | xContext, |
Reference< deployment::XExtensionManager > const & | xExtMgr, | ||
Reference< deployment::XUpdateInformationProvider > const & | updateInformation, | ||
std::vector< Reference< deployment::XPackage > > const * | extensionList, | ||
std::vector< std::pair< Reference< deployment::XPackage >, uno::Any > > & | out_errors | ||
) |
Definition at line 340 of file dp_update.cxx.
References getExtensionWithHighestVersion(), getIdentifier(), pos, and xContext.
OUString const & dp_misc::getPlatformString | ( | ) |
Definition at line 169 of file dp_platform.cxx.
bool dp_misc::hasValidPlatform | ( | css::uno::Sequence< OUString > const & | platformStrings | ) |
determines if the current platform corresponds to one of the platform strings.
Definition at line 194 of file dp_platform.cxx.
bool dp_misc::interactContinuation | ( | Any const & | request, |
Type const & | continuation, | ||
Reference< XCommandEnvironment > const & | xCmdEnv, | ||
bool * | pcont, | ||
bool * | pabort | ||
) |
Definition at line 93 of file dp_interact.cxx.
References isAssignableFrom().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::interactContinuation | ( | css::uno::Any const & | request, |
css::uno::Type const & | continuation, | ||
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv, | ||
bool * | pcont, | ||
bool * | pabort | ||
) |
Referenced by dp_manager::ExtensionManager::checkInstall(), and dp_manager::ExtensionManager::checkUpdate().
UPDATE_SOURCE dp_misc::isUpdateSharedExtension | ( | bool | bReadOnlyShared, |
OUString const & | sharedVersion, | ||
OUString const & | bundledVersion, | ||
std::u16string_view | onlineVersion | ||
) |
Definition at line 284 of file dp_update.cxx.
References index, UPDATE_SOURCE_BUNDLED, UPDATE_SOURCE_NONE, and UPDATE_SOURCE_ONLINE.
Referenced by dp_gui::UpdateDialog::Thread::execute().
UPDATE_SOURCE dp_misc::isUpdateUserExtension | ( | bool | bReadOnlyShared, |
OUString const & | userVersion, | ||
OUString const & | sharedVersion, | ||
OUString const & | bundledVersion, | ||
std::u16string_view | onlineVersion | ||
) |
Definition at line 234 of file dp_update.cxx.
References index, UPDATE_SOURCE_BUNDLED, UPDATE_SOURCE_NONE, UPDATE_SOURCE_ONLINE, and UPDATE_SOURCE_SHARED.
Referenced by dp_gui::UpdateDialog::Thread::execute().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeRcTerm | ( | OUString const & | url | ) |
Definition at line 301 of file dp_misc.cxx.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeURL | ( | std::u16string_view | baseURL, |
OUString const & | relPath | ||
) |
appends a relative path to a url.
The relative path must already be correctly encoded for use in a URL. If the URL starts with vnd.sun.star.expand then the relative path will be again encoded for use in an "expand" URL.
Definition at line 253 of file dp_misc.cxx.
References o3tl::starts_with(), and u.
Referenced by dp_manager::PackageManagerImpl::addPackage(), dp_registry::backend::PackageRegistryBackend::createFolder(), dp_registry::backend::PackageRegistryBackend::deleteUnusedFolders(), dp_gui::UpdateInstallDialog::Thread::download(), dp_gui::UpdateInstallDialog::Thread::downloadExtensions(), dp_manager::PackageManagerImpl::getDeployPath(), dp_manager::PackageManagerImpl::getExtensionsWithUnacceptedLicenses(), dp_manager::PackageManagerImpl::initActivationLayer(), dp_manager::PackageManagerImpl::insertToActivationLayer(), makeURLAppendSysPathSegment(), dp_manager::PackageManagerImpl::removePackage(), and dp_manager::PackageManagerImpl::synchronizeRemovedExtensions().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeURLAppendSysPathSegment | ( | std::u16string_view | baseURL, |
OUString const & | relPath | ||
) |
appends a relative path to a url.
This is the same as makeURL, but the relative Path must me a segment of an system path.
Definition at line 283 of file dp_misc.cxx.
Referenced by dp_registry::backend::PackageRegistryBackend::deleteUnusedFolders(), dp_manager::PackageManagerImpl::getExtensionsWithUnacceptedLicenses(), dp_manager::PackageManagerImpl::insertToActivationLayer(), dp_manager::PackageManagerImpl::synchronizeAddedExtensions(), and dp_manager::PackageManagerImpl::synchronizeRemovedExtensions().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::office_is_running | ( | ) |
Definition at line 331 of file dp_misc.cxx.
References err.
Referenced by dp_gui::UpdateDialog::createNotifyJob(), dp_gui::TheExtensionManager::disposing(), unopkg::getUNO(), dp_gui::IMPL_LINK_NOARG(), dp_gui::UpdateDialog::notifyMenubar(), dp_manager::PackageManagerImpl::reinstallDeployedPackages(), dp_gui::TheExtensionManager::terminateDialog(), dp_gui::TheExtensionManager::TheExtensionManager(), and unopkg_main().
bool dp_misc::platform_fits | ( | std::u16string_view | platform_string | ) |
Definition at line 174 of file dp_platform.cxx.
References o3tl::equalsIgnoreAsciiCase(), o3tl::getToken(), index, and o3tl::trim().
|
inline |
Definition at line 33 of file dp_interact.h.
Referenced by dp_manager::PackageManagerImpl::addPackage().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC oslProcess dp_misc::raiseProcess | ( | OUString const & | appURL, |
css::uno::Sequence< OUString > const & | args | ||
) |
oslProcess dp_misc::raiseProcess | ( | OUString const & | appURL, |
Sequence< OUString > const & | args | ||
) |
Definition at line 374 of file dp_misc.cxx.
References args.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::readConsole | ( | ) |
reads from the console.
It uses fgets to read char values and converts them to OUString using osl_getThreadTextEncoding as target encoding. The returned string has a maximum size of 1024 and does NOT include leading and trailing white space(applied OUString::trim())
Definition at line 473 of file dp_misc.cxx.
References value.
std::vector< sal_Int8 > dp_misc::readFile | ( | ::ucbhelper::Content & | ucb_content | ) |
Definition at line 187 of file dp_ucb.cxx.
References ucbhelper::Content::openStream(), and xStream.
Referenced by dp_manager::PackageManagerImpl::initActivationLayer(), readLine(), and readProperties().
bool dp_misc::readLine | ( | OUString * | res, |
std::u16string_view | startingWith, | ||
::ucbhelper::Content & | ucb_content, | ||
rtl_TextEncoding | textenc | ||
) |
Definition at line 200 of file dp_ucb.cxx.
References CR, LF, pos, readFile(), and start.
bool dp_misc::readProperties | ( | std::vector< std::pair< OUString, OUString > > & | out_result, |
::ucbhelper::Content & | ucb_content | ||
) |
Definition at line 256 of file dp_ucb.cxx.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::uno::XInterface > dp_misc::resolveUnoURL | ( | OUString const & | connectString, |
css::uno::Reference< css::uno::XComponentContext > const & | xLocalContext, | ||
AbortChannel const * | abortChannel = nullptr |
||
) |
Reference< XInterface > dp_misc::resolveUnoURL | ( | OUString const & | connectString, |
Reference< XComponentContext > const & | xLocalContext, | ||
AbortChannel const * | abortChannel | ||
) |
Definition at line 429 of file dp_misc.cxx.
References dp_registry::backend::bundle::create(), and i.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::syncRepositories | ( | bool | force, |
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv | ||
) |
registers or revokes shared or bundled extensions which have been recently added or removed.
void dp_misc::syncRepositories | ( | bool | force, |
Reference< ucb::XCommandEnvironment > const & | xCmdEnv | ||
) |
Definition at line 491 of file dp_misc.cxx.
References comphelper::getProcessComponentContext(), comphelper::LibreOfficeKit::isActive(), and u.
Referenced by dp_manager::ExtensionManager::reinstallDeployedExtensions(), desktop::Desktop::SynchronizeExtensionRepositories(), dp_gui::ExtensionCmdQueue::syncRepositories(), and unopkg_main().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::TRACE | ( | OUString const & | sText | ) |
print the text to the console in a debug build.
The argument is forwarded to writeConsole. The function does not add new line. The code is only executed if OSL_DEBUG_LEVEL > 1
Definition at line 486 of file dp_misc.cxx.
References SAL_INFO.
Referenced by dp_gui::UpdateDialog::createNotifyJob(), dp_registry::backend::sfwk::ParcelDescDocHandler::endElement(), dp_gui::UpdateCommandEnv::handle(), unopkg::isOption(), unopkg::readArgument(), and dp_registry::backend::sfwk::ParcelDescDocHandler::startElement().
|
inline |
Definition at line 38 of file dp_misc.h.
References x.
Referenced by dp_manager::PackageManagerImpl::deletePackageFromCache(), dp_manager::PackageManagerImpl::disposing(), dp_manager::PackageManagerImpl::reinstallDeployedPackages(), and dp_manager::PackageManagerImpl::removePackage().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::writeConsole | ( | std::u16string_view | sText | ) |
writes the argument string to the console.
It converts the UTF16 string to an ANSI string using osl_getThreadTextEncoding() as target encoding.
Definition at line 463 of file dp_misc.cxx.
References writeConsoleWithStream().
Referenced by unopkg::printf_packages(), unopkg::printf_unaccepted_licenses(), and unopkg_main().
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::writeConsoleError | ( | std::u16string_view | sText | ) |
writes the argument to the console using the error stream.
Otherwise the same as writeConsole.
Definition at line 468 of file dp_misc.cxx.
References writeConsoleWithStream().
Referenced by unopkg_main().
|
static |
Definition at line 456 of file dp_misc.cxx.
References OUStringToOString(), and stream.
Referenced by writeConsole(), and writeConsoleError().
void dp_misc::xml_parse | ( | css::uno::Reference< css::xml::sax::XDocumentHandler > const & | xDocHandler, |
::ucbhelper::Content & | ucb_content, | ||
css::uno::Reference< css::uno::XComponentContext > const & | xContext | ||
) |
void dp_misc::xml_parse | ( | Reference< xml::sax::XDocumentHandler > const & | xDocHandler, |
::ucbhelper::Content & | ucb_content, | ||
Reference< XComponentContext > const & | xContext | ||
) |
Definition at line 33 of file dp_xml.cxx.
References dp_registry::backend::bundle::create(), ucbhelper::Content::getURL(), ucbhelper::Content::openStream(), and xContext.
Referenced by dp_registry::backend::script::LibraryContainer::get_libname().
const char dp_misc::CR = 0x0d |
Definition at line 34 of file dp_misc.h.
Referenced by readLine(), and readProperties().
const char dp_misc::LF = 0x0a |
Definition at line 35 of file dp_misc.h.
Referenced by IMPL_LINK_NOARG(), readLine(), and readProperties().
const char dp_misc::PmapMagic[4] = {'P','m','p','1'} |
Definition at line 43 of file dp_persmap.cxx.
Referenced by dp_misc::PersistentMap::flush(), and dp_misc::PersistentMap::readAll().