vtuis/lcvtplugin/inc/states/tlcvtstatebase.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:19:21 +0300
changeset 46 a1340495b0e1
parent 27 dcbddbbaf8fd
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* Copyright (c) 2008 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:  Base class for application states.
*
*/


template < typename T >
inline void TLcVtStateBase::ExecuteEngineCommand( 
    TInt aCommand, T& aParam )
    {
    TPtrC8 params( reinterpret_cast< TUint8* >( &aParam ), 
        sizeof( T ) );    
    TRAP_IGNORE( iCtx.DoExecuteCmdL( aCommand, &params ) );
    }