cmmanager/cmmgr/Framework/Inc/cmpluginmultilinedialog.h
author Simon Howkins <simonh@symbian.org>
Thu, 18 Nov 2010 15:05:52 +0000
branchRCL_3
changeset 76 40780c2f3a6b
parent 0 5a93021fdf25
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2006 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:  Declaration of class CCmPluginMultiLineDialog.
*
*/

#ifndef CM_PLUGIN_MULTILINE_DIALOG_H
#define CM_PLUGIN_MULTILINE_DIALOG_H

// INCLUDE FILES
#include <AknQueryDialog.h>

/**
 *  A new class to extend the functionality of the existing 
 *  CAKnMultiLineIpQueryDialog to be able to accept 0 length settings...
 *  Nothing else is changed.
 *
 *  @lib cmmanager.lib
 *  @since S60 v3.2
 */
NONSHARABLE_CLASS( CCmPluginMultiLineDialog ) : 
                    public CAknMultiLineDataQueryDialog
    {
    public:

        /**
        * Multiline data query dialog, 2 lines
        * @param aText1 Text1
        * @param aText2 Text2
        * @param aTone Tone 
        * @return A constructed CCmPluginMultiLineDialog
        */
       IMPORT_C static CCmPluginMultiLineDialog* NewL(
                            TDes&  aText1, TDes&  aText2, 
                            TTone aTone = ENoTone);

    protected:

        /**
        * If the query text is ok (retrieved form query controls) then 
        * display the left soft key, otherwise hide it.
        */
        void UpdateLeftSoftKeyL();

    private:

        /**
        * Constructor
        * @param aTone Tone
        */
        CCmPluginMultiLineDialog( const TTone& aTone );
    };

#endif