idlehomescreen/nativeuicontroller/inc/aitoolbarrenderer.h
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    17 
    17 
    18 
    18 
    19 #ifndef C_AITOOLBARRENDERER_H
    19 #ifndef C_AITOOLBARRENDERER_H
    20 #define C_AITOOLBARRENDERER_H
    20 #define C_AITOOLBARRENDERER_H
    21 
    21 
       
    22 // System includes
    22 #include <e32std.h>
    23 #include <e32std.h>
    23 #include <akntoolbarobserver.h>
    24 #include <akntoolbarobserver.h>
       
    25 
       
    26 // User includes
    24 #include "ainativerenderer.h"
    27 #include "ainativerenderer.h"
    25 #include "ainativeuimodel.h"
    28 #include "ainativeuimodel.h"
    26 #include "aitoolbarbutton.h"
    29 #include "aitoolbarbutton.h"
    27 
    30 
       
    31 // Forward declarations
       
    32 class CHsContentPublisher;
    28 class MAiFwEventHandler;
    33 class MAiFwEventHandler;
    29 class CAknToolbar;
    34 class CAknToolbar;
    30 
    35 
    31 namespace AiNativeUiController
    36 namespace AiNativeUiController
    32 {
    37 {
    33 
       
    34     
       
    35 /**
    38 /**
    36  *  Toolbar class of Native UI Controller application
    39  *  Toolbar class of Native UI Controller application
    37  *
    40  *
    38  *  @lib AiNatiUi
    41  *  @lib AiNatiUi
    39  */
    42  */
    40 // inheritance order must be this, despite codescanner warnings
    43 // inheritance order must be this, despite codescanner warnings
    41 class CAiToolbarRenderer : public MAknToolbarObserver,
    44 NONSHARABLE_CLASS( CAiToolbarRenderer ) : public MAknToolbarObserver,
    42                            public CAiNativeRenderer
    45    public CAiNativeRenderer
    43     {
    46     {  
    44 
       
    45     
       
    46 public:   // Constructors and destructor
    47 public:   // Constructors and destructor
    47 
    48 
    48     static CAiToolbarRenderer* NewLC( MAiFwEventHandler& aAiFwEventHandler, CAknToolbar& aToolbar);
    49     static CAiToolbarRenderer* NewLC( MAiFwEventHandler& aAiFwEventHandler, CAknToolbar& aToolbar);
    49 
    50 
    50     static CAiToolbarRenderer* NewL( MAiFwEventHandler& aAiFwEventHandler, CAknToolbar& aToolbar );
    51     static CAiToolbarRenderer* NewL( MAiFwEventHandler& aAiFwEventHandler, CAknToolbar& aToolbar );
    51     
    52     
    52     ~CAiToolbarRenderer();
    53     ~CAiToolbarRenderer();
    53     
    54     
    54 public:   // from CAiNativeRenderer    
    55 public:   // from CAiNativeRenderer    
    55     
    56     
    56     void DoPublishL( MAiPropertyExtension& aPlugin,
    57     void DoPublishL( CHsContentPublisher& aPlugin,
    57 					 TInt aContent,
    58 					 TInt aContent,
    58 					 const TDesC16& aText,
    59 					 const TDesC16& aText,
    59 					 TInt aIndex );
    60 					 TInt aIndex );
    60     
    61     
    61     void DoPublishL( MAiPropertyExtension& aPlugin,
    62     void DoPublishL( CHsContentPublisher& aPlugin,
    62                      TInt aContent,
    63                      TInt aContent,
    63                      const TDesC8& aBuf,
    64                      const TDesC8& aBuf,
    64                      TInt aIndex );
    65                      TInt aIndex );
    65                      
    66                      
    66     void TransactionCommittedL();
    67     void TransactionCommittedL();