logsui/AppSrc/CLogsPrependQuery.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2004 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: 
       
    15 *     Prepend query implementation
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <w32std.h>
       
    21 #include <eikdialg.h>
       
    22 
       
    23 #include "CLogsPrependQuery.h"
       
    24 
       
    25 // ========================== MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CLogsPrependQuery::NewL
       
    29 // Instantiate prepend query
       
    30 // ---------------------------------------------------------------------------
       
    31 CLogsPrependQuery* CLogsPrependQuery::NewL( TDes& aResource )
       
    32     {
       
    33     CLogsPrependQuery* self = 
       
    34         new( ELeave ) CLogsPrependQuery( aResource );
       
    35     return self;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CLogsPrependQuery::~CLogsPrependQuery
       
    40 // Destructor
       
    41 // ---------------------------------------------------------------------------
       
    42 CLogsPrependQuery::~CLogsPrependQuery()
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CLogsPrependQuery::CLogsPrependQuery
       
    48 // C++ constructor
       
    49 // ---------------------------------------------------------------------------
       
    50 CLogsPrependQuery::CLogsPrependQuery( TDes& aResource )
       
    51     : CAknTextQueryDialog( aResource )
       
    52     {
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CLogsPrependQuery::OfferKeyEventL
       
    57 // Send key handling overriden
       
    58 // ---------------------------------------------------------------------------
       
    59 TKeyResponse CLogsPrependQuery::OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
    60                                                 TEventCode aType )
       
    61     {
       
    62     if ( aKeyEvent.iCode == EKeyPhoneSend || aKeyEvent.iCode == EKeyOK 
       
    63     	 || aKeyEvent.iCode == EKeyEnter || aKeyEvent.iScanCode == EStdKeyYes)
       
    64         {
       
    65         TryExitL( EAknSoftkeyCall );
       
    66         return EKeyWasConsumed;
       
    67         }
       
    68     return CAknTextQueryDialog::OfferKeyEventL( aKeyEvent, aType );
       
    69     }
       
    70 
       
    71 //  end of file