idlefw/plugins/devicestatus/inc/aivhzpublisher.h
changeset 0 79c6a41cd166
child 8 d0529222e3f0
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     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:  Viag Home Zone (VHZ) publisher.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIVHZPUBLISHER_H
       
    20 #define C_AIVHZPUBLISHER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "aidevicestatuspublisher.h"
       
    25 #include "aidevicestatuscontentmodel.h"
       
    26 #include "ainetworkinfoobserver.h"
       
    27 
       
    28 class MAiDeviceStatusContentObserver;
       
    29 class MAiPropertyExtension;
       
    30 class CAiNetworkInfoListener;
       
    31 
       
    32 /**
       
    33  *  @ingroup group_devicestatusplugin
       
    34  *
       
    35  *  Viag Home Zone (VHZ) publisher.
       
    36  *
       
    37  *  Observes network info changes and publishes zone name
       
    38  *  when phone arrives to home or city zone.
       
    39  *
       
    40  *  @since S60 3.2
       
    41  */
       
    42 class CAiVHZPublisher : public CBase, public MAiDeviceStatusPublisher,
       
    43                                 public MAiNetworkInfoObserver
       
    44     {
       
    45 public:
       
    46 
       
    47     static CAiVHZPublisher* NewL();
       
    48 
       
    49     virtual ~CAiVHZPublisher();
       
    50 
       
    51 protected:
       
    52 
       
    53 // from base class MAiDeviceStatusPublisher
       
    54 
       
    55     void ResumeL();
       
    56     void Subscribe( MAiContentObserver& aObserver, 
       
    57                     MAiPropertyExtension& aExtension,
       
    58                     MAiPublishPrioritizer& aPrioritizer,
       
    59                     MAiPublisherBroadcaster& aBroadcaster );
       
    60     void RefreshL( TBool aClean );
       
    61     TBool RefreshL( TInt aContentId, TBool aClean );
       
    62 
       
    63 //from base class MAiNetworkInfoObserver
       
    64 
       
    65     void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage, 
       
    66     							  const TNWInfo& aInfo, 
       
    67     							  const TBool aShowOpInd );
       
    68 
       
    69 
       
    70 private:
       
    71 
       
    72     CAiVHZPublisher();
       
    73 
       
    74     void ConstructL();
       
    75 
       
    76 private: // data
       
    77 
       
    78     /**
       
    79      * Content observer.
       
    80      * Not own.
       
    81      */
       
    82     MAiContentObserver* iContentObserver;
       
    83 
       
    84     /**
       
    85      * Property extension.
       
    86      * Not own.
       
    87      */
       
    88     MAiPropertyExtension* iExtension;
       
    89 
       
    90     /**
       
    91      * Network info listener.
       
    92      * Not own.
       
    93      */
       
    94     CAiNetworkInfoListener* iListener;
       
    95     
       
    96     /**
       
    97      * Flag to indiate whether vhz is in navi or mainpane.
       
    98      */    
       
    99      TBool iVhzInMainpane;
       
   100 
       
   101     };
       
   102 
       
   103 
       
   104 #endif // C_AIVHZPUBLISHER_H