videocollection/tsrc/stubs/src/hbdeviceprofile.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:59:52 +0300
changeset 15 cf5481c2bc0b
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  stub hbdeviceprofile for testing video collection ui uitils
* 
*/

#ifndef HBDEVICEPROFILE_H
#define HBDEVICEPROFILE_H

#include <QSize>



class  HbDeviceProfile 
{
public:
    
    /**
     * contructor
     */
    HbDeviceProfile(){mSize.setHeight(100); mSize.setWidth(100);}

    /**
     * destructor
     */
    ~HbDeviceProfile(){};

    /**
     * returns static object reference from this class
     */
    static HbDeviceProfile& current(){ static HbDeviceProfile _profile; return _profile; }
    
    /**
     * sets mSize
     */
    void setLogicalSize(QSize size){
        mSize.setHeight(size.height()); 
        mSize.setWidth(size.width());
        }
    
    /**
     * gets mSize
     */
    QSize logicalSize() const{return mSize;}
    
    QSize mSize;
           
};

#endif