summaryrefslogtreecommitdiff
path: root/ucbhelper/inc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-03-25 14:26:23 +0000
committerOliver Bolte <obo@openoffice.org>2008-03-25 14:26:23 +0000
commit94324c66cdac1984cbaac182e46347ee324b358d (patch)
tree5a2f0a4ee330b881430ead1c29dbb5a33f89d850 /ucbhelper/inc
parent535480ab35663df6a967508ec0d7b51d5c3dec2f (diff)
INTEGRATION: CWS ucbfixes06 (1.6.32); FILE MERGED
2008/01/21 12:24:08 kso 1.6.32.1: #i85139# - content instance caching now should be threadsafe.
Diffstat (limited to 'ucbhelper/inc')
-rw-r--r--ucbhelper/inc/ucbhelper/providerhelper.hxx26
1 files changed, 22 insertions, 4 deletions
diff --git a/ucbhelper/inc/ucbhelper/providerhelper.hxx b/ucbhelper/inc/ucbhelper/providerhelper.hxx
index 5d231ec3bc57..40d33be065cb 100644
--- a/ucbhelper/inc/ucbhelper/providerhelper.hxx
+++ b/ucbhelper/inc/ucbhelper/providerhelper.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: providerhelper.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: ihi $ $Date: 2007-06-05 14:50:14 $
+ * last change: $Author: obo $ $Date: 2008-03-25 15:26:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -111,14 +111,14 @@ protected:
::com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
private:
- UCBHELPER_DLLPRIVATE void addContent ( ContentImplHelper* pContent );
UCBHELPER_DLLPRIVATE void removeContent( ContentImplHelper* pContent );
- UCBHELPER_DLLPRIVATE void removeContent( const ::rtl::OUString& rURL );
UCBHELPER_DLLPRIVATE ::com::sun::star::uno::Reference<
::com::sun::star::ucb::XPropertySetRegistry >
getAdditionalPropertySetRegistry();
+ UCBHELPER_DLLPRIVATE void cleanupRegisteredContents();
+
protected:
/**
* This method returns a content with the given id, if it already exists.
@@ -145,6 +145,24 @@ protected:
rtl::Reference< ContentImplHelper >
queryExistingContent( const ::rtl::OUString& rURL );
+ /**
+ * This method registers a newly created content instance with the
+ * content provider. It should be called directly after creating a new
+ * content instance. The provider can reuse a registered instance upon
+ * subsedent requests for content instances with an idententifier
+ * of a registered instance.
+ * Note that the provider does not hold a hard reference on the
+ * registered instance. If last external reference is gone, the provider
+ * will remove the instance from its inventory of known instances.
+ * Nothing will happen in case an already registered instance shall
+ * be registered more than once.
+ *
+ * @param the content instance that is to be registered.
+ */
+ void registerNewContent(
+ const com::sun::star::uno::Reference<
+ ::com::sun::star::ucb::XContent > & xContent );
+
public:
//////////////////////////////////////////////////////////////////////