homescreenapp/hsdomainmodel/inc/hswidgetpresentationdata.h
changeset 35 f9ce957a272c
equal deleted inserted replaced
5:c743ef5928ba 35:f9ce957a272c
       
     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:  Contains widget presentation metadata.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HSWIDGETPRESENTATIONDATA_H
       
    20 #define HSWIDGETPRESENTATIONDATA_H
       
    21 
       
    22 #include <QString>
       
    23 #include <QPointF>
       
    24 #include <QSizeF>
       
    25 #include "hsdomainmodel_global.h"
       
    26 
       
    27 class HSDOMAINMODEL_EXPORT HsWidgetPresentationData
       
    28 {
       
    29 
       
    30 public:
       
    31 	HsWidgetPresentationData();
       
    32 	~HsWidgetPresentationData();
       
    33 
       
    34 	void setId(int id);
       
    35 	int id() const;
       
    36 
       
    37     void setKey(const QString &key);
       
    38     QString key() const;
       
    39 
       
    40     void setPosition(const QPointF &position);
       
    41     QPointF position() const;
       
    42 
       
    43 	void setZValue(qreal zValue);
       
    44    	qreal zValue() const;
       
    45 
       
    46     void setSize(const QSizeF &size);
       
    47     QSizeF size() const;
       
    48 
       
    49 	void setWidgetId(int widgetId);
       
    50 	int widgetId() const;
       
    51    	
       
    52 private:
       
    53     int mId;
       
    54 	QString mKey;
       
    55     QPointF mPosition;
       
    56     QSizeF mSize;
       
    57     int mWidgetId;
       
    58     qreal mZValue;	
       
    59 };
       
    60 
       
    61 #endif