mobilemessaging/unieditor/smsplugin/inc/UniSmsUtils.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     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:  UniSmsUtils  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __UNIMSGSMSEDITORUTILS_H
       
    21 #define __UNIMSGSMSEDITORUTILS_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknQueryDialog.h>
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 *  CUniSmsEMultilineQueryDialog
       
    29 *  CUniSmsEMultilineQueryDialog provides the possibility to launch 
       
    30 *  multi-line queries with a focus on the 2nd line.
       
    31 */
       
    32 class CUniSmsEMultilineQueryDialog : public CAknMultiLineDataQueryDialog
       
    33     {
       
    34     public: // Constructors
       
    35 
       
    36        /**
       
    37         * 2-phase constructor.
       
    38         */
       
    39         static CUniSmsEMultilineQueryDialog* NewL( 
       
    40         	TDes&  aText1, 
       
    41         	TDes&  aText2,
       
    42         	TBool aEmailDlg = EFalse, 
       
    43         	TTone aTone = ENoTone);
       
    44 
       
    45         /**
       
    46         * Execute dialog 
       
    47         */
       
    48         TInt ExecuteLD( TInt aResourceId ) ;
       
    49         
       
    50     protected: // Functions from base classes
       
    51 
       
    52         /**
       
    53         * From CAknMultiLineDataQueryDialog 
       
    54         */
       
    55         virtual void SetInitialCurrentLine();
       
    56 
       
    57         /**
       
    58         * From CEikDialog 
       
    59         */
       
    60         TBool OkToExitL(TInt aButtonId);
       
    61 
       
    62     private: // new functions
       
    63  
       
    64         /**
       
    65         * A method to change focus to line two
       
    66         */
       
    67         void TryToChangeLineL();
       
    68 
       
    69     private:
       
    70         /**
       
    71         * C++ constructor.
       
    72         */
       
    73         CUniSmsEMultilineQueryDialog( TBool aEmailDlg, TTone aTone );
       
    74         
       
    75         /**
       
    76         * Destructor.
       
    77         */
       
    78         ~CUniSmsEMultilineQueryDialog();
       
    79         
       
    80     private: // data members
       
    81         TBool 	iEmailDlg;
       
    82         TInt    iResourceFile;      // Offset of resource file
       
    83     };
       
    84 
       
    85 
       
    86 
       
    87 #endif // __UNIMSGSMSEDITORUTILS_H