idlehomescreen/nativeuicontroller/inc/ainavipanerenderer.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:  Navipane renderer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AINAVIPANERENDERER_H
       
    20 #define C_AINAVIPANERENDERER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "ainativerenderer.h"
       
    25 #include "ainavipaneanimatorcallback.h"
       
    26 #include "ainativeuimodel.h"
       
    27 
       
    28 namespace AiNativeUiController
       
    29 {
       
    30 
       
    31 class CAiStatusPanel;
       
    32 class CAiNaviPaneAnimator;
       
    33 
       
    34 
       
    35 /**
       
    36  *  Navipane renderer.
       
    37  *
       
    38  *  Used to render text on navipane.
       
    39  *
       
    40  *  @since S60 3.2
       
    41  */
       
    42 // inheritance order must be this, despite codescanner warnings
       
    43 class CAiNaviPaneRenderer : public MAiNaviPaneAnimatorCallback,
       
    44                             public CAiNativeRenderer
       
    45                                    
       
    46     {
       
    47 public:
       
    48 
       
    49     static CAiNaviPaneRenderer* NewLC( CAiStatusPanel& aStatusPanel );
       
    50 
       
    51     virtual ~CAiNaviPaneRenderer();
       
    52 
       
    53 // from base class CAiNativeRenderer
       
    54 
       
    55     void DoPublishL( MAiPropertyExtension& aPlugin, 
       
    56                         TInt aContent, 
       
    57                         const TDesC16& aText,
       
    58                         TInt aIndex );
       
    59 
       
    60     void DoCleanL( MAiPropertyExtension& aPlugin, TInt aContent );
       
    61 
       
    62     void FocusObtainedL();
       
    63 
       
    64     void FocusLostL();
       
    65     
       
    66     void KeylockDisabledL();
       
    67     
       
    68     void KeylockEnabledL();
       
    69 
       
    70     void TransactionCommittedL();
       
    71 
       
    72 // from base class MAiNaviPaneAnimatorCallback
       
    73 
       
    74     void AnimationCompleteL();
       
    75     
       
    76 private:
       
    77 
       
    78     CAiNaviPaneRenderer( CAiStatusPanel& aStatusPanel );
       
    79 
       
    80     void ConstructL();
       
    81     
       
    82     HBufC* ConstructProfileTextLC();
       
    83 
       
    84 
       
    85 private: // data
       
    86 
       
    87      /// Status pane handler.
       
    88     CAiStatusPanel& iStatusPanel;
       
    89 
       
    90      /// Navi pane animator. Own.
       
    91     CAiNaviPaneAnimator* iAnimator;
       
    92     
       
    93     /// Navi pane rendering priorities
       
    94     AiNativeUiModel::TRenderingPriorities iRenderingPriorities;
       
    95     
       
    96     /// Profile name or date.
       
    97     HBufC* iProfileText;
       
    98     
       
    99     /// Silent Indicator
       
   100     HBufC* iSilentIndicator;
       
   101     
       
   102     /// Timed profile indicator
       
   103     HBufC* iTimedProfileIndicator;
       
   104     
       
   105     /// Id of current content in this UI control.
       
   106     TInt iCurrentContent;
       
   107     
       
   108     /// Rendering priority of current content in this UI control.
       
   109     TInt iCurrentPriority;
       
   110     
       
   111     /// ETrue if we got the focus.
       
   112     TBool iFocusObtained;
       
   113     
       
   114     /// ETrue is transaction was committed.
       
   115     TBool iCommitted;
       
   116      
       
   117     /// ETrue is new content was published.
       
   118     TBool iIsChanged;
       
   119     
       
   120     /// ETrue is last content was changed.
       
   121     TBool iIsOldTextChanged;
       
   122     
       
   123     /// ETrue is new content was silent.
       
   124     TBool iIsSilent;
       
   125     
       
   126     /// ETtrue if new content was timed profile
       
   127     TBool iIsTimed;
       
   128     
       
   129     };
       
   130 
       
   131 } // namespace AiNativeUiController
       
   132 
       
   133 #endif // C_AINAVIPANERENDERER_H