idlefw/plugins/devicestatus/inc/aimcnpublisher.h
branchRCL_3
changeset 30 a5a39a295112
child 31 8baec10861af
equal deleted inserted replaced
29:0efa10d348c0 30:a5a39a295112
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Micro Cellular Network (MCN) publisher.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIMCNPUBLISHER_H
       
    20 #define C_AIMCNPUBLISHER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <aidevicestatuscontentmodel.h>
       
    25 
       
    26 // User includes
       
    27 #include "aidevicestatuspublisher.h"
       
    28 #include "ainetworkinfoobserver.h"
       
    29 
       
    30 // Forward declarations
       
    31 class MAiDeviceStatusContentObserver;
       
    32 class CHsContentPublisher;
       
    33 class CAiNetworkInfoListener;
       
    34 
       
    35 /**
       
    36  *  @ingroup group_devicestatusplugin
       
    37  *
       
    38  *  Micro Cellular Network (MCN) publisher.
       
    39  *
       
    40  *  This publisher listens network info changes and publishes
       
    41  *  received MCN messages.
       
    42  *
       
    43  *  @since S60 3.2
       
    44  */
       
    45 NONSHARABLE_CLASS( CAiMCNPublisher ) : public CBase, 
       
    46     public MAiDeviceStatusPublisher,
       
    47     public MAiNetworkInfoObserver
       
    48     {
       
    49 public:
       
    50 
       
    51     static CAiMCNPublisher* NewL();
       
    52 
       
    53     virtual ~CAiMCNPublisher();
       
    54 
       
    55 protected:
       
    56 
       
    57 // from base class MAiDeviceStatusPublisher
       
    58 
       
    59     void ResumeL();
       
    60     void Subscribe( MAiContentObserver& aObserver, 
       
    61                     CHsContentPublisher& aExtension,
       
    62                     MAiPublishPrioritizer& aPrioritizer,
       
    63                     MAiPublisherBroadcaster& aBroadcaster );
       
    64     void RefreshL( TBool aClean );
       
    65     TBool RefreshL( TInt aContentId, TBool aClean );
       
    66 
       
    67 
       
    68 //from base class MAiNetworkInfoObserver
       
    69 
       
    70     void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage, 
       
    71     							  const TNWInfo& aInfo, 
       
    72     							  const TBool aShowOpInd );
       
    73 
       
    74 
       
    75 private:
       
    76 
       
    77     CAiMCNPublisher();
       
    78 
       
    79     void ConstructL();
       
    80 
       
    81 private: // data
       
    82 
       
    83 
       
    84     /**
       
    85      * Content observer.
       
    86      * Not own.
       
    87      */
       
    88     MAiContentObserver* iContentObserver;
       
    89 
       
    90     /**
       
    91      * Property extension.
       
    92      * Not own.
       
    93      */
       
    94     CHsContentPublisher* iExtension;
       
    95 
       
    96     /**
       
    97      * Network info listener.
       
    98      * Own.
       
    99      */
       
   100     CAiNetworkInfoListener* iListener;
       
   101     };
       
   102 
       
   103 
       
   104 #endif // C_AIMCNPUBLISHER_H