phoneapp/phoneui2/src/phoneuicommandadapter.cpp
changeset 21 92ab7f8d0eab
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     1 /*!
       
     2 * Copyright (c) 2009 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:  Adapter for UI commands from view to state.
       
    15 *
       
    16 */
       
    17 
       
    18 #include <exception> // must be before e32base.h so uncaught_exception gets defined
       
    19 #include "mphonemenuandcbaevents.h"
       
    20 #include "phoneuicommandadapter.h"
       
    21 
       
    22 PhoneUiCommandAdapter::PhoneUiCommandAdapter (
       
    23     MPhoneMenuAndCbaEvents &commandHandler, QObject *parent ) :
       
    24     QObject (parent), m_handler (commandHandler)
       
    25 {
       
    26 }
       
    27 
       
    28 PhoneUiCommandAdapter::~PhoneUiCommandAdapter ()
       
    29 {   
       
    30 }
       
    31 
       
    32 void PhoneUiCommandAdapter::handleCommand (int command)
       
    33 {
       
    34     TRAP_IGNORE(m_handler.HandleCommandL ( (TInt) command ));
       
    35 }