mmsharing/livecommsui/lcui/tsrc/ut_lcui/hbstubs/hbmenu.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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: Orbit stubs for Live Comms UI unit tests
       
    15 *
       
    16 */
       
    17 #ifndef HBMENU_H
       
    18 #define HBMENU_H
       
    19 
       
    20 #include <hbdialog.h>
       
    21 
       
    22 
       
    23 class HbMenu : public HbDialog
       
    24 {
       
    25 public:
       
    26 
       
    27     explicit HbMenu(QGraphicsItem *parent = 0);
       
    28     ~HbMenu();
       
    29 
       
    30     using HbDialog::addAction;
       
    31     HbAction *addAction(const QString &text);
       
    32 
       
    33     bool isEmpty() const;
       
    34 
       
    35     enum { Type = Hb::ItemType_Menu };
       
    36 
       
    37 public slots:
       
    38     void open(QObject* receiver = 0, const char* member = 0);
       
    39     
       
    40 private: // Data added for the unit testing stub
       
    41     bool mIsEmpty;     
       
    42 };
       
    43 
       
    44 #endif // HBMENU_H