mediasettings/videosettingsplugin/tsrc/testgroup/stub/inc/hbdataformmodel.h
changeset 46 adbe7d5ba2f5
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
       
     1 /*
       
     2 * Copyright (c) 2002 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:  HbDataFormModel stub
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HBDATAFORMMODEL_H
       
    19 #define HBDATAFORMMODEL_H
       
    20 
       
    21 #include <QAbstractItemModel>
       
    22 
       
    23 #include <hbglobal.h>
       
    24 #include <hbdataformmodelitem.h>
       
    25 
       
    26 class HbDataFormModel : public QAbstractItemModel
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31 
       
    32     HbDataFormModel(QObject *parent = 0); 
       
    33     virtual ~HbDataFormModel();
       
    34 
       
    35     HbDataFormModelItem* itemFromIndex(const QModelIndex &index) const;
       
    36     
       
    37     virtual QModelIndex index(int row, int column,
       
    38                               const QModelIndex &parent = QModelIndex()) const;
       
    39     virtual QModelIndex parent(const QModelIndex &child) const;
       
    40     virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    41     virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
       
    42     virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
       
    43 
       
    44 public:
       
    45     
       
    46     HbDataFormModelItem* mItemReturnValue;
       
    47     
       
    48 };
       
    49 
       
    50 #endif //HBDATAFORMMODEL_H
       
    51