phonebookui/Phonebook2/Presentation/inc/CPbk2StoreConfigurationMonitor.h
changeset 0 e686773b3f54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/Phonebook2/Presentation/inc/CPbk2StoreConfigurationMonitor.h	Tue Feb 02 10:12:17 2010 +0200
@@ -0,0 +1,66 @@
+/*
+* Copyright (c) 2002-2007 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: 
+*     Phonebook 2 contact store configuration monitor.
+*
+*/
+
+
+#ifndef CPBK2STORECONFIGURATIONMONITOR_H
+#define CPBK2STORECONFIGURATIONMONITOR_H
+
+// INCLUDE FILES
+#include <e32base.h>
+#include <badesca.h>
+
+// FORWARD DECLARATIONS
+class CRepository;
+class TVPbkContactStoreUriPtr;
+class CVPbkContactStoreUriArray;
+class MPbk2StoreConfigurationObserver;
+
+/**
+ * Phonebook 2 contact store configuration monitor.
+ */
+NONSHARABLE_CLASS(CPbk2StoreConfigurationMonitor) : 
+        public CActive
+    {
+	public: // Construction & destruction
+		static CPbk2StoreConfigurationMonitor* NewL(
+		    CRepository& aRepository,
+		    MPbk2StoreConfigurationObserver& aObserver);
+
+        ~CPbk2StoreConfigurationMonitor();
+
+    public: // From CActive
+        void RunL();
+        void DoCancel();
+
+    private: // Implementation
+        CPbk2StoreConfigurationMonitor(
+                CRepository& aRepository,
+                MPbk2StoreConfigurationObserver& aObserver);
+        void ConstructL();
+        void RenewRequestL();
+
+	private: // Data
+        /// Ref: Central repository handle
+        CRepository& iRepository;
+        /// Ref: Observers of store configuration events
+        MPbk2StoreConfigurationObserver& iObserver;
+	};
+
+#endif // CPBK2STORECONFIGURATIONMONITOR_H
+
+// End of File