summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:
//////////////////////////////////////////////////////////////////////