connectionmonitoring/connmon/connectionmonitor/inc/ConnMonAvailabilityManager.h
changeset 0 5a93021fdf25
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectionmonitoring/connmon/connectionmonitor/inc/ConnMonAvailabilityManager.h	Thu Dec 17 08:55:21 2009 +0200
@@ -0,0 +1,83 @@
+/*
+* Copyright (c) 2006-2009 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:  Provides declarations for the availability manager.
+*
+*/
+
+#ifndef CONNMONAVAILABILITYMANAGER_H
+#define CONNMONAVAILABILITYMANAGER_H
+
+#include <e32base.h>
+
+class CConnMonCommsDatCache;
+class CConnMonServer;
+
+/**
+ * Availability manager
+ * Availability manager class declaration
+ */
+class CConnMonAvailabilityManager : public CBase
+    {
+public:
+    /**
+     * Two phase constructor.
+     * @param aIapsAvailabilityManager IapsAvailabilityManager
+     * @param aCommsDataNotifier CommsDataNotifier
+     */
+    static CConnMonAvailabilityManager* NewL(
+            CConnMonCommsDatCache* aCommsDatCache,
+            CConnMonServer* aConnMonServer );
+
+    /**
+     * Destructor.
+     */
+    virtual ~CConnMonAvailabilityManager();
+
+    /**
+     * Handles availability change.
+     */
+    void HandleAvailabilityChange();
+
+    /**
+     * Called when any CenRep CommsDat table listener receives a notification
+     */
+    void CommsDatEventReceivedL( const TUint32 aTableId );
+
+private:
+    /**
+     * Constructor.
+     * @param aIapsAvailabilityManager IapsAvailabilityManager
+     * @param aCommsDataNotifier CommsDataNotifier
+     */
+    CConnMonAvailabilityManager(
+            CConnMonCommsDatCache* aCommsDatCache,
+            CConnMonServer* aConnMonServer );
+
+private: // Data
+    /**
+     * CommsDat cache
+     * Not own
+     */
+    CConnMonCommsDatCache* iCommsDatCache;
+
+    /**
+     * Link to Server and IAP services and data
+     * Not own
+     */
+    CConnMonServer* iConnMonServer;
+    };
+
+#endif // CONNMONAVAILABILITYMANAGER_H
+
+// End-of-file