videocollection/tsrc/stubs/src/hbdeviceprofile.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 37 4eb2df7f7cbe
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
     1 /*
       
     2 * Copyright (c) 2008 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:  stub hbdeviceprofile for testing video collection ui uitils
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef HBDEVICEPROFILE_H
       
    19 #define HBDEVICEPROFILE_H
       
    20 
       
    21 #include <QSize>
       
    22 
       
    23 
       
    24 
       
    25 class  HbDeviceProfile 
       
    26 {
       
    27 public:
       
    28     
       
    29     /**
       
    30      * contructor
       
    31      */
       
    32     HbDeviceProfile(){mSize.setHeight(100); mSize.setWidth(100);}
       
    33 
       
    34     /**
       
    35      * destructor
       
    36      */
       
    37     ~HbDeviceProfile(){};
       
    38 
       
    39     /**
       
    40      * returns static object reference from this class
       
    41      */
       
    42     static HbDeviceProfile& current(){ static HbDeviceProfile _profile; return _profile; }
       
    43     
       
    44     /**
       
    45      * sets mSize
       
    46      */
       
    47     void setLogicalSize(QSize size){
       
    48         mSize.setHeight(size.height()); 
       
    49         mSize.setWidth(size.width());
       
    50         }
       
    51     
       
    52     /**
       
    53      * gets mSize
       
    54      */
       
    55     QSize logicalSize() const{return mSize;}
       
    56     
       
    57     QSize mSize;
       
    58            
       
    59 };
       
    60 
       
    61 #endif