mediator/src/Server/MediatorServerObjects.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
--- a/mediator/src/Server/MediatorServerObjects.cpp	Tue Aug 31 16:29:05 2010 +0300
+++ b/mediator/src/Server/MediatorServerObjects.cpp	Wed Sep 01 12:34:26 2010 +0100
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2005 - 2010 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -1079,6 +1079,20 @@
     }
 
 // -----------------------------------------------------------------------------
+// CEvent::AddObservers
+// 
+// -----------------------------------------------------------------------------
+//
+void CEvent::AddObservers( RPointerArray<MMediatorServerEventObserver>& aObservers )
+    {
+    // Check that observer does not exists already for this event
+    for (TInt index = 0; index < aObservers.Count(); index++ )
+        {
+        iObservers.Append( aObservers[index] );
+        }
+    }
+
+// -----------------------------------------------------------------------------
 // CEvent::Event
 // Returns EItemEvent
 // -----------------------------------------------------------------------------