srsf/nssvasapi/nssvasdb/nssvasdbeventnotifier/inc/nssvascvasdbeventnotifier.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/srsf/nssvasapi/nssvasdb/nssvasdbeventnotifier/inc/nssvascvasdbeventnotifier.h	Wed Sep 01 12:29:17 2010 +0100
@@ -0,0 +1,82 @@
+/*
+* Copyright (c) 2002 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"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  CNssVASDBEventNotifier is the implementation class for interface 
+*				 MNssVASDBEventNotifier.
+*
+*/
+
+
+#ifndef CNSSVASDBEVENTNOTIFIER_H
+#define CNSSVASDBEVENTNOTIFIER_H
+
+//  INCLUDES
+#include "nssvasmvasdbeventnotifier.h"
+#include "nssvascvasdatabase.h"
+
+// CLASS DECLARATION
+
+/**
+*  CNssVASDBEventNotifier is the implementation class for interface MNssVASDBEventNotifier.
+*  @lib NssVASApi.lib
+*  @since 2.8
+*/
+class CNssVASDBEventNotifier : public CBase, public MNssVASDBEventNotifier
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * C++ constructor.
+        */
+        CNssVASDBEventNotifier(CNssVASDatabase* aDatabase);
+
+        /**
+        * Destructor.
+        */
+        virtual ~CNssVASDBEventNotifier();
+
+    public: // New functions
+        
+        /**
+        * Add an observer to the VAS DB
+		* @since 2.0
+        * @param aObserver, Observer to be added
+        * @return none
+        */
+        void AddObserverL(MNssVASDatabaseObserver* aObserver);
+
+    public: // Functions from base classes
+
+        /**
+        * Remove an observer from VAS DB
+        * @param aObserver, Observer to be removed
+        * @leave KErrNotFound if given observer has never been added
+        */
+        void RemoveObserverL(MNssVASDatabaseObserver* aObserver);
+        
+  
+    private:
+
+        /**
+        * EPOC constructor 
+        */
+        void ConstructL();
+	
+	private:
+		// pointer to VAS Database
+		CNssVASDatabase* iDatabase;
+    };
+
+#endif      // CVASDBEVENTNOTIFIER_H  
+            
+// End of File