summaryrefslogtreecommitdiff
path: root/ucb/source/core/ucbstore.cxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2001-03-21 08:04:18 +0000
committerKai Sommerfeld <kso@openoffice.org>2001-03-21 08:04:18 +0000
commit21cb4df7b08d43f5409574d4efd0d369ef6b22b8 (patch)
treec50b59a8a5618edd32fe37c8fe86fb05ff5bc509 /ucb/source/core/ucbstore.cxx
parentc92dd9fb5cfaec48f8c95e36abdc3adf0dec2032 (diff)
#85198# - Config update access now uses lazy writer.
Diffstat (limited to 'ucb/source/core/ucbstore.cxx')
-rw-r--r--ucb/source/core/ucbstore.cxx28
1 files changed, 23 insertions, 5 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 08bde168cdd2..646ce4fb3e05 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ucbstore.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: kso $ $Date: 2000-12-21 09:23:35 $
+ * last change: $Author: kso $ $Date: 2001-03-21 09:04:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -113,6 +113,11 @@ using namespace rtl;
#define STORE_CONTENTPROPERTIES_KEY "/org.openoffice.ucb.Store/ContentProperties"
+// describe path of cfg entry
+#define CFGPROPERTY_NODEPATH "nodepath"
+// true->async. update; false->sync. update
+#define CFGPROPERTY_LAZYWRITE "lazywrite"
+
//=========================================================================
struct equalString_Impl
@@ -1371,9 +1376,22 @@ Reference< XInterface > PropertySetRegistry::getConfigWriteAccess(
if ( m_pImpl->m_xConfigProvider.is() )
{
- Sequence< Any > aArguments( 1 );
- aArguments[ 0 ] <<= OUString::createFromAscii(
- STORE_CONTENTPROPERTIES_KEY );
+ Sequence< Any > aArguments( 2 );
+ PropertyValue aProperty;
+
+ aProperty.Name
+ = OUString( RTL_CONSTASCII_USTRINGPARAM(
+ CFGPROPERTY_NODEPATH ) );
+ aProperty.Value
+ <<= OUString( RTL_CONSTASCII_USTRINGPARAM(
+ STORE_CONTENTPROPERTIES_KEY ) );
+ aArguments[ 0 ] <<= aProperty;
+
+ aProperty.Name
+ = OUString( RTL_CONSTASCII_USTRINGPARAM(
+ CFGPROPERTY_LAZYWRITE ) );
+ aProperty.Value <<= sal_True;
+ aArguments[ 1 ] <<= aProperty;
m_pImpl->m_bTriedToGetRootWriteAccess = sal_True;