idlefw/plugins/devicestatus/inc/aisimregpublisher.h
branchRCL_3
changeset 30 a5a39a295112
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:  SIM registration status publisher
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AISIMREGFAILPUBLISHER_H
       
    20 #define C_AISIMREGFAILPUBLISHER_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 /**
       
    37  *  @ingroup group_devicestatusplugin
       
    38  *
       
    39  *  Listens SIM Registration status and publishes data if SIM registration failed.
       
    40  *
       
    41  *  @since S60 3.2
       
    42  */
       
    43 NONSHARABLE_CLASS( CAiSimRegPublisher ) : public CBase, 
       
    44     public MAiDeviceStatusPublisher,
       
    45     public MAiNetworkInfoObserver
       
    46     {
       
    47 public:
       
    48 
       
    49     static CAiSimRegPublisher* NewL();
       
    50 
       
    51     virtual ~CAiSimRegPublisher();
       
    52 
       
    53 // from base class MAiDeviceStatusPublisher
       
    54 
       
    55     void ResumeL();
       
    56     void Subscribe( MAiContentObserver& aObserver, 
       
    57                     CHsContentPublisher& aExtension,
       
    58                     MAiPublishPrioritizer& aPrioritizer,
       
    59                     MAiPublisherBroadcaster& aBroadcaster );
       
    60     void RefreshL( TBool aClean );
       
    61     TBool RefreshL( TInt aContentId, TBool aClean );
       
    62 
       
    63 protected:
       
    64 
       
    65 //from base class MAiNetworkInfoObserver
       
    66 
       
    67     void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage, 
       
    68     							  const TNWInfo& aInfo, 
       
    69     							  const TBool aShowOpInd );
       
    70 
       
    71 
       
    72 private:
       
    73 
       
    74     CAiSimRegPublisher();
       
    75 
       
    76     void ConstructL();
       
    77 
       
    78 
       
    79 private: // data
       
    80 
       
    81     /**
       
    82      * Content observer.
       
    83      * Not own.
       
    84      */
       
    85     MAiContentObserver* iContentObserver;
       
    86 
       
    87     /**
       
    88      * Property extension.
       
    89      * Not own.
       
    90      */
       
    91     CHsContentPublisher* iExtension;
       
    92 
       
    93     /**
       
    94      * Network info listener.
       
    95      * Own.
       
    96      */
       
    97     CAiNetworkInfoListener* iListener;
       
    98     };
       
    99 
       
   100 
       
   101 #endif // C_AISIMREGFAILPUBLISHER_H