mmsharing/livecommsui/lcui/tsrc/ut_lcui/hbstubs/hbinstance.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 HBINSTANCE_H
       
    18 #define HBINSTANCE_H
       
    19 
       
    20 #include <hbglobal.h>
       
    21 #include <hbmainwindow.h>
       
    22 #include <hbtheme.h>
       
    23 #include <QList.h>
       
    24 
       
    25 class QGraphicsScene;
       
    26 
       
    27 #define hbInstance (HbInstance::instance())
       
    28 
       
    29 class HbInstance
       
    30 {
       
    31 public:
       
    32     static HbInstance *instance();
       
    33     QList<HbMainWindow *> allMainWindows() const;
       
    34 
       
    35     Qt::Orientation orientation() const;
       
    36     void setOrientation(Qt::Orientation orientation);
       
    37     
       
    38     QGraphicsScene* scene() const;
       
    39 
       
    40 private:
       
    41     HbInstance();
       
    42     ~HbInstance();
       
    43     
       
    44 private: // Data added for the unit testing stub
       
    45     QList<HbMainWindow *> mAllMainWindows;
       
    46     QGraphicsScene* mScene;
       
    47     Qt::Orientation mOrientation;
       
    48 };
       
    49 
       
    50 #endif // HBINSTANCE_H