idlehomescreen/nativeuicontroller/inc/aidialogrenderer.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:  Dialog renderer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIDIALOGRENDERER_H
       
    20 #define C_AIDIALOGRENDERER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "ainativerenderer.h"
       
    25 
       
    26 
       
    27 class CAknNoteDialog;
       
    28 
       
    29 namespace AiNativeUiController
       
    30 {
       
    31 
       
    32 /**
       
    33  *  Dialog renderer.
       
    34  *
       
    35  *  Used to show CAknNoteDialog on screen.
       
    36  *
       
    37  *  @since S60 3.2
       
    38  */
       
    39 class CAiDialogRenderer : public CAiNativeRenderer
       
    40     {
       
    41 public:
       
    42 
       
    43     static CAiDialogRenderer* NewLC();
       
    44 
       
    45     virtual ~CAiDialogRenderer();
       
    46 
       
    47 // from base class CAiNativeRenderer
       
    48 
       
    49     void DoPublishL( MAiPropertyExtension& aPlugin, TInt aContent, TInt aResource, TInt aIndex );
       
    50 
       
    51     void DoCleanL( MAiPropertyExtension& aPlugin, TInt aContent );
       
    52 
       
    53     void FocusObtainedL();
       
    54 
       
    55 private:
       
    56 
       
    57     CAiDialogRenderer();
       
    58 
       
    59     /**
       
    60      * Show dialog.
       
    61      *
       
    62      * @since S60 3.2
       
    63      */
       
    64     void ShowDialogL();
       
    65 
       
    66 
       
    67 private: // data
       
    68 
       
    69     /**
       
    70      * Dialog.
       
    71      * Own.
       
    72      */
       
    73     CAknNoteDialog* iDialog;
       
    74    
       
    75     /**
       
    76      * Text to be rendered in the dialog.
       
    77      * Own.
       
    78      */
       
    79     HBufC* iText;
       
    80 
       
    81     /// Indicates SIM registration failure.
       
    82     TBool iShowDialog;
       
    83 
       
    84 #ifdef __COVER_DISPLAY
       
    85     /**
       
    86      * Dialog ID to be published.
       
    87      * Own.
       
    88      */
       
    89     TInt iDialogId;
       
    90 #endif
       
    91 
       
    92     };
       
    93 
       
    94 } // namespace AiNativeUiController
       
    95 
       
    96 #endif // C_AIDIALOGRENDERER_H