idlefw/plugins/devicestatus/inc/aioperatornamepublisher.h
branchRCL_3
changeset 8 d0529222e3f0
parent 0 79c6a41cd166
child 14 15e4dd19031c
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
    17 
    17 
    18 
    18 
    19 #ifndef C_AIOPERATORPROVIDERNAMEPUBLISHER_H
    19 #ifndef C_AIOPERATORPROVIDERNAMEPUBLISHER_H
    20 #define C_AIOPERATORPROVIDERNAMEPUBLISHER_H
    20 #define C_AIOPERATORPROVIDERNAMEPUBLISHER_H
    21 
    21 
    22 
    22 // System includes
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <AknUtils.h>
    24 #include <AknUtils.h>
       
    25 
       
    26 // User includes
    25 #include "aidevicestatuspublisher.h"
    27 #include "aidevicestatuspublisher.h"
    26 #include "ainetworkinfoobserver.h"
    28 #include "ainetworkinfoobserver.h"
    27 
    29 
       
    30 // Forward declarations
    28 class CAiNetworkInfoListener;
    31 class CAiNetworkInfoListener;
    29 class MAiDeviceStatusContentObserver;
    32 class MAiDeviceStatusContentObserver;
    30 class MAiPropertyExtension;
    33 class CHsContentPublisher;
       
    34 
    31 
    35 
    32 /**
    36 /**
    33  *  @ingroup group_devicestatusplugin
    37  *  @ingroup group_devicestatusplugin
    34  *
    38  *
    35  *  Operator/Service provider name publisher.
    39  *  Operator/Service provider name publisher.
    37  *  Listens network info changes and publishes operator name
    41  *  Listens network info changes and publishes operator name
    38  *  if it is received.
    42  *  if it is received.
    39  *
    43  *
    40  *  @since S60 3.2
    44  *  @since S60 3.2
    41  */
    45  */
    42 class CAiOperatorNamePublisher : public CBase, public MAiDeviceStatusPublisher,
    46 NONSHARABLE_CLASS( CAiOperatorNamePublisher ) : public CBase, 
    43                                public MAiNetworkInfoObserver
    47     public MAiDeviceStatusPublisher,
       
    48     public MAiNetworkInfoObserver
    44     {
    49     {
    45 public:
    50 public:
    46 
    51 
    47     static CAiOperatorNamePublisher* NewL();
    52     static CAiOperatorNamePublisher* NewL();
    48 
    53 
    50 
    55 
    51 //from base class MAiDeviceStatusPublisher
    56 //from base class MAiDeviceStatusPublisher
    52 
    57 
    53     void ResumeL();
    58     void ResumeL();
    54     void Subscribe( MAiContentObserver& aObserver, 
    59     void Subscribe( MAiContentObserver& aObserver, 
    55                     MAiPropertyExtension& aExtension,
    60                     CHsContentPublisher& aExtension,
    56                     MAiPublishPrioritizer& aPrioritizer,
    61                     MAiPublishPrioritizer& aPrioritizer,
    57                     MAiPublisherBroadcaster& aBroadcaster );
    62                     MAiPublisherBroadcaster& aBroadcaster );
    58     void RefreshL( TBool aClean );
    63     void RefreshL( TBool aClean );
    59     TBool RefreshL( TInt aContentId, TBool aClean );
    64     TBool RefreshL( TInt aContentId, TBool aClean );
       
    65     TBool SuspendL( TInt aContentId, TBool aClean );
    60     TBool RefreshContentWithPriorityL( TInt aContentId, TInt aPriority );
    66     TBool RefreshContentWithPriorityL( TInt aContentId, TInt aPriority );
    61 
    67 
    62 
    68 
    63 protected:
    69 protected:
    64 
    70 
   139      */
   145      */
   140     TBool IsKeyLockEnabled();
   146     TBool IsKeyLockEnabled();
   141 
   147 
   142 private: // data
   148 private: // data
   143 
   149 
   144     /**
   150     /** Network info listener, not owned */
   145      * Network info listener.
       
   146      * Own.
       
   147      */
       
   148     CAiNetworkInfoListener* iListener;
   151     CAiNetworkInfoListener* iListener;
   149 
   152     /** Property extension, not owned */
   150     /**
   153     CHsContentPublisher* iExtension;
   151      * Property extension.
   154 	/** Content prioritizer, not owned */
   152      * Not own.
   155 	MAiPublishPrioritizer* iPrioritizer;    
   153      */
   156 	/** Publish broadcaster, not owned */
   154     MAiPropertyExtension* iExtension;
   157 	MAiPublisherBroadcaster* iBroadcaster;    
   155 
   158     /** Used to do delayed clean operation, owned */
   156 	/**
   159     CPeriodic* iPeriodic;    
   157 	 * Content prioritizer.
   160     /** True if publish was successful */
   158 	 * Not own.
   161     TBool iSuccess;    
   159 	 */
   162     /** Operator name priority */
   160 	MAiPublishPrioritizer* iPrioritizer;
   163     TInt iPriority;    
   161     
   164     /** Show operator indicator */
   162 	/**
   165     TBool iShowOpInd;    
   163 	 * Publish broadcaster.
   166     /** Network identity name */
   164 	 * Not own.
   167     TPtrC iNetworkIdentityName;    
   165 	 */
   168     /** Flag to indicate if the content is suspended */ 
   166 	MAiPublisherBroadcaster* iBroadcaster;
   169     TBool iSuspended;
   167     
       
   168     /**
       
   169      * Used to do delayed clean operation.
       
   170      * Own.
       
   171      */
       
   172     CPeriodic* iPeriodic;
       
   173     
       
   174     /**
       
   175      * True if publish was successful.
       
   176      */
       
   177     TBool iSuccess;
       
   178     
       
   179     /**
       
   180      * Operator name priority
       
   181      */
       
   182     TInt iPriority;
       
   183     
       
   184     /**
       
   185      * Show operator indicator.
       
   186      */
       
   187     TBool iShowOpInd;
       
   188     
       
   189     /**
       
   190      * Network identity name
       
   191      */
       
   192     TPtrC iNetworkIdentityName;
       
   193     };
   170     };
   194 
   171 
       
   172 #endif // C_AIOPERATORPROVIDERNAMEPUBLISHER_H
   195 
   173 
   196 #endif // C_AIOPERATORPROVIDERNAMEPUBLISHER_H
   174 // End of file