messagingappbase/msgeditor/appuiinc/MsgSendKeyAcceptingQuery.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  MsgSendKeyAcceptingQuery  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef INC_MSGSENDKEYACCEPTINGQUERY_H
       
    21 #define INC_MSGSENDKEYACCEPTINGQUERY_H
       
    22 
       
    23 #include <AknQueryDialog.h>
       
    24 
       
    25 class CMsgSendKeyAcceptingQuery : public CAknQueryDialog
       
    26 {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Factory method that creates this object.
       
    31      * @param aPrompt
       
    32      * @param aTone
       
    33      * @return
       
    34      */
       
    35     static CMsgSendKeyAcceptingQuery* NewL(TDesC& aPrompt, const TTone& aTone = ENoTone);
       
    36 
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     ~CMsgSendKeyAcceptingQuery();
       
    41 
       
    42 protected: // from CAknQueryDialog
       
    43 
       
    44     /**
       
    45      * @param aKeyEvent key event
       
    46      * @param aType     event type
       
    47      * @return response
       
    48      */
       
    49     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    50 
       
    51     /**
       
    52      * @param aButtonId
       
    53      * @return
       
    54      */
       
    55     TBool OkToExitL(TInt aButtonId);
       
    56 
       
    57     /**
       
    58      * @param aButtonId
       
    59      * @return
       
    60      */
       
    61     TInt MappedCommandId(TInt aButtonId);
       
    62 
       
    63 private:
       
    64     /**
       
    65      * Constructor.
       
    66      * @param aTone
       
    67      */
       
    68     CMsgSendKeyAcceptingQuery(const TTone aTone);
       
    69 
       
    70 };
       
    71 
       
    72 #endif
       
    73 
       
    74 // End of File