phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbaction.cpp
changeset 76 cfea66083b62
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
       
     1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 * All rights reserved.
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 *
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 *
       
    15 */
       
    16 #include <QDebug>
       
    17 #include <smcmockclassincludes.h>
       
    18 #include "hbaction.h"
       
    19 #include <HbToolBarExtension>
       
    20 #include <HbMenu>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // HbAction::HbAction
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 HbAction::HbAction( 
       
    29         QObject * parent )
       
    30     :QAction( parent ), d_ptr(0)
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // HbAction::HbAction
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 HbAction::HbAction( 
       
    41         const QString & text,
       
    42         QObject * parent )
       
    43     :QAction( text, parent ), d_ptr(0)
       
    44     {
       
    45     
       
    46     }
       
    47 
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // HbAction::HbAction
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 HbAction::HbAction( 
       
    54         const HbIcon & icon,
       
    55         const QString & text,
       
    56         QObject * parent )
       
    57     :QAction( parent ), d_ptr(0)
       
    58     {
       
    59     
       
    60     }
       
    61 
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // HbAction::HbAction
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 HbAction::HbAction( 
       
    68         Hb::NavigationAction action,
       
    69         QObject * parent )
       
    70     :QAction( parent ), d_ptr(0)
       
    71     {
       
    72     
       
    73     }
       
    74 
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // HbAction::~HbAction
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 HbAction::~HbAction(  )
       
    81     {
       
    82     
       
    83     }
       
    84 
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // HbAction::setIcon
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void HbAction::setIcon( 
       
    91         const HbIcon & icon )
       
    92     {
       
    93     SMC_MOCK_METHOD1( void, const HbIcon &, icon )
       
    94     }
       
    95 
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // HbAction::icon
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 HbIcon HbAction::icon(  ) const
       
   102     {
       
   103     SMC_MOCK_METHOD0( HbIcon )
       
   104     }
       
   105 
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // HbAction::setMenu
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 void HbAction::setMenu( 
       
   112         HbMenu * menu )
       
   113     {
       
   114     SMC_MOCK_METHOD1( void, HbMenu *, menu )
       
   115     }
       
   116 
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // HbAction::menu
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 HbMenu * HbAction::menu(  ) const
       
   123     {
       
   124     SMC_MOCK_METHOD0( HbMenu * )
       
   125     }
       
   126 
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // HbAction::setToolTip
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 void HbAction::setToolTip( 
       
   133         const QString & tooltip )
       
   134     {
       
   135     SMC_MOCK_METHOD1( void, const QString &, tooltip )
       
   136     }
       
   137 
       
   138 
       
   139 // -----------------------------------------------------------------------------
       
   140 // HbAction::toolTip
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 QString HbAction::toolTip(  ) const
       
   144     {
       
   145     SMC_MOCK_METHOD0( QString )
       
   146     }
       
   147 
       
   148 
       
   149 // -----------------------------------------------------------------------------
       
   150 // HbAction::setToolBarExtension
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 void HbAction::setToolBarExtension( 
       
   154         HbToolBarExtension * extension )
       
   155     {
       
   156     SMC_MOCK_METHOD1( void, HbToolBarExtension *, extension )
       
   157     }
       
   158 
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // HbAction::toolBarExtension
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 HbToolBarExtension * HbAction::toolBarExtension(  ) const
       
   165     {
       
   166     SMC_MOCK_METHOD0( HbToolBarExtension * )
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // HbAction::setCommandRole
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 void HbAction::setCommandRole( 
       
   175         CommandRole commandRole )
       
   176     {
       
   177     SMC_MOCK_METHOD1( void, CommandRole, commandRole )
       
   178     }
       
   179 
       
   180 
       
   181 // -----------------------------------------------------------------------------
       
   182 // HbAction::commandRole
       
   183 // -----------------------------------------------------------------------------
       
   184 //
       
   185 HbAction::CommandRole HbAction::commandRole(  ) const
       
   186     {
       
   187     SMC_MOCK_METHOD0( HbAction::CommandRole )
       
   188     }
       
   189 
       
   190 
       
   191 // -----------------------------------------------------------------------------
       
   192 // HbAction::HbAction
       
   193 // -----------------------------------------------------------------------------
       
   194 //
       
   195 HbAction::HbAction( 
       
   196         HbActionPrivate & dd,
       
   197         QObject * parent )
       
   198     :QAction( parent ), d_ptr(0)
       
   199     {
       
   200     
       
   201     }
       
   202 
       
   203