idlehomescreen/nativeuicontroller/inc/aititlepanerenderer.h
changeset 0 f72a12da539e
child 9 f966699dea19
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Handles publishing to title pane.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AITITLEPANERENDERER_H
       
    20 #define C_AITITLEPANERENDERER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "ainativerenderer.h"
       
    25 #include "ainativeuimodel.h"
       
    26 
       
    27 namespace AiUtility
       
    28 	{
       
    29 	class CContentPriorityMap;
       
    30 	}
       
    31 
       
    32 namespace AiNativeUiController
       
    33 {
       
    34 
       
    35 class CAiStatusPanel;
       
    36 
       
    37 
       
    38 /**
       
    39  *  Title pane renderer.
       
    40  *
       
    41  *  This class is used to handle publishing to title pane.
       
    42  *  Published data can be either logo or text.
       
    43  *
       
    44  *  @since S60 3.2
       
    45  */
       
    46 class CAiTitlePaneRenderer : public CAiNativeRenderer
       
    47     {
       
    48 public:
       
    49 
       
    50     static CAiTitlePaneRenderer* NewLC( CAiStatusPanel& aStatusPanel );
       
    51 
       
    52     virtual ~CAiTitlePaneRenderer();
       
    53 
       
    54 // from base class CAiNativeRenderer
       
    55 
       
    56     void DoPublishL( MAiPropertyExtension& aPlugin, 
       
    57                         TInt aContent, 
       
    58                         const TDesC16& aText,
       
    59                         TInt aIndex );
       
    60 
       
    61     void DoPublishL( MAiPropertyExtension& aPlugin, 
       
    62                         TInt aContent, 
       
    63                         const TDesC8& aBuf,
       
    64                         TInt aIndex );
       
    65 
       
    66     void DoPublishL( MAiPropertyExtension& aPlugin, 
       
    67                         TInt aContent, 
       
    68                         TInt aResource,
       
    69                         TInt aIndex );
       
    70 
       
    71 	void DoCleanL( MAiPropertyExtension& aPlugin, TInt aContent );
       
    72 
       
    73     void TransactionCommittedL();
       
    74 
       
    75     void FocusObtainedL();
       
    76 
       
    77     void FocusLostL();
       
    78     
       
    79     void KeylockEnabledL();
       
    80     
       
    81 private:
       
    82 
       
    83     CAiTitlePaneRenderer( CAiStatusPanel& aStatusPanel );
       
    84 
       
    85     void ConstructL();
       
    86 
       
    87 
       
    88 
       
    89 private: // data
       
    90 
       
    91      /// Status pane handler.
       
    92     CAiStatusPanel& iStatusPanel;
       
    93     };
       
    94 
       
    95 } // namespace AiNativeUiController
       
    96 
       
    97 #endif // C_AITITLEPANERENDERER_H