diff -r c76a0b1755b9 -r 2be0b271d017 tsrc/mocks/phoneuiview2/mock_phoneaction.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/mocks/phoneuiview2/mock_phoneaction.cpp Mon Oct 04 00:16:48 2010 +0300 @@ -0,0 +1,146 @@ +/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* +*/ +#include +#include +#include "phoneaction.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// PhoneAction::PhoneAction +// ----------------------------------------------------------------------------- +// +PhoneAction::PhoneAction( ) + { + + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::~PhoneAction +// ----------------------------------------------------------------------------- +// +PhoneAction::~PhoneAction( ) + { + + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::setText +// ----------------------------------------------------------------------------- +// +void PhoneAction::setText( + QString text ) + { + SMC_MOCK_METHOD1( void, QString, text ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::text +// ----------------------------------------------------------------------------- +// +QString PhoneAction::text( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::setCommand +// ----------------------------------------------------------------------------- +// +void PhoneAction::setCommand( + int command ) + { + SMC_MOCK_METHOD1( void, int, command ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::command +// ----------------------------------------------------------------------------- +// +int PhoneAction::command( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::icon +// ----------------------------------------------------------------------------- +// +HbIcon PhoneAction::icon( ) const + { + SMC_MOCK_METHOD0( HbIcon ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::setIcon +// ----------------------------------------------------------------------------- +// +void PhoneAction::setIcon( + HbIcon icon ) + { + SMC_MOCK_METHOD1( void, HbIcon, icon ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::setDisabled +// ----------------------------------------------------------------------------- +// +void PhoneAction::setDisabled( + bool disabled ) + { + SMC_MOCK_METHOD1( void, bool, disabled ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::isDisabled +// ----------------------------------------------------------------------------- +// +bool PhoneAction::isDisabled( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::setActionRole +// ----------------------------------------------------------------------------- +// +void PhoneAction::setActionRole( + ActionRole role ) + { + SMC_MOCK_METHOD1( void, ActionRole, role ) + } + + +// ----------------------------------------------------------------------------- +// PhoneAction::actionRole +// ----------------------------------------------------------------------------- +// +PhoneAction::ActionRole PhoneAction::actionRole( ) const + { + SMC_MOCK_METHOD0( ActionRole ) + } + +