javaextensions/location/landmarks/inc/mlapilmdatabaseeventnotifier.h
changeset 21 2a9601315dfc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javaextensions/location/landmarks/inc/mlapilmdatabaseeventnotifier.h	Mon May 03 12:27:20 2010 +0300
@@ -0,0 +1,74 @@
+/*
+* Copyright (c) 2008 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:  Interface for listening native database events
+ *
+*/
+
+
+#ifndef MLAPILMDATABASEEVENTNOTIFIER_H
+#define MLAPILMDATABASEEVENTNOTIFIER_H
+
+// EXTERNAL INCLUDES
+#include    <e32std.h>
+#include    <e32def.h>
+
+// FORWARD DECLARATIONS
+class MLAPILmDatabaseObserver;
+
+/**
+ * Interface for listening native database events
+ *
+ * @lib N/A
+ * @since S60 3.2
+ */
+NONSHARABLE_CLASS(MLAPILmDatabaseEventNotifier)
+{
+public:
+
+    /**
+     * Destructor. This allows deletion through this interface
+     */
+    virtual ~MLAPILmDatabaseEventNotifier()
+    {}
+
+public: // New functions
+
+    /**
+     * Adds an event observer to this notifier
+     *
+     * @param aObserver An event observer. This class does NOT take
+     *        the ownership of the value
+     */
+    virtual void AddObserverL(MLAPILmDatabaseObserver* aObserver) = 0;
+
+    /**
+     * Removes an event observer from this notifier. Nothing happens if
+     * there is no such observer in the observer array
+     *
+     * @param aObserver An event observer. This class does NOT take
+     *        the ownership of the value
+     */
+    virtual void RemoveObserver(MLAPILmDatabaseObserver* aObserver) = 0;
+
+    /**
+     * Returns ETrue if event listening is supported. EFalse if the
+     * Landmarks API does not support event listening
+     */
+    virtual TBool IsEventListeningSupported() = 0;
+
+}
+;
+
+#endif // MLAPILMDATABASEEVENTNOTIFIER_H
+// End of file