idlehomescreen/nativeuicontroller/inc/aidialogrenderer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:40:49 +0200
changeset 0 f72a12da539e
child 9 f966699dea19
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Dialog renderer.
*
*/


#ifndef C_AIDIALOGRENDERER_H
#define C_AIDIALOGRENDERER_H


#include <e32base.h>
#include "ainativerenderer.h"


class CAknNoteDialog;

namespace AiNativeUiController
{

/**
 *  Dialog renderer.
 *
 *  Used to show CAknNoteDialog on screen.
 *
 *  @since S60 3.2
 */
class CAiDialogRenderer : public CAiNativeRenderer
    {
public:

    static CAiDialogRenderer* NewLC();

    virtual ~CAiDialogRenderer();

// from base class CAiNativeRenderer

    void DoPublishL( MAiPropertyExtension& aPlugin, TInt aContent, TInt aResource, TInt aIndex );

    void DoCleanL( MAiPropertyExtension& aPlugin, TInt aContent );

    void FocusObtainedL();

private:

    CAiDialogRenderer();

    /**
     * Show dialog.
     *
     * @since S60 3.2
     */
    void ShowDialogL();


private: // data

    /**
     * Dialog.
     * Own.
     */
    CAknNoteDialog* iDialog;
   
    /**
     * Text to be rendered in the dialog.
     * Own.
     */
    HBufC* iText;

    /// Indicates SIM registration failure.
    TBool iShowDialog;

#ifdef __COVER_DISPLAY
    /**
     * Dialog ID to be published.
     * Own.
     */
    TInt iDialogId;
#endif

    };

} // namespace AiNativeUiController

#endif // C_AIDIALOGRENDERER_H