diff -r 2a5d4ab426d3 -r d1c62c765e48 tsrc/mocks/orbit/mock_hbaction.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/mocks/orbit/mock_hbaction.cpp Fri Sep 17 17:09:12 2010 +0300 @@ -0,0 +1,169 @@ +/* +* Copyright (c) 2009 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: +* +*/ +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbAction::HbAction +// ----------------------------------------------------------------------------- +// +HbAction::HbAction( + const QString & text, + QObject * parent ) + : QAction( parent ), d_ptr(NULL) + { + + } + + +// ----------------------------------------------------------------------------- +// HbAction::HbAction +// ----------------------------------------------------------------------------- +// +HbAction::HbAction( + const HbIcon & icon, + const QString & text, + QObject * parent ) + : QAction( parent ), d_ptr(NULL) + { + + } + + +// ----------------------------------------------------------------------------- +// HbAction::HbAction +// ----------------------------------------------------------------------------- +// +HbAction::HbAction( + Hb::NavigationAction action, + QObject * parent ) + : QAction( parent ), d_ptr(NULL) + { + + } + + +// ----------------------------------------------------------------------------- +// HbAction::~HbAction +// ----------------------------------------------------------------------------- +// +HbAction::~HbAction( ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbAction::setIcon +// ----------------------------------------------------------------------------- +// +void HbAction::setIcon( + const HbIcon & icon ) + { + // SMC_MOCK_METHOD1( void, const HbIcon &, icon ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::icon +// ----------------------------------------------------------------------------- +// +HbIcon HbAction::icon( ) const + { + // SMC_MOCK_METHOD0( HbIcon ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::setMenu +// ----------------------------------------------------------------------------- +// +void HbAction::setMenu( + HbMenu * menu ) + { + // SMC_MOCK_METHOD1( void, HbMenu *, menu ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::menu +// ----------------------------------------------------------------------------- +// +HbMenu * HbAction::menu( ) const + { + // SMC_MOCK_METHOD0( HbMenu * ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::setToolBarExtension +// ----------------------------------------------------------------------------- +// +void HbAction::setToolBarExtension( + HbToolBarExtension * extension ) + { +// SMC_MOCK_METHOD1( void, HbToolBarExtension *, extension ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::toolBarExtension +// ----------------------------------------------------------------------------- +// +HbToolBarExtension * HbAction::toolBarExtension( ) const + { +// SMC_MOCK_METHOD0( HbToolBarExtension * ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::setCommandRole +// ----------------------------------------------------------------------------- +// +void HbAction::setCommandRole( + HbAction::CommandRole commandRole ) + { + // SMC_MOCK_METHOD1( void, CommandRole, commandRole ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::commandRole +// ----------------------------------------------------------------------------- +// +HbAction::CommandRole HbAction::commandRole( ) const + { + // SMC_MOCK_METHOD0( CommandRole ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::HbAction +// ----------------------------------------------------------------------------- +// +HbAction::HbAction( + HbActionPrivate & dd, + QObject * parent ) + : QAction( parent ), d_ptr(NULL) + { + + } + +