messagingapp/msgui/conversationview/tsrc/unittests/unittest_msgconversationwidget/hbwidget.h
changeset 56 f42d9a78f435
parent 55 5b3b2fa8c3ec
child 58 5401a102f08b
equal deleted inserted replaced
55:5b3b2fa8c3ec 56:f42d9a78f435
     1 /*
       
     2  * Copyright (c) 2010 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 #ifndef T_MSGCONVERSATIONVIEW_HBWIDGET_H
       
    19 #define T_MSGCONVERSATIONVIEW_HBWIDGET_H
       
    20 
       
    21 #include <QGraphicsWidget>
       
    22 
       
    23 /*
       
    24     Mocked HbWidget class' external variables.
       
    25  */
       
    26 extern QGraphicsWidget *hbwidget_parent;
       
    27 
       
    28 /*
       
    29     Mocked HbWidget class.
       
    30  */
       
    31 class HbWidget : public QGraphicsWidget
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     HbWidget(QGraphicsWidget *parent = NULL)
       
    36     : QGraphicsWidget(hbwidget_parent = parent)
       
    37     {
       
    38     }
       
    39     ~HbWidget()
       
    40     {        
       
    41     }
       
    42         
       
    43     void repolish() {}
       
    44     
       
    45 private:
       
    46     Q_DISABLE_COPY(HbWidget)
       
    47 private:    
       
    48 };
       
    49 
       
    50 #endif /* T_MSGCONVERSATIONVIEW_HBWIDGET_H */