--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/camerauis/cameraxui/cxui/inc/cxuisettingradiobuttonlistmodel.h Tue Aug 31 15:03:46 2010 +0300
@@ -0,0 +1,49 @@
+/*
+* 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_ */