mediasettings/videosettingsplugin/tsrc/testgroup/stub/inc/hbdataformmodel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:14:16 +0300
changeset 46 adbe7d5ba2f5
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2002 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:  HbDataFormModel stub
*
*/

#ifndef HBDATAFORMMODEL_H
#define HBDATAFORMMODEL_H

#include <QAbstractItemModel>

#include <hbglobal.h>
#include <hbdataformmodelitem.h>

class HbDataFormModel : public QAbstractItemModel
{
    Q_OBJECT

public:

    HbDataFormModel(QObject *parent = 0); 
    virtual ~HbDataFormModel();

    HbDataFormModelItem* itemFromIndex(const QModelIndex &index) const;
    
    virtual QModelIndex index(int row, int column,
                              const QModelIndex &parent = QModelIndex()) const;
    virtual QModelIndex parent(const QModelIndex &child) const;
    virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
    virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
    virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;

public:
    
    HbDataFormModelItem* mItemReturnValue;
    
};

#endif //HBDATAFORMMODEL_H