diff options
author | Lars Langhans <lla@openoffice.org> | 2001-01-26 06:53:36 +0000 |
---|---|---|
committer | Lars Langhans <lla@openoffice.org> | 2001-01-26 06:53:36 +0000 |
commit | e87893363966a8478d93fcfa9da41b0be96a6bf3 (patch) | |
tree | be1cdd7bb060205939f975748ba0bf8cef9c538a /configmgr/source/inc | |
parent | d234e6e26a00e8d93fee5e46ad9b0bc3416c6921 (diff) |
#82734# lasy writing
Diffstat (limited to 'configmgr/source/inc')
-rw-r--r-- | configmgr/source/inc/options.hxx | 11 | ||||
-rw-r--r-- | configmgr/source/inc/treeprovider.hxx | 14 |
2 files changed, 15 insertions, 10 deletions
diff --git a/configmgr/source/inc/options.hxx b/configmgr/source/inc/options.hxx index d7c01196739e..083892be67c9 100644 --- a/configmgr/source/inc/options.hxx +++ b/configmgr/source/inc/options.hxx @@ -2,9 +2,9 @@ * * $RCSfile: options.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: dg $ $Date: 2000-12-19 13:47:31 $ + * last change: $Author: lla $ $Date: 2001-01-26 07:53:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -98,10 +98,12 @@ namespace configmgr rtl::OUString m_sUser; // user key used (could be empty) rtl::OUString m_sDefaultUser; // user key used (could be empty) sal_Int32 m_nCacheID; // set if data should not be fetched from the cache, but reloaded + bool m_bLasyWrite; // true, if tree use lasy writing public: OOptions(const uno::Reference< script::XTypeConverter >& _xConverter) :m_xConverter(_xConverter) ,m_nCacheID(0) + ,m_bLasyWrite(false) {} OOptions(const OOptions& _rOptions) @@ -110,7 +112,8 @@ namespace configmgr ,m_sDefaultUser(_rOptions.getDefaultUser()) ,m_sLocale(_rOptions.m_sLocale) ,m_sUser(_rOptions.m_sUser) - ,m_nCacheID(0) // cache identity is not copied + ,m_nCacheID(0), // cache identity is not copied + m_bLasyWrite(_rOptions.m_bLasyWrite) { if (!_rOptions.canUseCache()) this->setNoCache(); } @@ -132,6 +135,8 @@ namespace configmgr void setDefaultUser(const rtl::OUString& _rUser) {m_sDefaultUser = _rUser;} void setLocale(const rtl::OUString& _rLocale) {m_sLocale = _rLocale;} void setDefaultLocale(const rtl::OUString& _rLocale) {m_sDefaultLocale = _rLocale;} + void setLasyWrite(bool _bLasyWrite = false) {m_bLasyWrite = _bLasyWrite;} + bool getLasyWrite() {return m_bLasyWrite;} friend sal_Int32 compareCacheIdentity(OOptions const& lhs, OOptions const& rhs) { return rhs.m_nCacheID - lhs.m_nCacheID; } diff --git a/configmgr/source/inc/treeprovider.hxx b/configmgr/source/inc/treeprovider.hxx index a41f06d3f25f..ce800b0dfc4c 100644 --- a/configmgr/source/inc/treeprovider.hxx +++ b/configmgr/source/inc/treeprovider.hxx @@ -2,9 +2,9 @@ * * $RCSfile: treeprovider.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: lla $ $Date: 2001-01-17 15:02:30 $ + * last change: $Author: lla $ $Date: 2001-01-26 07:53:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,11 +135,11 @@ namespace configmgr root(_aSubtree) /* EXPENSIVE!!! (deep copy) */ {} - TreeChangeList(const vos::ORef < OOptions >& _xOptions, const rtl::OUString& _rPathToRoot, auto_ptr<SubtreeChange> _pSubtreeChange) - : m_xOptions(_xOptions), - pathToRoot(_rPathToRoot), - root(*_pSubtreeChange.release()) /* EXPENSIVE!!! (deep copy) */ - {} + // TreeChangeList(const vos::ORef < OOptions >& _xOptions, const rtl::OUString& _rPathToRoot, auto_ptr<SubtreeChange> _pSubtreeChange) + // : m_xOptions(_xOptions), + // pathToRoot(_rPathToRoot), + // root(*_pSubtreeChange.release()) /* EXPENSIVE!!! (deep copy) */ + // {} /** ctor @param _rPathToRoot path to the root of the whole to-be-updated subtree @param _rLocalName relative path within the to-be-updated subtree |