qtinternetradio/ui/inc/irmainmodel.h
changeset 0 09774dfdd46b
child 3 ee64f059b8e1
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IRMAINMODEL_H
       
    19 #define IRMAINMODEL_H
       
    20 
       
    21 #include <QAbstractListModel>
       
    22 #include <QStringList>
       
    23 
       
    24 class IRMainModel : public QAbstractListModel
       
    25 {
       
    26     Q_OBJECT
       
    27 public:
       
    28     explicit IRMainModel(QObject *aParent = 0);
       
    29     
       
    30     int rowCount(const QModelIndex &aParent = QModelIndex()) const;
       
    31     QVariant data(const QModelIndex &aIndex, int aRole = Qt::DisplayRole) const;
       
    32 
       
    33     void checkUpdate();
       
    34     
       
    35 private:
       
    36     void initModel();
       
    37     
       
    38 private:
       
    39     QStringList iPrimaryTexts;
       
    40     QStringList iSecondaryTexts;
       
    41 };
       
    42 
       
    43 #endif