idlefw/plugins/devicestatus/inc/aicugmcnpublisher.h
branchRCL_3
changeset 9 d0529222e3f0
parent 0 79c6a41cd166
child 64 b276298d5729
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
    17 
    17 
    18 
    18 
    19 #ifndef C_AICUGMCNPUBLISHER_H
    19 #ifndef C_AICUGMCNPUBLISHER_H
    20 #define C_AICUGMCNPUBLISHER_H
    20 #define C_AICUGMCNPUBLISHER_H
    21 
    21 
    22 
    22 // System includes
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <RSSSettings.h>
    24 #include <RSSSettings.h>
    25 #include <MSSSettingsObserver.h>
    25 #include <MSSSettingsObserver.h>
       
    26 
       
    27 // User includes
    26 #include "aidevicestatuspublisher.h"
    28 #include "aidevicestatuspublisher.h"
    27 #include "aidevicestatuscontentmodel.h"
    29 #include "aidevicestatuscontentmodel.h"
    28 #include "ainetworkinfoobserver.h"
    30 #include "ainetworkinfoobserver.h"
    29 
    31 
       
    32 // Forward declarations
    30 class MAiDeviceStatusContentObserver;
    33 class MAiDeviceStatusContentObserver;
    31 class MAiPropertyExtension;
    34 class CHsContentPublisher;
    32 class CAiNetworkInfoListener;
    35 class CAiNetworkInfoListener;
    33 
    36 
    34 const TInt KAnimDelay = 2000000;
    37 // Constants
       
    38 const TInt KAnimDelay( 2000000 );
    35 
    39 
    36 /**
    40 /**
    37  *  @ingroup group_devicestatusplugin
    41  *  @ingroup group_devicestatusplugin
    38  *
    42  *
    39  *  Closed user group (CUG) and Micro Cellular Network (MCN) publisher.
    43  *  Closed user group (CUG) and Micro Cellular Network (MCN) publisher.
    40  *
    44  *
    41  *  @since S60 3.2
    45  *  @since S60 3.2
    42  */
    46  */
    43 class CAiCUGMCNPublisher : public CBase, public MAiDeviceStatusPublisher,
    47 NONSHARABLE_CLASS( CAiCUGMCNPublisher ) : public CBase, 
    44                         public MSSSettingsObserver, public MAiNetworkInfoObserver
    48     public MAiDeviceStatusPublisher,
       
    49     public MSSSettingsObserver, 
       
    50     public MAiNetworkInfoObserver
    45     {
    51     {
    46 public:
    52 public:
    47 
    53 
    48     static CAiCUGMCNPublisher* NewL();
    54     static CAiCUGMCNPublisher* NewL();
    49 
    55 
    53 
    59 
    54 // from base class MAiDeviceStatusPublisher
    60 // from base class MAiDeviceStatusPublisher
    55 
    61 
    56     void ResumeL();
    62     void ResumeL();
    57     void Subscribe( MAiContentObserver& aObserver, 
    63     void Subscribe( MAiContentObserver& aObserver, 
    58                     MAiPropertyExtension& aExtension,
    64                     CHsContentPublisher& aExtension,
    59                     MAiPublishPrioritizer& aPrioritizer,
    65                     MAiPublishPrioritizer& aPrioritizer,
    60                     MAiPublisherBroadcaster& aBroadcaster );
    66                     MAiPublisherBroadcaster& aBroadcaster );
    61     void RefreshL( TBool aClean );
    67     void RefreshL( TBool aClean );
    62     TBool RefreshL( TInt aContentId, TBool aClean );
    68     TBool RefreshL( TInt aContentId, TBool aClean );
    63 
    69 
   113 
   119 
   114     /**
   120     /**
   115      * Property extension.
   121      * Property extension.
   116      * Not own.
   122      * Not own.
   117      */
   123      */
   118     MAiPropertyExtension* iExtension;
   124     CHsContentPublisher* iExtension;
   119 
   125 
   120     /**
   126     /**
   121      * SS Settings client. Used to observer CUGMCN changes.
   127      * SS Settings client. Used to observer CUGMCN changes.
   122      */
   128      */
   123     RSSSettings iSSSettings;
   129     RSSSettings iSSSettings;