connectionmonitoring/connmon/connectionmonitor/inc/ConnMonAvailabilityManager.h
author hgs
Wed, 27 Oct 2010 18:01:02 +0300
changeset 72 0c32cf868819
parent 0 5a93021fdf25
permissions -rw-r--r--
201041_1

/*
* 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