Kaydet (Commit) 726e9969 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS configrefactor01 (1.8.84); FILE MERGED

2007/02/07 12:00:31 mmeeks 1.8.84.4: Submitted by: sb
Reviewed by:  mmeeks
Nice fixes from Stefan, thanks.
2007/01/12 17:51:19 mmeeks 1.8.84.3: RIP 'memory::Accessor'
2007/01/12 11:48:32 mmeeks 1.8.84.2: Remove a load of unneeded Accessor fluff
Fix SimpleReferenceObject - it has to have 1 virtual method.
2007/01/11 20:16:00 mmeeks 1.8.84.1: Submitted by: mmeeks
More re-factoring, lots of locking rationalized, drastically reduced
the mutex count, also removed ~300k interlocked increments with a non-interlocking
SimpleReferencedObject base
üst 60e1a0b2
......@@ -4,9 +4,9 @@
*
* $RCSfile: confevents.hxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:44:58 $
* last change: $Author: ihi $ $Date: 2007-11-23 14:16:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -36,8 +36,8 @@
#ifndef CONFIGMGR_API_EVENTS_HXX_
#define CONFIGMGR_API_EVENTS_HXX_
#ifndef _SALHELPER_SIMPLEREFERENCEOBJECT_HXX_
#include <salhelper/simplereferenceobject.hxx>
#ifndef CONFIGMGR_UTILITY_HXX_
#include "utility.hxx"
#endif
#ifndef _RTL_REF_HXX_
#include <rtl/ref.hxx>
......@@ -51,19 +51,18 @@ namespace configmgr
struct TreeChangeList;
class RequestOptions;
namespace memory { class Accessor; }
namespace configuration { class AbsolutePath; }
using configuration::AbsolutePath;
struct IConfigBroadcaster;
struct IConfigListener : public virtual salhelper::SimpleReferenceObject
struct IConfigListener : public virtual configmgr::SimpleReferenceObject
{
virtual void disposing(IConfigBroadcaster* pSource) = 0;
};
struct INodeListener : IConfigListener
{
virtual void nodeChanged(memory::Accessor const& _aChangedDataAccessor, Change const& aChange, AbsolutePath const& aPath, IConfigBroadcaster* pSource) = 0;
virtual void nodeDeleted(memory::Accessor const& _aChangedDataAccessor, AbsolutePath const& aPath, IConfigBroadcaster* pSource) = 0;
virtual void nodeChanged(Change const& aChange, AbsolutePath const& aPath, IConfigBroadcaster* pSource) = 0;
virtual void nodeDeleted(AbsolutePath const& aPath, IConfigBroadcaster* pSource) = 0;
};
typedef rtl::Reference<INodeListener> INodeListenerRef;
......@@ -89,7 +88,7 @@ namespace configmgr
virtual void removeListener(const RequestOptions& _aOptions, INodeListenerRef const& pListener);
protected:
virtual void fireChanges(memory::Accessor const& _aChangedDataAccessor, TreeChangeList const& _aChanges, sal_Bool _bError);
virtual void fireChanges(TreeChangeList const& _aChanges, sal_Bool _bError);
protected:
virtual ConfigChangeBroadcastHelper* getBroadcastHelper(const RequestOptions& _aOptions, bool bCreate) = 0;
ConfigChangeBroadcastHelper* newBroadcastHelper(); // needed to implement the preceding
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment