camerauis/cameraxui/cxui/inc/cxuisettingradiobuttonlistmodel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:03:46 +0300
branchRCL_3
changeset 23 61bc0f252b2b
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 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:
*
*/
#ifndef CXUISETTINGRADIOBUTTONLISTMODEL_H_
#define CXUISETTINGRADIOBUTTONLISTMODEL_H_

#include <QObject>
#include <QStringList>
#include <QAbstractListModel>
#include "cxuienums.h"

/*!
* Model class to configure custom radio button list
* to configure the number of lines per setting
*/
class CxuiSettingRadioButtonListModel : public QAbstractListModel
{
    Q_OBJECT

public:

    CxuiSettingRadioButtonListModel();
    QVariant data (const QModelIndex &index, int role = Qt::DisplayRole) const;
    int rowCount (const QModelIndex &parent = QModelIndex()) const;
    void setItems(QStringList items);
    int listBoxType() const;
    void setListBoxType(int type);
    QStringList items() const;
    void resetModel();

private:
    QStringList mItems;
    int mListBoxType;
};

#endif /* CXUISETTINGRADIOBUTTONLISTMODEL_H_ */