uiservicetab/vimpstutils/inc/vimpstutilstextquerydialog.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Text query dialog that accepts empty input
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVIMPSTUTILSTEXTQUERYDIALOG_H
       
    21 #define CVIMPSTUTILSTEXTQUERYDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknQueryDialog.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  Text query dialog that accepts empty input.
       
    30  *  Wrapper for CAknTextQueryDialog
       
    31  *
       
    32  *  @lib chat.app
       
    33  *  @since 
       
    34  */
       
    35 class CVIMPSTUtilsTextQueryDialog : public CAknTextQueryDialog
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40          * Two-phased constructor.
       
    41          * @see CAknTextQueryDialog::NewL
       
    42          */
       
    43         IMPORT_C static CVIMPSTUtilsTextQueryDialog* NewL( TDes& aDataText, 
       
    44                         const TTone& aTone = ENoTone,
       
    45                         TBool aLeftSoftkeyAlwaysVisible = ETrue,
       
    46                         TBool aDomainSelectionQuery = EFalse );
       
    47         
       
    48         /**
       
    49          * Destructor.
       
    50          */
       
    51         ~CVIMPSTUtilsTextQueryDialog();
       
    52 
       
    53     public: // Functions from base classes
       
    54 
       
    55         /**
       
    56          * From CAknTextQueryDialog, allows empty text
       
    57          * Overwritten method
       
    58          */
       
    59         IMPORT_C void UpdateLeftSoftKeyL();
       
    60         
       
    61         /**
       
    62          * Handle key events.
       
    63          * @see CAknTextQueryDialog
       
    64          * @since 
       
    65          */
       
    66         IMPORT_C TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    67                                      TEventCode aType );
       
    68 
       
    69         /**
       
    70          * Called before dialog is closed.
       
    71          * @see CAknTextQueryDialog
       
    72          * @since 
       
    73          */
       
    74         IMPORT_C TBool OkToExitL( TInt aButtonId );
       
    75         
       
    76     private:
       
    77 
       
    78         /**
       
    79          * C++ default constructor.
       
    80          * @see CAknTextQueryDialog::CAknTextQueryDialog
       
    81          */
       
    82         CVIMPSTUtilsTextQueryDialog( TDes& aDataText, const TTone& aTone = ENoTone,
       
    83                             TBool aLeftSoftkeyAlwaysVisible = ETrue,
       
    84                             TBool aDomainSelectionQuery = EFalse );
       
    85         
       
    86     private: // Data    
       
    87 
       
    88         TBool iLeftSoftkeyAlwaysVisible;
       
    89         
       
    90         TBool iDomainSelectionQuery;
       
    91     };
       
    92 
       
    93 #endif      // CVIMPSTUTILSTEXTQUERYDIALOG_H
       
    94 
       
    95 // End of File