connectionmonitoring/connmon/connectionmonitor/inc/ConnMonAvailabilityManager.h
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Provides declarations for the availability manager.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CONNMONAVAILABILITYMANAGER_H
       
    19 #define CONNMONAVAILABILITYMANAGER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CConnMonCommsDatCache;
       
    24 class CConnMonServer;
       
    25 
       
    26 /**
       
    27  * Availability manager
       
    28  * Availability manager class declaration
       
    29  */
       
    30 class CConnMonAvailabilityManager : public CBase
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Two phase constructor.
       
    35      * @param aIapsAvailabilityManager IapsAvailabilityManager
       
    36      * @param aCommsDataNotifier CommsDataNotifier
       
    37      */
       
    38     static CConnMonAvailabilityManager* NewL(
       
    39             CConnMonCommsDatCache* aCommsDatCache,
       
    40             CConnMonServer* aConnMonServer );
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~CConnMonAvailabilityManager();
       
    46 
       
    47     /**
       
    48      * Handles availability change.
       
    49      */
       
    50     void HandleAvailabilityChange();
       
    51 
       
    52     /**
       
    53      * Called when any CenRep CommsDat table listener receives a notification
       
    54      */
       
    55     void CommsDatEventReceivedL( const TUint32 aTableId );
       
    56 
       
    57 private:
       
    58     /**
       
    59      * Constructor.
       
    60      * @param aIapsAvailabilityManager IapsAvailabilityManager
       
    61      * @param aCommsDataNotifier CommsDataNotifier
       
    62      */
       
    63     CConnMonAvailabilityManager(
       
    64             CConnMonCommsDatCache* aCommsDatCache,
       
    65             CConnMonServer* aConnMonServer );
       
    66 
       
    67 private: // Data
       
    68     /**
       
    69      * CommsDat cache
       
    70      * Not own
       
    71      */
       
    72     CConnMonCommsDatCache* iCommsDatCache;
       
    73 
       
    74     /**
       
    75      * Link to Server and IAP services and data
       
    76      * Not own
       
    77      */
       
    78     CConnMonServer* iConnMonServer;
       
    79     };
       
    80 
       
    81 #endif // CONNMONAVAILABILITYMANAGER_H
       
    82 
       
    83 // End-of-file