homescreenapp/serviceproviders/hsmenuserviceprovider/inc/hsmenucollectionsitemmodel.h
changeset 35 f9ce957a272c
child 39 4e8ebe173323
equal deleted inserted replaced
5:c743ef5928ba 35:f9ce957a272c
       
     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: hsmenucollectionsitemmodel.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSMENUCOLLECTIONSITEMMODEL_H
       
    19 #define HSMENUCOLLECTIONSITEMMODEL_H
       
    20 
       
    21 // System includes
       
    22 #include <caquery.h>
       
    23 #include <HbIcon>
       
    24 
       
    25 // User includes
       
    26 #include "hsmenuservice_global.h"
       
    27 #include "hsmenuitemmodel.h"
       
    28 
       
    29 // Class declaration
       
    30 class MENUSERVICE_EXPORT HsMenuCollectionsItemModel: public HsMenuItemModel
       
    31 {
       
    32 
       
    33 public:
       
    34 
       
    35     // Function declarations
       
    36     explicit HsMenuCollectionsItemModel(const CaQuery &query,
       
    37                                         QObject *parent = 0);
       
    38     ~HsMenuCollectionsItemModel();
       
    39     virtual QVariant data(const QModelIndex &index,
       
    40                           int role = Qt::DisplayRole) const;
       
    41 
       
    42 private:
       
    43 
       
    44     // Function declarations
       
    45     QString getSecondLine(CaEntry *entry) const;
       
    46 
       
    47 };
       
    48 
       
    49 #endif // HSMENUCOLLECTIONSITEMMODEL_H