videocollection/tsrc/stubs/src/hbtoolbarextension.cpp
changeset 44 518105d52e45
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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: 
       
    15 * 
       
    16 */
       
    17 
       
    18 #include "hbtoolbarextension.h"
       
    19 
       
    20 int HbToolBarExtension::mAddActionCallCount = 0;
       
    21 
       
    22 HbToolBarExtension::HbToolBarExtension(QGraphicsItem *parent) 
       
    23 : HbWidget(parent)
       
    24 {
       
    25 
       
    26 }
       
    27 
       
    28 HbToolBarExtension::~HbToolBarExtension() 
       
    29 {
       
    30     for(int i = 0; i < mActions.count(); i++)
       
    31     {
       
    32         delete mActions[i];
       
    33     }
       
    34     mActions.clear();
       
    35 }
       
    36 
       
    37 HbAction *HbToolBarExtension::addAction ( const HbIcon &icon, const QString &text,
       
    38                           const QObject *receiver, const char *member )
       
    39 {
       
    40     Q_UNUSED(icon);
       
    41     Q_UNUSED(text);
       
    42     Q_UNUSED(receiver);
       
    43     Q_UNUSED(member);
       
    44     HbAction *action = new HbAction();
       
    45     mActions.append(action);
       
    46     mAddActionCallCount++;
       
    47     return action;
       
    48 }
       
    49