phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/hb_stub.cpp
changeset 76 cfea66083b62
child 78 baacf668fe89
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
       
     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 <hbaction.h>
       
    19 
       
    20 QString hbTrId(const char *id, int n) { return QString(id); };
       
    21 
       
    22 HbAction::HbAction(QObject *parent)
       
    23      : QAction(parent), d_ptr(0)
       
    24 {
       
    25 }
       
    26 
       
    27 HbAction::HbAction(const QString &text, QObject *parent)
       
    28      : QAction(text, parent), d_ptr(0)
       
    29 {
       
    30 }
       
    31 
       
    32 HbAction::~HbAction()
       
    33 {
       
    34 }
       
    35 
       
    36 int HbAction::qt_metacall(enum QMetaObject::Call, int, void * *) {};
       
    37 void* HbAction::qt_metacast(char const *) {};
       
    38 struct QMetaObject const * HbAction::metaObject(void) const {};
       
    39 
       
    40 #include <hbicon.h>
       
    41 
       
    42 class HbIconPrivate
       
    43 {
       
    44  public:
       
    45      HbIconPrivate(){};
       
    46      ~HbIconPrivate(){};
       
    47      
       
    48      QAtomicInt ref;
       
    49 };
       
    50 
       
    51 HbIcon::HbIcon() {};
       
    52 HbIcon::HbIcon(const QString& string) {};
       
    53 HbIcon::~HbIcon() {};
       
    54    
       
    55 #include <qgraphicswidget.h>
       
    56 
       
    57 void QGraphicsWidget::addAction(QAction *action)
       
    58 {
       
    59 }
       
    60 
       
    61 void QGraphicsWidget::removeAction(QAction *action)
       
    62 {
       
    63 }
       
    64 
       
    65 #include "phoneaction.h"
       
    66 
       
    67 PhoneAction::PhoneAction () : 
       
    68     m_text (QString ()), m_command (-1), m_icon (0), m_disabled(false),
       
    69     m_role(PhoneAction::None)
       
    70 {
       
    71 }
       
    72 
       
    73 PhoneAction::~PhoneAction ()
       
    74 {
       
    75 }
       
    76